Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2573

Enhance 'kylin.sh stop' to terminate kylin process finally

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v1.6.0
    • v2.1.0
    • Others
    • centos 6.7 X64
      jdk 1.7.o_55
      Hadoop 2.7.0
      hive 2.1.0
      kylin 1.6.0
      hbase 1.2.0
    • Patch, Important

    Description

      Somtime, Using 'kylin.sh stop' can't kill kylin process,it's better to use 'kill -9' to kill process.
      It will cause 'port is used' error when start kylin, and error messages like this"
      信息: Initializing ProtocolHandler ["http-bio-7070"]
      四月 27, 2017 2:56:16 下午 org.apache.coyote.AbstractProtocol init
      严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-7070"]
      java.net.BindException: 地址已在使用 <null>:7070
      at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
      at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:650)
      at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
      at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtoc
      ol.java:119)
      "

      Which error is kylin.sh script,
      if [ -f "${KYLIN_PID}" ]
      then
      PID=`cat $KYLIN_PID`
      if ps -p $PID > /dev/null
      then
      echo "stopping Kylin:$PID"
      kill $PID – sometime, this action couldn't kill process
      rm ${KYLIN_PID}
      exit 0
      It is should use 'kill -9 $PID' to instead 'kill $PID'.

      Attachments

        Activity

          People

            liuzhijiang liuzhijiang
            liuzhijiang liuzhijiang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: