CleanSock
CleanSock

Reputation: 383

How to find total number of nodes on which hadoop is installed

How do I find out how many active nodes there are cuurently? I don't have admin rights to the cluster.

Upvotes: 5

Views: 21136

Answers (2)

CompEng
CompEng

Reputation: 7376

You can find with this code in terminal:

yarn node -list -all

And you can see details of nodes (Node-Id,Node-State,Node-Http-Address,Number-of-Running-Containers)

Upvotes: 0

K S Nidhin
K S Nidhin

Reputation: 2650

 hdfs dfsadmin -report

The above command will give you active and dead nodes. Even the namanode web UI 50070 will also give you the count of datanodes live or dead

Upvotes: 8

Related Questions