Github user FRosner commented on the pull request: https://github.com/apache/incubator-zeppelin/pull/844#issuecomment-212769849 Thanks for your comment, @felixcheung. If the parent communicates the signal properly, it is not going to be a problem. I tested it and it seemed to work: ```sh frosner:nomad-zeppelin-spark/ (master*) $ nomad run zeppelin.nomad ==> Monitoring evaluation "c5396320" Evaluation triggered by job "zeppelin-job" Allocation "801ed0af" created: node "fae40394", group "zeppelin-group" Allocation "f6618daf" created: node "fae40394", group "spark-master-group" Evaluation status changed: "pending" -> "complete" ==> Evaluation "c5396320" finished with status "complete" ``` ```sh frosner:incubator-zeppelin/ (ZEPPELIN-815) $ pstree | grep zeppelin | | \--- 92143 frosner grep --color zeppelin | |-+= 91991 root /usr/local/bin/nomad executor /tmp/NomadClient406688203/801ed0af-ebd1-32e8-20c3-3b3142bf6980/zeppelin-task/zeppelin-task-executor.out | | \-+- 91993 root /usr/bin/java -Dfile.encoding=UTF-8 -Xms1024m -Xmx1024m -XX:MaxPermSize=512m -Dzeppelin.log.file=/usr/local/zeppelin/logs/zeppelin--FAG-Book.local.log -cp ::/usr/local/zeppelin/lib/*:/usr/local/zeppelin/*::/usr/local/zeppelin/conf org.apache.zeppelin.server.ZeppelinServer | | \-+- 92109 root /bin/bash /usr/local/zeppelin/bin/interpreter.sh -d /usr/local/zeppelin/interpreter/spark -p 61507 | | \--- 92117 root /usr/bin/java -Dfile.encoding=UTF-8 -Dfile.encoding=UTF-8 -Dzeppelin.log.file=/usr/local/zeppelin/logs/zeppelin-interpreter-spark--FAG-Book.local.log -Xms1024m -Xmx1024m -XX:MaxPermSize=512m -cp ::/usr/local/zeppelin/interpreter/spark/dep/*:/usr/local/zeppelin/interpreter/spark/*::/usr/local/zeppelin/conf:/usr/local/zeppelin/conf:/usr/local/zeppelin/lib/zeppelin-interpreter-0.5.6-incubating.jar org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer 61507 ``` ```sh frosner:nomad-zeppelin-spark/ (master*) $ nomad stop zeppelin ==> Monitoring evaluation "383ba8c7" Evaluation triggered by job "zeppelin-job" Evaluation status changed: "pending" -> "complete" ==> Evaluation "383ba8c7" finished with status "complete" ``` ```sh frosner:incubator-zeppelin/ (ZEPPELIN-815) $ pstree | grep zeppelin | | \--- 92163 frosner grep --color zeppelin ``` Probably because `interpreter.sh` (line 147) traps the signals and executes the shutdown hook: ```sh trap 'shutdown_hook;' SIGTERM SIGINT SIGQUIT ```
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---