Github user Leemoonsoo commented on the issue:

    https://github.com/apache/zeppelin/pull/1534
  
    @agoodm 
    I think placement of common python lib and problem printing output when 
`close=False` can be handled in the separate issues. Do you mind create issues?
    
    I have tested last commit and found that if i run %pyspark paragraph when 
spark interpreter is not initialized (i.e. right after Zeppelin start or spark 
interpreter restart), i'm seeing following error.
    
    ```
    ERROR [2016-11-04 11:32:09,138] ({pool-1-thread-2} 
PySparkInterpreter.java[open]:168) - Error
    java.lang.NullPointerException
        at 
org.apache.zeppelin.spark.PySparkInterpreter.createGatewayServerAndStartScript(PySparkInterpreter.java:197)
        at 
org.apache.zeppelin.spark.PySparkInterpreter.open(PySparkInterpreter.java:166)
        at 
org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:69)
        at 
org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer.open(RemoteInterpreterServer.java:250)
        at 
org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$open.getResult(RemoteInterpreterService.java:1621)
        at 
org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$open.getResult(RemoteInterpreterService.java:1606)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
    ERROR [2016-11-04 11:32:09,140] ({pool-1-thread-2} 
TThreadPoolServer.java[run]:296) - Error occurred during processing of message.
    org.apache.zeppelin.interpreter.InterpreterException: 
java.lang.NullPointerException
        at 
org.apache.zeppelin.spark.PySparkInterpreter.open(PySparkInterpreter.java:169)
        at 
org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:69)
        at 
org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer.open(RemoteInterpreterServer.java:250)
        at 
org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$open.getResult(RemoteInterpreterService.java:1621)
        at 
org.apache.zeppelin.interpreter.thrift.RemoteInterpreterService$Processor$open.getResult(RemoteInterpreterService.java:1606)
        at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
        at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
        at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.NullPointerException
        at 
org.apache.zeppelin.spark.PySparkInterpreter.createGatewayServerAndStartScript(PySparkInterpreter.java:197)
        at 
org.apache.zeppelin.spark.PySparkInterpreter.open(PySparkInterpreter.java:166)
        ... 10 more
    ```
    
    Do you see the same error?


---
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.
---

Reply via email to