i
Characteristics of Big Data
Application of Big Data Processing
Introduction to BIG DATA
Where to get Big Data?
Types of Big Data
Storage layer - HDFS (Hadoop Distributed File System)
MapReduce
YARN
How Hadoop works?
Hadoop Eco System
Hadoop Architecture
Hadoop Installation & Environment Setup
Setting Up A Single Node Hadoop Cluster
Ubuntu User Configuration
SSH Setup With Key Generation
Disable IPv6
Download and Install Hadoop 3.1.2
Working with Configuration Files
Start The Hadoop instances
Hadoop Distributed File System (HDFS)
HDFS Features and Goals
HDFS Architecture
Read Operations in HDFS
Write Operations In HDFS
HDFS Operations
YARN
YARN Features
YARN Architecture
Resource Manager
Node Manager
Application Master
Container
Application Workflow in Hadoop YARN
Hadoop MapReduce
How MapReduce Works?
MapReduce Examples with Python
Running The MapReduce Program & Storing The Data File To HDFS
Create A Python Script
Hadoop Environment Setup
Execute The Script
Apache Hive Definition
Why Apache Hive?
Features Of Apache Hive
Hive Architecture
Hive Metastore
Hive Query Language
SQL vs Hive
Hive Installation
Apache Pig Definition
MapReduce vs. Apache Pig vs. Hive
Apache Pig Architecture
Installation Process Of Apache Pig
Execute Apache Pig Script
Hadoop Eco Components
NoSQL Data Management
Apache Hbase
Apache Cassandra
Mongodb
Introduction To Kafka
The Architecture of Apache Flume
Apache Spark Ecosystem
In this part of the document, we will work with the movie rating dataset. We will use Python libraries to execute a map-reduce job. Let's check the data set (u.data) first. It has 1725 observations of 4 columns (variables). The first one is user_id, 2nd one is movie_id, 3rd one is rating, and the final one is time.
Now using the Python code, we are going to count the number of movies in each rating. It will complete a map-reduce job inside the Hadoop environment. There will be two parts, Map and reduce. In the below section, I will explain the python code for this map-reduce job.
Code for mapping phase:
The Key is the rating, and we are taking the value as 1. So, for each rating, it will generate a pair (rating, 1).
Code for reduce phase:
In the reduce phase, the output will be the aggregated of 1’s for each rating. So, it will add all the 1’s for rating 1 and then for rating 2 and so on.
This is a small chunk of data to explain the example.
Don't miss out!