You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "liuzhijiang (JIRA)" <ji...@apache.org> on 2017/04/28 03:07:04 UTC

[jira] [Created] (KYLIN-2573) 'kylin.sh stop' can't kill kylin's process by sometimes.

liuzhijiang created KYLIN-2573:
----------------------------------

             Summary: 'kylin.sh stop' can't kill kylin's process by sometimes.
                 Key: KYLIN-2573
                 URL: https://issues.apache.org/jira/browse/KYLIN-2573
             Project: Kylin
          Issue Type: Bug
          Components: General
    Affects Versions: v1.6.0
         Environment: 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
            Reporter: liuzhijiang
             Fix For: v2.1.0
         Attachments: 0001-use-kill-9-to-kill-kylin-process.patch

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'.





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)