GitHub user minahlee opened a pull request:

    https://github.com/apache/incubator-zeppelin/pull/605

    [ZEPPELIN-572] pyspark interpreter doesn't work on yarn-client

    ### What is this PR for?
    Set `spark.yarn.isPython` to be `true` to distribute pyspark libraries to 
workers when master is `yarn-client`
    
    ### What type of PR is it?
    Bug Fix
    
    ### Is there a relevant Jira issue?
    [ZEPPELIN-572](https://issues.apache.org/jira/browse/ZEPPELIN-572)
    
    ### How should this be tested?
    You need yarn cluster to test this PR.
    Simple way to test this PR would be running below code in paragraph and see 
if it throws error.
    ```
    %pyspark
    print(sc.parallelize([1, 2]).count())
    ```
    And you should be able to see that `spark.yarn.isPython` is set to `true` 
in **Spark UI > Environment > Spark Properties** only when you set spark.master 
as `yarn-client`.
    
    ### 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/minahlee/incubator-zeppelin ZEPPELIN-572

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

    https://github.com/apache/incubator-zeppelin/pull/605.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 #605
    
----
commit 8c99de50e74d86f39a5523f4aa70fe419efca9c8
Author: Mina Lee <[email protected]>
Date:   2016-01-07T05:23:18Z

    Set spark.yarn.isPython to be true to distribute needed pyspark libraries 
to workers when master is yarn-client

----


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to