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.
slaves
file show up in dfsadmin -report
–
Alston DEPRECATED: Use of this script to execute hdfs command is deprecated.
–
Coppinger Try this:
hdfs getconf -namenodes
hdfs getconf -secondaryNamenodes
Try This. For dfsadmin not every user has permission.
hdfs getconf -confKey fs.defaultFS hdfs://XYZ
2016 update, following Tejas answer:
hadoopuser@gsamaras:~/hadoop/bin$ ./hdfs dfsadmin -report
hdfs getconf -namenodes
hdfs getconf -secondaryNamenodes
Work only non-HA mode. The simplest way for HA-mode is to use:
hdfs haadmin -getAllServiceState
haadmin work for HA mode.
Output:
hadoop-adh-1:8020 standby
hadoop-adh-2:8020 active
© 2022 - 2025 — McMap. All rights reserved.