Reputation: 1111
Hey I have written my first Java code for map reduce. I have run it on a single node.
But I'm not sure what changes doest it needs to work with multi nodes If any , could someone direct me ?
Upvotes: 0
Views: 464
Reputation: 7462
A good starting point is to follow this tutorial.
The main points that you should have a look at are:
/etc/hosts
file of each node, where you add the ip of all the nodes (also make sure you can ssh
to each node without a password)$HADOOP_HOME/conf/masters
and $HADOOP_HOME/conf/slaves
files in the master node, where you add the corresponding nodessetNumReduceTasks(int n)
method (instructions on setting this can be found here).*-site.xml
files, as instructed in the provided tutorial.Of course, you should stop the cluster before changes and restart afterwards.
Upvotes: 1