-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
[SPARK-12617][PySpark]Move Py4jCallbackConnectionCleaner to Streaming #10621
Conversation
from py4j.java_gateway import quiet_close, quiet_shutdown | ||
|
||
callback_server = self._gateway._callback_server | ||
if callback_server: |
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.
Add a defensive check
CC @davies |
LGTM |
retest this please |
Test build #48867 has finished for PR 10621 at commit
|
Merging to master and 1.6 |
and 1.5 |
Move Py4jCallbackConnectionCleaner to Streaming because the callback server starts only in StreamingContext. Author: Shixiong Zhu <[email protected]> Closes #10621 from zsxwing/SPARK-12617-2. (cherry picked from commit 1e6648d) Signed-off-by: Shixiong Zhu <[email protected]>
Move Py4jCallbackConnectionCleaner to Streaming because the callback server starts only in StreamingContext. Author: Shixiong Zhu <[email protected]> Closes #10621 from zsxwing/SPARK-12617-2. (cherry picked from commit 1e6648d) Signed-off-by: Shixiong Zhu <[email protected]>
@zsxwing Let me know, If I have missed anything.. |
@sarathjiguru this bug exists in 1.5.2. You need to apply the patches by yourself for now. |
@zsxwing I would like to apply patch by using 0.9.1 version of py4j. Could you please let me know, how you applied the fix. Also I could not find |
@sarathj if you want to upgrade py4j to 0.9.1, you can just check-pick this patch: zsxwing@a3e3e17 If you don't want to upgrade py4j, just check-pick the following two patches should be enough: |
Hi, One question, maybe is stupid question I dont know and I ask sorry in advance. We are workin with hortonworks, in the beginning of the project we were working with HDP 2.4.0 which one has the spark 1.6.0 and wich one has a bug in pyspark, this bug wich one you say resolved in: zsxwing commented on 22 Feb 2016 The first solution we have done was upgrade to HDP 2.4.3 wich one has spark 1.6.2 and wich one teorically must to have the patch to this problem, but Surprise we have the same bug without the patch. Ok, Maybe the problem is with hortonworks and I should write in other forum, but I was in the oficial website of spark: https://spark.apache.org/downloads.html If you choose the oficial version of spark 1.6.2 and you download this version, wich one was released June 25 2016, if I go to pyspark file, the bug continue in this installation!!!! I am sorry but I dont understadn and We are desperated with this situation. Should I appply the patch in source and recompile the code? How can I do it step to step? Thanks in Advance. |
Move Py4jCallbackConnectionCleaner to Streaming because the callback server starts only in StreamingContext.