Skip to main content

Check Hadoop Eco information from CLI

The following explains how to check Hadoop Eco information in a CLI environment.

Use webhdfs
curl http://$(hostname -f):50070/webhdfs/v1/user/?op=LISTSTATUS

Check HDFS usage

You can check the usage of each data node in HDFS.

Check hdfs usage
hdfs dfsadmin -report

Image Check HDFS usage

CodeDescription
Present CapacityTotal available HDFS capacity
DFS RemainingRemaining HDFS capacity
DFS UsedUsed HDFS capacity
Live datanodes (N)N active data nodes
- You can check detailed usage for each data node

Use WebHDFS REST API

You can check HDFS using the REST API via the curl command. For all commands, refer to WebHDFS.

Use webhdfs rest api
curl -s http://$(hostname -f):50070/webhdfs/v1/user/?op=LISTSTATUS

Image Using webhdfs rest api

Yarn

CommandDescription
yarn node -listView node manager list
yarn node -list -showDetailsView detailed node manager information
yarn topCheck job status
yarn application -listView application list
yarn application -list -appStates RUNNINGView application list based on application state
yarn application -status < Application ID >Check status of < Application ID >
yarn application -kill < Application ID >Terminate the < Application ID > job
yarn logs -applicationId < Application ID >View logs for the < Application ID > job
mapred queue -listView job queue list
yarn queue -status < Queue Name >Check the current status of the < Queue Name > queue

Check node manager

You can check the status of the node manager.

Check node manager
yarn node -list -showDetails

Image Check node manager

Check Job status

You can check the current operational status (vCore, memory usage) of the resource manager.

Check job status
yarn top

Image Check job status

View application list

You can view the list of currently running applications.

View application list
yarn application -list

Image View application list

CodeDescription
Application-IdApplication ID
Application-NameApplication Name
Application-TypeApplication Type
UserUser
QueueQueue Name
StateState
Final-StateFinal Execution State
ProgressProgress
Tracking-URLApplication Master URL

View application logs

You can view the logs of the currently running application.

View application logs
yarn logs -applicationId <Application Id>

Image View application logs

View all queue list

You can view the list of all queues.

View all queue list
mapred queue -list

Image View all queue list

CodeDescription
CapacityConfigured available capacity for the queue
MaximumCapacityMaximum capacity
CurrentCapacityCurrent capacity

Check queue status

You can check the status of the queue.

Check queue status
yarn queue -status <Queue Name>
CodeDescription
CapacityConfigured available capacity for the queue
CurrentCapacityCurrent capacity
MaximumCapacityMaximum capacity

Image Check queue status