Sri Raghavendra Educational Institutions Society (R)
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
www.skit.org.in
Title: Combiner, Partitioner
CO addressed: CO2
Course: Big Data Analytics
Presented by: Mr. P. Kiran Kumar
Department: ISE
2
22-08-2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Introduction to MapReduce
MapReduce is a programming framework used to process large amounts of data in parallel.
MapReduce Flow
Input Data
↓
Mapper
↓
Combiner
↓
Partitioner
↓
Shuffle & Sort
↓
Reducer
↓
Final Output
3
22-08-2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Combiner
Simple Example
Mapper:
(Hadoop, 1)
(Hadoop, 1)
(Hive, 1)
Combiner:
(Hadoop, 2)
(Hive, 1)
4
22-08-2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Combiner Example
Word Count Example
The Mapper produces (word, 1) for each word.
The Combiner adds the counts locally.
This reduces the number of key-value pairs sent to the Reducer.
Mapper Output
(Hadoop, 1)
(Hadoop, 1)
(Session, 1)
(Session, 1)
(Session, 1)
(Hive, 1)
(Hive, 1)
Combiner Output
(Hadoop, 2)
(Session, 3)
(Hive, 2)
5
22-08-2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Partitioner
6
22-08-2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Partitioner Example
Suppose the Mapper produces words such as:
The Partitioner checks the first letter of each word.
Words beginning with H are sent to the same Reducer.
Words beginning with I are sent to another Reducer.
Words beginning with P are sent to another Reducer.
Words beginning with S are sent to another Reducer.
7
22-08-2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Combiner vs Partitioner
Combiner
Partitioner