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-28776][ML] SparkML Writer gets hadoop conf from session state #25505
Conversation
@jkbradley you seem to have reviewed previous prs to this file like #18742. Would you be able to review this pr, or suggest another person to do so? |
Just for my reference, does this make it consistent with other similar code? just want to understand the argument why this needs to change - what problem does the current code cause? |
Hi @srowen
|
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.
Sounds good to me. There are probably some more cases where a similar fix should be made then, but OK to address this isolated one.
Test build #4837 has finished for PR 25505 at commit
|
Thanks @srowen ! Now that the tests have passed, is this PR good to merge? |
(I usually leave it open at least a day to catch any more comments) |
## Upstream SPARK-28776 ticket and PR link (if not applicable, explain) apache#25505 ## What changes were proposed in this pull request? SparkML writer gets hadoop conf from session state, instead of the spark context. ## How was this patch tested? Tested in pyspark.ml.tests.test_persistence.PersistenceTest test_default_read_write Please review http://spark.apache.org/contributing.html before opening a pull request.
Merged to master |
What changes were proposed in this pull request?
SparkML writer gets hadoop conf from session state, instead of the spark context.
Why are the changes needed?
Allow for multiple sessions in the same context that have different hadoop configurations.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Tested in pyspark.ml.tests.test_persistence.PersistenceTest test_default_read_write