How to decommission nodes/blacklist nodes
HDFS
Put following config in conf/hdfs-site.xml:Use following command to ask HDFS to re-read host exclude file and decommission nodes accordingly.dfs.hosts.exclude /full/path/of/host/exclude/file
./bin/hadoop dfsadmin -refreshNodes
MapReduce
Put following config in conf/mapred-site.xmlUse following command to ask Hadoop MapReduce to reconfigure nodes.mapred.hosts.exclude /full/path/of/host/exclude/file
./bin/hadoop mradmin -refreshNodes
Whitelist/Recommission
Also you can "whitelist" nodes. In other words, you can specify which nodes are allowed to connect to namenode/jobtracker.HDFS
Put following config in conf/hdfs-site.xml:Use following command to ask Hadoop to refresh node status to based on configuration.dfs.hosts /full/path/to/whitelisted/node/file
./bin/hadoop dfsadmin -refreshNodes
MapReduce
Put following config in conf/mapred-site.xmlUse following command to ask Hadoop MapReduce to reconfigure nodes.mapred.hosts >/full/path/to/whitelisted/node/file
./bin/hadoop mradmin -refreshNodes
Support of -mradmin was added in 0.21.0. See JIRA issue https://issues.apache.org/jira/browse/HADOOP-5643 for details.
hi ,you have gathered a valuable information on Hadoop...., and i am much impressed with the information and it is useful for Hadoop Learners.
ReplyDeleteHadoop Training in hyderabad