-
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
Changes from all commits
150e58c
643b59d
b711214
5781728
b55b348
b5bd32c
9c2da9c
60479da
1a371d9
e21488d
9afcdbe
f4f094c
741a0d0
64a231d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -158,7 +158,7 @@ def main(): | |
| else: | ||
| log_level = logging.INFO | ||
| logging.basicConfig(stream=sys.stdout, level=log_level, format="%(message)s") | ||
| LOGGER.info("Running PySpark tests. Output is in python/%s", LOG_FILE) | ||
| LOGGER.info("Running PySpark tests. Output is in %s", LOG_FILE) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the previous code means the stdout is in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, right. Good catch about the path. |
||
| if os.path.exists(LOG_FILE): | ||
| os.remove(LOG_FILE) | ||
| python_execs = opts.python_executables.split(',') | ||
|
|
||
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.
Maybe it's better to exchange the locations of
checkpointPathandsetupFunc, so that you can usecheckpointPath = Nonehere.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.
The problem is that then this order parameters is opposite of
getOrCreatewhich in my own experience is creating a lot confusion when one switches betweengetOrCreateandgetActiveOrCreate. That's why I explicitly kept the ordering same, as it is more annoying for developers to get the parameters order wrong (more so in Python than Java/Scala) than explicitly provide a checkpoint path or None. What do you think?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.
Good point. Let's keep the current order.