Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-3588

Can't run ipython interpreter from docker container

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 0.8.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      os: Ubuntu 16.04.4 LTS

      kernel: 4.4.0-130-generic

      spark: spark 2.3.1

      zeppelin: zeppelin 0.8.0

      Description

      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)

      pip install jupyter grpcio

      Execute

      %python.ipython
      import sys
      sys?

      If you look at the logs the ipython kernel can't be instantiated.

      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)

      Followed by

      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

      ...

      And finally times out

      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

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              thomashan Thomas Han
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: