Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
hdfs [2016/04/19 09:36] steve |
hdfs [2016/04/21 08:31] 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 89: | Line 89: | ||
hadoop-node4.lan | hadoop-node4.lan | ||
</code> | </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. |