Dynamic addition of nodes in hadoop practice

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.