-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-9572][STREAMING][PYSPARK] Added StreamingContext.getActiveOrCreate() in Python #8080
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
Conversation
|
@zsxwing Could you take a quick look? |
|
Test build #40324 has finished for PR 8080 at commit
|
|
Test build #1423 has finished for PR 8080 at commit
|
|
Test build #1434 has finished for PR 8080 at commit
|
|
Test build #40377 has finished for PR 8080 at commit
|
python/pyspark/streaming/context.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to throw an exception when activeJvmContextOption.get().hashCode() != activePythonContextJavaId because it will be confusing that getActive returns None but getActiveOrCreate still complains there is already an active context in Scala codes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was on the fence about what to do here. Thanks for deciding for me.
|
Test build #1435 has finished for PR 8080 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the previous code means the stdout is in python/unit-tests.log, which is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you see how LOG_FILE is defined, it is already an absolute path.
https://github.com/tdas/spark/blob/SPARK-9572/python/run-tests.py#L69
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right. Good catch about the path.
|
retest this please |
|
Test build #40410 has finished for PR 8080 at commit
|
|
retest this please |
|
LGTM. |
|
retest this please |
|
retest this please. |
|
Test build #40418 has finished for PR 8080 at commit
|
|
Test build #40430 has finished for PR 8080 at commit
|
|
Test build #1439 has finished for PR 8080 at commit
|
|
Test build #40431 has finished for PR 8080 at commit
|
python/pyspark/streaming/tests.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
false -> False
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldnt this be false based on Java's style of writing false
|
Test build #1446 has started for PR 8080 at commit |
|
Test build #1447 has started for PR 8080 at commit |
|
Test build #40439 has finished for PR 8080 at commit
|
|
Test build #1448 has finished for PR 8080 at commit
|
|
LGTM |
…Create() in Python Author: Tathagata Das <tathagata.das1565@gmail.com> Closes #8080 from tdas/SPARK-9572 and squashes the following commits: 64a231d [Tathagata Das] Fix based on comments 741a0d0 [Tathagata Das] Fixed style f4f094c [Tathagata Das] Tweaked test 9afcdbe [Tathagata Das] Merge remote-tracking branch 'apache-github/master' into SPARK-9572 e21488d [Tathagata Das] Minor update 1a371d9 [Tathagata Das] Addressed comments. 60479da [Tathagata Das] Fixed indent 9c2da9c [Tathagata Das] Fixed bugs b5bd32c [Tathagata Das] Merge remote-tracking branch 'apache-github/master' into SPARK-9572 b55b348 [Tathagata Das] Removed prints 5781728 [Tathagata Das] Fix style issues b711214 [Tathagata Das] Reverted run-tests.py 643b59d [Tathagata Das] Revert unnecessary change 150e58c [Tathagata Das] Added StreamingContext.getActiveOrCreate() in Python (cherry picked from commit 5b8bb1b) Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
…Create() in Python Author: Tathagata Das <tathagata.das1565@gmail.com> Closes apache#8080 from tdas/SPARK-9572 and squashes the following commits: 64a231d [Tathagata Das] Fix based on comments 741a0d0 [Tathagata Das] Fixed style f4f094c [Tathagata Das] Tweaked test 9afcdbe [Tathagata Das] Merge remote-tracking branch 'apache-github/master' into SPARK-9572 e21488d [Tathagata Das] Minor update 1a371d9 [Tathagata Das] Addressed comments. 60479da [Tathagata Das] Fixed indent 9c2da9c [Tathagata Das] Fixed bugs b5bd32c [Tathagata Das] Merge remote-tracking branch 'apache-github/master' into SPARK-9572 b55b348 [Tathagata Das] Removed prints 5781728 [Tathagata Das] Fix style issues b711214 [Tathagata Das] Reverted run-tests.py 643b59d [Tathagata Das] Revert unnecessary change 150e58c [Tathagata Das] Added StreamingContext.getActiveOrCreate() in Python
No description provided.