in Big Data | Hadoop by
Q:

How to write a custom partitioner for a Hadoop MapReduce job? 

1 Answer

0 votes
by
edited by

Steps to write a Custom Partitioner for a Hadoop MapReduce Job-

A new class must be created that extends the pre-defined Partitioner Class.

getPartition method of the Partitioner class must be overridden.

The custom partitioner to the job can be added as a config file in the wrapper which runs Hadoop MapReduce or the custom partitioner can be added to the job by using the set method of the partitioner class.

 

aws big data interview questions

Related questions

0 votes
asked Jan 26, 2020 in Big Data | Hadoop by rajeshsharma
0 votes
asked Jan 8, 2020 in Big Data | Hadoop by GeorgeBell
0 votes
asked Jan 8, 2020 in Big Data | Hadoop by GeorgeBell
0 votes
asked Jan 7, 2020 in Big Data | Hadoop by sharadyadav1986
...