GitHub user mebelousov opened a pull request:
https://github.com/apache/zeppelin/pull/2907
ZEPPELIN-3347 Fix "PYTHONPATH" for spark.pyspark in branch-0.8
### What is this PR for?
Use system PYTHONPATH in spark.pyspark interpreter, if PYTHONPATH already
exists in environment variables.
### What type of PR is it?
[Bug Fix]
### What is the Jira issue?
* https://issues.apache.org/jira/browse/ZEPPELIN-3347
### How should this be tested?
* Add some directories to PYTHONPATH
`export PYTHONPATH="/opt/python/dir1:/opt/python/dir2:$PYTHONPATH"`
* Build branch "ZEPPELIN-3347_0.8"
* Run in %spark.pyspark
```
import sys
print('\n'.join(sys.path))
```
* Check that the directories are in the output list.
Compare with the result in %python.
### 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/TinkoffCreditSystems/zeppelin
ZEPPELIN-3347_0.8
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/2907.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 #2907
----
commit 8ada1e35dffabcb415e31c1e7232a9f24f2bed94
Author: mebelousov <mebelousov@...>
Date: 2018-04-03T14:07:08Z
ZEPPELIN-3347 Fix "PYTHONPATH" for spark.pyspark
----
---