Address: http://blog.csdn.net/kongxx/article/details/6896230
Assume that a hadoop cluster environment has been created and two slave nodes fkongnix1 and fkongnix2 are available. Here, a new node fkongnix3.
For how to build a hadoop distributed environment, referDistributed mode of hadoop Learning
1. Modify the $ {hadoop_home}/CONF/slaves file and add a new slave node, such
Fkongnix1 <br/> fkongnix2 <br/> fkongnix3 (new node)2. log on to the newly added slave node, go to the $ {hadoop_home} directory, and run the following command:
$ Bin/hadoop-daemon.sh start datanode <br/> $ bin/hadoop-daemon.sh start tasktracker3. Verify that the add operation is successful.
3.1 Access http: // localhost: 50070/you can see that the number of "Live nodes" has changed from 2 to 3;
3.2 you can also use the following command line to verify the success
$ Bin/hadoop dfsadmin-Report