Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZEPPELIN-3749. New Spark interpreter has to be restarted two times inorder to work fine for different users #3166

Closed
wants to merge 1 commit into from

Conversation

zjffdu
Copy link
Contributor

@zjffdu zjffdu commented Aug 30, 2018

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?

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

@zjffdu zjffdu force-pushed the ZEPPELIN-3749 branch 3 times, most recently from 0e11b95 to bf4d156 Compare August 30, 2018 07:27
sparkSession = null
if (BaseSparkScalaInterpreter.sessionNum.decrementAndGet() == 0) {
if (sc != null) {
sc.stop()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think sc.stop() can throw too, something to consider.

@asfgit asfgit closed this in 71bc759 Sep 4, 2018
asfgit pushed a commit that referenced this pull request Sep 4, 2018
…order to work fine for different users

This PR fix the issue of scoped mode for new spark interpreter. It will only close SparkContext when there's no other live sessions.

[Bug Fix]

* [ ] - Task

* https://issues.apache.org/jira/browse/ZEPPELIN-3749

* Unit test is added

* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Jeff Zhang <zjffdu@apache.org>

Closes #3166 from zjffdu/ZEPPELIN-3749 and squashes the following commits:

67ba556 [Jeff Zhang] ZEPPELIN-3749. New Spark interpreter has to be restarted two times in order to work fine for different users

(cherry picked from commit 71bc759)
Signed-off-by: Jeff Zhang <zjffdu@apache.org>
prabhjyotsingh pushed a commit to prabhjyotsingh/zeppelin that referenced this pull request Apr 29, 2019
…order to work fine for different users

This PR fix the issue of scoped mode for new spark interpreter. It will only close SparkContext when there's no other live sessions.

[Bug Fix]

* [ ] - Task

* https://issues.apache.org/jira/browse/ZEPPELIN-3749

* Unit test is added

* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Jeff Zhang <zjffdu@apache.org>

Closes apache#3166 from zjffdu/ZEPPELIN-3749 and squashes the following commits:

67ba556 [Jeff Zhang] ZEPPELIN-3749. New Spark interpreter has to be restarted two times in order to work fine for different users

(cherry picked from commit 71bc759)
Signed-off-by: Jeff Zhang <zjffdu@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants