GitHub user zjffdu opened a pull request: https://github.com/apache/zeppelin/pull/3166
ZEPPELIN-3749. New Spark interpreter has to be restarted two times inorder to work fine for different users ### What is this PR for? This PR fix the issue of scoped mode for new spark interpreter. It will only close SparkContext when there's no other live sessions. ### What type of PR is it? [Bug Fix] ### Todos * [ ] - Task ### What is the Jira issue? * https://issues.apache.org/jira/browse/ZEPPELIN-3749 ### How should this be tested? * Unit test is added ### Screenshots (if appropriate) ### 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/zjffdu/zeppelin ZEPPELIN-3749 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/zeppelin/pull/3166.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 #3166 ---- commit a8d7cd8f1d169d17ef849fd6245a8b68bb2b1ea9 Author: Jeff Zhang <zjffdu@...> Date: 2018-08-30T02:14:42Z ZEPPELIN-3749. New Spark interpreter has to be restarted two times in order to work fine for different users ---- ---