Thomas Han created ZEPPELIN-3588:
Summary: Can't run ipython interpreter from docker container
Key: ZEPPELIN-3588
URL: https://issues.apache.org/jira/browse/ZEPPELIN-3588
Project: Zeppelin
Issue Type: Bug
Components: Interpreters
Affects Versions: 0.8.0
Reporter: Thomas Han
Startup the docker container
{{docker run -p 8080:8080 --rm --name zeppelin apache/zeppelin:0.8.0}}
Inside the container execute (refer to [this
page|https://www.zepl.com/viewer/notebooks/bm90ZTovL3pqZmZkdS84YjZmZTAzYmE4ZDc0ODg1OTQ0YWM5MDcwYjYyNzQ0Mi9ub3RlLmpzb24])
{{pip install jupyter }}{{grpcio}}{{}}
Execute
{{%python.ipython}}
{{import sys}}
{{sys?}}
If you look at the logs the ipython kernel can't be instantiated.
{quote}WARN [2018-07-06 05:33:00,389] (\{Exec Default Executor}
IPythonInterpreter.java[onProcessFailed]:394) - Exception happens in Python
Process
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at
org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:748)
{quote}
Followed by
{quote}INFO [2018-07-06 06:12:36,904] (\{pool-2-thread-2}
IPythonInterpreter.java[launchIPythonKernel]:293) - Wait for IPython Kernel to
be started
INFO [2018-07-06 06:12:37,005] (\{pool-2-thread-2}
IPythonInterpreter.java[launchIPythonKernel]:293) - Wait for IPython Kernel to
be started
...
{quote}
And finally times out
{quote}java.lang.RuntimeException: Fail to open IPythonInterpreter
at
org.apache.zeppelin.python.IPythonInterpreter.open(IPythonInterpreter.java:157)
at
org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:69)
at
org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:617)
at org.apache.zeppelin.scheduler.Job.run(Job.java:188)
at org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:140)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Fail to launch IPython Kernel in 60 seconds
at
org.apache.zeppelin.python.IPythonInterpreter.launchIPythonKernel(IPythonInterpreter.java:297)
at
org.apache.zeppelin.python.IPythonInterpreter.open(IPythonInterpreter.java:154)
... 11 more
{quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)