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 separates files into blocks, which are then stored on DataNodes. The NameNode, the cluster's master node, is connected to several DataNodes. These data blocks are replicated across the cluster by the master node. It also tells the user where to get the information they're looking for.
An HDFS cluster consists of a single NameNode, a master server that manages the file system namespace and regulates access to files by clients. In addition, there are a number of DataNodes, usually one per node in the cluster, which manage storage attached to the nodes that they run on.
NameNode is the master node in the Apache Hadoop HDFS Architecture that maintains and manages the blocks present on the DataNodes (slave nodes). NameNode is a very highly available server that manages the File System Namespace and controls access to files by clients.
Use the dfsadmin command:
bin/hadoop dfsadmin -report
Update (2015):
bin/hdfs dfsadmin -report
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With