How to let IPython kernel not autostarted in IPython Notebook 3.2.1

57 views
Skip to first unread message

nju08e...@gmail.com

unread,
Aug 17, 2016, 12:16:38 PM8/17/16
to Project Jupyter
Hi, all
      Currently, we are using IPython Notebook + Spark 1.6.1, and I just found in default situation, a kernel would autostart if it dies, I found this configuration parameter in ipython_notebook_config.py file, set the value to be False, like following:

# Should we autorestart the kernel if it dies.
c.KernelManager.autorestart = False

but anytime I kill the kernel process, it still will autostart:


16/08/18 08:02:55 INFO SparkContext: Successfully stopped SparkContext
16/08/18 08:02:55 INFO ShutdownHookManager: Shutdown hook called
16/08/18 08:02:55 INFO SparkContext: Successfully stopped SparkContext
16/08/18 08:02:55 INFO ShutdownHookManager: Shutdown hook called
16/08/18 08:02:55 INFO ShutdownHookManager: Deleting directory /tmp/1098e87d-99ef-4f53-8f0d-67f2403a677e/spark-b12c6466-d9ca-4155-a8a2-aede2b213744
16/08/18 08:02:55 INFO RemoteActorRefProvider$RemotingTerminator: Shutting down remote daemon.
16/08/18 08:02:55 INFO ShutdownHookManager: Deleting directory /tmp/1098e87d-99ef-4f53-8f0d-67f2403a677e/spark-b12c6466-d9ca-4155-a8a2-aede2b213744/pyspark-d5fec37d-85e8-491e-b7e4-22b95e04aa48
16/08/18 08:02:55 INFO ShutdownHookManager: Deleting directory /tmp/1098e87d-99ef-4f53-8f0d-67f2403a677e/spark-896417f0-f565-4c0c-a9ef-c9e81724afb7/pyspark-3754abd6-d18b-46ab-bb7c-f7a8ed6f7ae5
16/08/18 08:02:55 INFO ShutdownHookManager: Deleting directory /tmp/1098e87d-99ef-4f53-8f0d-67f2403a677e/spark-896417f0-f565-4c0c-a9ef-c9e81724afb7
16/08/18 08:02:55 INFO RemoteActorRefProvider$RemotingTerminator: Remote daemon shut down; proceeding with flushing remote transports.
16/08/18 08:02:55 INFO RemoteActorRefProvider$RemotingTerminator: Shutting down remote daemon.
16/08/18 08:02:55 INFO RemoteActorRefProvider$RemotingTerminator: Remote daemon shut down; proceeding with flushing remote transports.
[I 08:02:56.580 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel 372cdeb7-5a0b-4792-94e5-883ca4e46d40 restarted
[I 08:02:56.814 NotebookApp] KernelRestarter: restarting kernel (1/5)

Could anyone tell me how to disable this feature? am I miss some other configuration parameters?
Thanks in advance!

nju08e...@gmail.com

unread,
Aug 25, 2016, 1:14:03 AM8/25/16
to Project Jupyter
Does anyone knows how to fix this, really need help on this, thanks thanks very much

在 2016年8月18日星期四 UTC+8上午12:16:38,nju08e...@gmail.com写道:

MinRK

unread,
Aug 26, 2016, 8:18:19 AM8/26/16
to Project Jupyter
I'm not sure disabling autorestart is supported by the notebook application. What prompts your need for dead kernels?

-MinRK

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/f74448e5-7a76-476c-bf98-3176752c4190%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

薛亚兰

unread,
Aug 29, 2016, 11:38:16 PM8/29/16
to jup...@googlegroups.com
Since we need to use ipython 3.2.1 to gracefully shutdown sparkcontext. the only way that I know is to enter Ctrl +C in the ipython console, however, our user scenario does not allow us to access the ipython console, so what we do now is just to kill -9 the ipython process,  but this will cause ipython not finish or end the sparkcontext gracefully.
 we figured out the way that we can stop the kernel process of ipython one by one, then sparkcontext can be gracefully shutdown, but the kernel process kept autostart,so I am just wondering if we would disable this function.

Or do you have other ways to deal with this?

--
You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/DgQ-MW5x3uY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Yalan  Xue , SIT  Lab of   Nanjing  University 
 Address: Nanjing ,China。
Reply all
Reply to author
Forward
0 new messages