...

/

HDFS in Practice II

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 cluster
hdfs dfsadmin -printTopology
# Get an admin report
hdfs dfsadmin -report
# Get the status of a Datanode
hdfs dfsadmin -getDatanodeInfo localhost:9867
# Retrieve the FS image
hdfs dfsadmin -fetchImage /Downloads
# Attempt to start the Datanode
hdfs datanode
Terminal 1
Terminal
Loading...
  • 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.