GitHub user tae-jun reopened a pull request:

    https://github.com/apache/zeppelin/pull/2594

    [ZEPPELIN-2944] Cannot launch Spark interpreter for non-local mode

    ### What is this PR for?
    When I used Spark interpreter for non-local mode, I got
    ```
    java.lang.RuntimeException: SPARK_HOME is not specified for non-local mode
        at 
org.apache.zeppelin.interpreter.InterpreterSetting.setupPropertiesForSparkR(InterpreterSetting.java:783)
        at 
org.apache.zeppelin.interpreter.InterpreterSetting.getEnvFromInterpreterProperty(InterpreterSetting.java:741)
        at 
org.apache.zeppelin.interpreter.InterpreterSetting.createInterpreterProcess(InterpreterSetting.java:712)
        at 
org.apache.zeppelin.interpreter.ManagedInterpreterGroup.getOrCreateInterpreterProcess(ManagedInterpreterGroup.java:58)
        at 
org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getOrCreateInterpreterProcess(RemoteInterpreter.java:98)
        at 
org.apache.zeppelin.interpreter.remote.RemoteInterpreter.internal_create(RemoteInterpreter.java:153)
        at 
org.apache.zeppelin.interpreter.remote.RemoteInterpreter.open(RemoteInterpreter.java:126)
        at 
org.apache.zeppelin.interpreter.remote.RemoteInterpreter.getFormType(RemoteInterpreter.java:265)
        at org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:423)
        at org.apache.zeppelin.scheduler.Job.run(Job.java:182)
        at 
org.apache.zeppelin.scheduler.RemoteScheduler$JobRunner.run(RemoteScheduler.java:307)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:473)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        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)
    ```
    And I fixed it! 😄 
    
    ### What type of PR is it?
    Bug Fix
    
    ### What is the Jira issue?
    [ZEPPELIN-2944](https://issues.apache.org/jira/browse/ZEPPELIN-2944)
    
    ### How should this be tested?
    Build and launch Spark interpreter
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tae-jun/zeppelin patch-6

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/2594.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2594
    
----
commit 2b2d14742487dde1d42b0382998c6ec39a24bc8a
Author: Jun Kim <tae-...@users.noreply.github.com>
Date:   2017-09-20T13:20:47Z

    Correctly get SPARK_HOME

----


---

Reply via email to