Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hdfs [2016/04/19 09:36]
steve
hdfs [2016/04/21 08:32]
steve
Line 66: Line 66:
  
 <​code>​ <​code>​
-hdfs dfs -copyToLocal /​user/​beandog/​bigdata /var/archives/bigdata+hdfs dfs -copyToLocal /​user/​beandog/​bigdata /home/beandog/bigdata.bak
 </​code>​ </​code>​
  
Line 88: Line 88:
 <​code>​ <​code>​
 hadoop-node4.lan hadoop-node4.lan
 +</​code>​
 +
 +Tell the NameNode to refresh the nodes:
 +
 +<​code>​
 +hdfs dfsadmin -refreshNamenodes
 +</​code>​
 +
 +The HDFS node will be decomissioned,​ which will take some time. You can view the status either through the web interface, or using ''​hdfs dfsadmin'':​
 +
 +<​code>​
 +hdfs dfsadmin -report
 +</​code>​
 +
 +Once the node is completely decommissioned,​ you can remove it from the ''​slaves''​ file in your Hadoop configuration directory, and restart HDFS:
 +
 +<​code>​
 +stop-dfs.sh
 +start-dfs.sh
 </​code>​ </​code>​