Is there any way to check which Hadoop daemons are running?

0 votes
How can I check if Hadoop daemons are running? Is there any command?

I just want to check if my Hadoop is setup correctly or not. So, I want to check if namemonode/datanode/jobtracker/tasktracker are running on my machine.

Is there any way to check it without looking into logs or using ps(on Centos)?
May 4, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
8,137 views

9 answers to this question.

0 votes

To check Hadoop daemons are running or not, what you can do is just run the jps command in the shell.

You just have to type 'jps' (make sure JDK is installed in your system). It lists all the running java processes and will list out the Hadoop daemons that are running.

Alternatively, you can use the following command:

ps -ef | grep hadoop | grep -P  'namenode|datanode|tasktracker|jobtracker'

and 

./hadoop dfsadmin -report

You can also check if the daemons are running or not through their web ui.

answered May 4, 2018 by nitinrawat895
• 10,690 points
0 votes
jps

will show all the running daemons

answered Dec 7, 2018 by Shekhar
0 votes
ps -ef | grep hadoop | grep -P  'namenode|datanode|tasktracker|jobtracker'
./hadoop dfsadmin -report
answered Dec 7, 2018 by Yadgiri
0 votes
You can use the web interface to check which daemons are running
answered Dec 7, 2018 by Kalis
0 votes

Here's another way:

sudo -u hdfs hdfs dfsadmin -report

answered Dec 7, 2018 by Sieka
0 votes

Not a good method but a possible one:

for service in /etc/init.d/hadoop-hdfs-*; do $service status; done;
answered Dec 7, 2018 by Faruk
0 votes
hdfs dfsadmin -report
answered Dec 7, 2018 by Idaje
+1 vote

use jps command, It will show all the running java process with their name.

answered Dec 27, 2018 by Rakesh
• 160 points
But in Screenshot datanode, jobtracker etc., are not shown. I want to check if those services are running or not.
0 votes
run thecommand jps
answered Mar 20 by anonymous

Related Questions In Big Data Hadoop

0 votes
1 answer
0 votes
1 answer

Is there any way to increase Java Heap size in Hadoop?

You can add some more memory by ...READ MORE

answered Apr 12, 2018 in Big Data Hadoop by nitinrawat895
• 10,690 points
1,034 views
0 votes
1 answer

Is there any way to write "map only" Hadoop jobs ?

You can easily set the number of ...READ MORE

answered Apr 16, 2018 in Big Data Hadoop by nitinrawat895
• 10,690 points
56 views
0 votes
1 answer

Is there any way to access Hadoop web UI in linux?

In this case what you can do ...READ MORE

answered May 9, 2018 in Big Data Hadoop by nitinrawat895
• 10,690 points
706 views
0 votes
1 answer
0 votes
1 answer

Is there any way to pull data from Mainframe to Hadoop?

First of all, COBOL is a programming ...READ MORE

answered May 21, 2018 in Big Data Hadoop by nitinrawat895
• 10,690 points
846 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
1,109 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,690 points
3,024 views
0 votes
1 answer

How to get started with Hadoop?

Well, hadoop is actually a framework that ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by coldcode
• 2,020 points
95 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
14,936 views