How Do You List the Hostnames of the Nodes in Your HDFS Cluster?

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?

Run this command from the NameNode:

hdfs dfsadmin -report | grep Hostname

Leave a comment

Your email address will not be published. Required fields are marked *