Reputation: 161
I am confused on how the Datanode's in a hadoop cluster runs the java code for the reduce function of a job. Like, how does hadoop send a java code to another computer to execute?
Help me trace this code where the Master Node sends the java code for the reduce function to a datanode.
Upvotes: 0
Views: 521
Reputation: 3956
As shown in the picture, here is what happens:
hadoop jar
command in which you pass jar file name, class name and other parameters such as input and outputUpvotes: 1
Reputation: 893
No. Reduce functions are executed on data nodes. Hadoop transfers packaged code (jar files) to the data node that are going to process data. At run time data nodes download these code and process task.
Upvotes: 0