HDFS in Practice II
This lesson shows example usage of HDFS admin and daemon commands.
We'll cover the following...
HDFS in Practice II
In the previous lesson, we looked at some client commands. Now we’ll briefly explore admin and daemon commands offered by the hdfs command line utility.
Press + to interact
# Startup Hadoop deamons./DataJek/startHadoop.sh# Retrieve the topology of the clusterhdfs dfsadmin -printTopology# Get an admin reporthdfs dfsadmin -report# Get the status of a Datanodehdfs dfsadmin -getDatanodeInfo localhost:9867# Retrieve the FS imagehdfs dfsadmin -fetchImage /Downloads# Attempt to start the Datanodehdfs datanode
-
Serious production deployments of Hadoop are deployed on a cluster of machines with a planned topology. HDFS looks at the topology of the Datanodes when placing the data block’s replicas. We can examine the topology with this following command:
hdfs dfsadmin
Access this course and 1400+ top-rated courses and projects.