Reputation: 169
I tried
Steps
- Login into particular node - and execute the command jps
Result
5144 JobTracker
4953 NameNode
5079 SecondaryNameNode
5216 Jps
this is working fine, but I what know any other command to find namenode in a node
Upvotes: 0
Views: 8800
Reputation: 76
Information about Namenode, Datanode and Secondary Namenode processes can be seen using the command:
ps -fu hdfs
Information about ResourceManager, NodeManager processes can be seen using the command:
ps -fu yarn
Upvotes: 1
Reputation: 4832
First of all, trying to find the Namenode process should be the first choice. The other ways that might work could be:
Try to check if the 50070 port (Namenode web UI) is opened to listen:
netstat -a | egrep 'Proto|LISTEN' | grep 50070
Look into the Namenode settings in hdfs-site.xml under $HADOOP_CONF_DIR
Upvotes: 0
Reputation: 191
You could use the command : ps -ef |grep Namenode
to see the namenode process .This would let you know if a particular java process namenode is running.
Upvotes: 0