From any node in a Hadoop cluster, what is the command to
- identify the running namenode?
- identify all running datanodes?
I have looked through the commands manual and have not found this.
From any node in a Hadoop cluster, what is the command to
I have looked through the commands manual and have not found this.
尝试这个:
hdfs getconf -namenodes
hdfs getconf -secondaryNamenodes
尝试这个。对于 dfsadmin,并非每个用户都有权限。
hdfs getconf -confKey fs.defaultFS hdfs://XYZ
2016 年更新,遵循 Tejas 的回答:
hadoopuser@gsamaras:~/hadoop/bin$ ./hdfs dfsadmin -report