List the namenode and datanodes of a cluster from any node?
Use the dfsadmin command:
bin/hadoop dfsadmin -report
Update (2015):
bin/hdfs dfsadmin -report
Try this:
hdfs getconf -namenodes
hdfs getconf -secondaryNamenodes
Use the dfsadmin command:
bin/hadoop dfsadmin -report
Update (2015):
bin/hdfs dfsadmin -report
Try this:
hdfs getconf -namenodes
hdfs getconf -secondaryNamenodes