[ https://issues.apache.org/jira/browse/ATLAS-1248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Qiang Zhang updated ATLAS-1248: ------------------------------- Attachment: (was: atlas_stop.py) > execute ./bin/atlas_stop.py, After ten minuters process still alive > -------------------------------------------------------------------- > > Key: ATLAS-1248 > URL: https://issues.apache.org/jira/browse/ATLAS-1248 > Project: Atlas > Issue Type: Bug > Affects Versions: 0.8-incubating > Reporter: Qiang Zhang > > Hi All, > 1. I executed ./bin/atlas_stop.py to stop atlas, but after ten minutes > i found it still alive. > > 2. By reviewing atlas_stop.py code , I found that we called > os.kill(pid, SIGTERM) to kill the process, but it didn't work sometimes. > 3. Then I referred to hadoop and hbase stop shell, I found they both > Elegant kill process at first > 4. Then check process whether still alive after sleeping some > seconds.(sleep(60)) > > 5. If it was still alive, they compulsory kill process with > os.kill(pid, SIGKILL) . > Here is the log from console: > ------------------------------------------------------------------- > [glc@dap241 atlas-0.8]$ ./bin/atlas_stop.py > stopping atlas................................ > -------------------------------------------------------------------- > [glc@dap241 atlas-0.8]$ jps > 7296 jar > 3017 ResourceManager > 2613 NameNode > 7573 Atlas > 4089 HMaster > 2806 SecondaryNameNode > 3486 QuorumPeerMain > 7043 jar > 3392 JobHistoryServer > 15957 Jps > -------------------------------------------------------------------- > [glc@dap241 atlas-0.8]$ ./bin/atlas_stop.py > No process ID file found. Server not running? > --------------------------------------------------------------------- > [glc@dap241 atlas-0.8]$ jps > 7296 jar > 3017 ResourceManager > 2613 NameNode > 7573 Atlas > 4089 HMaster > 2806 SecondaryNameNode > 3486 QuorumPeerMain > 7043 jar > 3392 JobHistoryServer > 15957 Jps > -------------------------------------------------------------------------------- > [glc@dap241 atlas-0.8]$ ps -ef |grep 7573 > glc 7573 1 2 Oct21 ? 02:09:49 > /home/glc/java/jdk1.7.80/bin/java > -Datlas.log.dir=/home/glc/atlas/atlas-0.8/logs > -Datlas.log.file=application.log -Datlas.home=/home/glc/atlas/atlas-0.8 > -Datlas.conf=/home/glc/atlas/atlas-0.8/conf -Xms10240m -Xmx10240m > -XX:MaxNewSize=3072m -XX:PermSize=100M -XX:MaxPermSize=512m > -Dlog4j.configuration=atlas-log4j.xml -Djava.net.preferIPv4Stack=true -Xdebug > -Xrunjdwp:transport=dt_socket,address=10660,server=y,suspend=n -classpath > /home/glc/atlas/atlas-0.8/conf:/home/glc/atlas/atlas-0.8/server/webapp/atlas/WEB-INF/classes:/home/glc/atlas/atlas-0.8/server/webapp/atlas/WEB-INF/lib/*:/home/glc/atlas/atlas-0.8/libext/*:/home/glc/hbase/hbase-1.1.5/conf > org.apache.atlas.Atlas -app /home/glc/atlas/atlas-0.8/server/webapp/atlas > glc 16003 15590 0 09:01 pts/1 00:00:00 grep 7573 > --------------------------------------------------------------------------------- > [glc@dap241 atlas-0.8]$ ps -ef|grep atlas > glc 7573 1 2 Oct21 ? 02:09:49 > /home/glc/java/jdk1.7.80/bin/java > -Datlas.log.dir=/home/glc/atlas/atlas-0.8/logs > -Datlas.log.file=application.log -Datlas.home=/home/glc/atlas/atlas-0.8 > -Datlas.conf=/home/glc/atlas/atlas-0.8/conf -Xms10240m -Xmx10240m > -XX:MaxNewSize=3072m -XX:PermSize=100M -XX:MaxPermSize=512m > -Dlog4j.configuration=atlas-log4j.xml -Djava.net.preferIPv4Stack=true -Xdebug > -Xrunjdwp:transport=dt_socket,address=10660,server=y,suspend=n -classpath > /home/glc/atlas/atlas-0.8/conf:/home/glc/atlas/atlas-0.8/server/webapp/atlas/WEB-INF/classes:/home/glc/atlas/atlas-0.8/server/webapp/atlas/WEB-INF/lib/*:/home/glc/atlas/atlas-0.8/libext/*:/home/glc/hbase/hbase-1.1.5/conf > org.apache.atlas.Atlas -app /home/glc/atlas/atlas-0.8/server/webapp/atlas > glc 16006 15590 0 09:01 pts/1 00:00:00 grep atlas -- This message was sent by Atlassian JIRA (v6.3.4#6332)