Hadoop demons don't stop

I am trying to stop the daemon processes in hadoop on. / stop -all.sh script, but it gives the following message:

no jobtracker to stop localhost: no tasktracker to stop stop naming ban localhost: no datanode to stop localhost: no secondarynamenode to stop

I tried to check if chaop works after that using jps and it showed:

27948 SecondaryNameNode 27714 NameNode 28136 TaskTracker 27816 DataNode 28022 JobTracker 8174 Jps

That is, it correctly launches all demons. I also checked hasoop dfs -ls / just to see if I can connect to hdfs. He works.

I run the stop -all.sh script by the value of the supergroup user, there are no problems with permissions.

+3
source share
1

, start/stop pid, $HADOOP_PID_DIR ( /tmp ).

:

  • (- -)
  • env $HADOOP_PID_DIR
  • , , , .

then hadoop , .

hadoop-daemon.sh( 1.0.0):

#   HADOOP_IDENT_STRING   A string representing this instance of hadoop. $USER by default

if [ "$HADOOP_IDENT_STRING" = "" ]; then
  export HADOOP_IDENT_STRING="$USER"
fi

# ....

if [ "$HADOOP_PID_DIR" = "" ]; then
  HADOOP_PID_DIR=/tmp
fi    

# ....

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

# ....

(stop)

  if [ -f $pid ]; then
    if kill -0 `cat $pid` > /dev/null 2>&1; then
      echo stopping $command
      kill `cat $pid`
    else
      echo no $command to stop
    fi
  else
    echo no $command to stop
  fi
  ;;
+4

All Articles