Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

No journalnode to stop

No journalnode to stop

New Contributor
 While i am trying to stop journalnode process it gives no journal node to stop, but journal node is actually running

i executed in the follwing way.

jdk/bin/jps
451 jps
3541 journalnode

And i try to stop journal using

apache_hadoop/sbin/hadoop-daemon.sh stop journalnode
no journalnode to stop

then i just killed the process and started it again

kill 3541
apache_hadoop/sbin/hadoop-daemon.sh start journalnode

and journalnode started normally

This issue not only for journal node , it happens all the nodes in hadoop cluster at some time

Why this issue? and How to solve it?

1 REPLY 1

Re: No journalnode to stop

Master Collaborator

Hi, 

the script reads the pid from here:

pid=$HADOOP_PID_DIR/hadoop-$HADOOP_IDENT_STRING-$command.pid

and then it tries: 

      TARGET_PID=`cat $pid`
      if kill -0 $TARGET_PID > /dev/null 2>&1; then

So either the path does not exists, and it can't read the pid by "cat" command or the kill -0 does not return 0.