getconf

Gets configuration information from the configuration directory, post-processing.

The usage is as follows:

$ hdfs getconf -namenodes
$ hdfs getconf -secondaryNameNodes
$ hdfs getconf -backupNodes
$ hdfs getconf -journalNodes
$ hdfs getconf -includeFile
$ hdfs getconf -excludeFile
$ hdfs getconf -nnRpcAddresses
$ hdfs getconf -confKey [key]
Arguments

-namenodes

Gets the list of NameNodes in the cluster

-secondaryNameNodes

Gets the list of secondary NameNodes in the cluster

-backupNodes

Gets the list of backup nodes in the cluster

-journalNodes

Gets the list of journal nodes in the cluster

-includeFile

Gets the include file path that defines the DataNodes that can join the cluster

-excludeFile

Gets the exclude file path that defines the DataNodes that need to decommissioned

-nnRpcAddresses

Gets the NameNode RPC addresses

-confKey [key]

Gets a specific key from the configuration

Found a mistake? Seleсt text and press Ctrl+Enter to report it