Existing hadoop cluster: hadoop1-6, decommissioning a data node: hadoop5.
1. Edit hdfs-site.xml on hadoop1 to include:
<property>
<name>dfs.hosts.exclude</name>
<value>/home/hadoop/hadoop/etc/hadoop/dfs.exclude</value>
</property>
2. Edit /home/hadoop/hadoop/etc/hadoop/dfs.exclude to add a line:
hadoop5
3. Run: distribute-exclude.sh dfs.exclude
4. Run: refresh-namenodes.sh
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment