Hi, Hadoop-1's name node UI displays dead datanodes even if those instances are terminated and are not part of the cluster anymore. Is there a way to reset the dead datenode list without bouncing namenode ?
This would help me in my script(which would run nightly) which parses the html page,terminates dead datanodes and resize the cluster. Thanks, Ashwin
If by resetting the list of dead datanodes you mean the web-console or the report command not showing the datanode that you removed, in this case you will have to do the following:
1. Remove the entry from the slaves file corresponding to the dead datanode. 2. Remove entry from exclude file 3. Run hadoop dfsadmin -refreshNodes
Performing these steps would no longer show the dead datanode in either the UI or report command. But if you only add that host to your exclude file (I am assuming you already have configured dfs.hosts.exclude property in NN), the namenode will still report this server as dead though no corresponding value i.e. DFS used, Non-DFS Used etc. would be shown.
Thanks Divye Sheth On Mon, Apr 14, 2014 at 12:39 PM, Sandeep Nemuri <[EMAIL PROTECTED]>wrote: