Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method of deleting hadoop2.2 cluster nodes?

2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "what is the method of deleting hadoop2.2 cluster nodes". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the method of deleting hadoop2.2 cluster nodes".

1. Node deletion

1) modify the directory of conf/hdfs-site.xml file and excludes file. As follows:

Dfs.hosts.exclude / home/hadoop/hadoop-2.2.0/etc/hadoop/excludes Names a file that contains a list of hosts that are not permitted to connect to the namenode. The full pathname of the file must be specified. If the value is empty, no hosts are excluded.

2) specify the machines to be removed from the shelves in the excludes file, such as:

Slave1

3) refresh the configuration and execute the following command:

Bin/hadoop dfsadmin-refreshNodes

4) View status

Use the command on the command line: bin/hadoop dfsadmin-report or check in the browser: http://XXXXX:50070/dfshealth.jsp appears in the following state, while the number of Blocks is decreasing. Live Nodes: 10 (Decommissioned: 0) Dead Nodes: 0 (Decommissioned: 0) Decommissioning Nodes: 2 Number of Under-Replicated Blocks: 106106

5) Edit the excludes file again

Once the machine is off the shelf, they can be removed from the excludes file

Log in to the machine to be taken off the shelf and you will find that the DataNode process is gone, but the TaskTracker still exists and needs to be handled manually

6)。 Problems encountered:

(1) when the configuration is refreshed, the number of block remains unchanged. Possible reason: safe mode

Bin/hadoop dfsadmin-safemode leave

(2) the number of block has been decreasing, but since then it has not changed. Possible reason: there may be a problem with the password-free login of the cluster. Check it.

3. Additional: password-free login

At the same time, pay attention to the issue of authority.

After ssh configuration is successful, Are you sure you want to continue connecting (yes/no) appears when the hadoop node is started.

Enter yes

Thank you for your reading. The above is the content of "what is the method of deleting hadoop2.2 cluster nodes". After the study of this article, I believe you have a deeper understanding of what is the method of deleting hadoop2.2 cluster nodes, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report