Problem scenario
You want to see what servers are in your HDFS cluster (e.g., the DataNodes and the NameNodes). What command can display the FQDNs of such servers?
Solution
Run this command from the NameNode:
hdfs dfsadmin -report | grep Hostname
A Technical I.T./DevOps Blog
Problem scenario
You want to see what servers are in your HDFS cluster (e.g., the DataNodes and the NameNodes). What command can display the FQDNs of such servers?
Solution
Run this command from the NameNode:
hdfs dfsadmin -report | grep Hostname