-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-15072][SQL][REPL][EXAMPLES] Remove SparkSession.withHiveSupport #12851
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
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 this one needs to be built?
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.
Not sure I got you ? do you mean something like withSparkContext(sc) instead of getOrCreate()
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.
In order to use this file, I think it needs to be built into a jar?
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 we need to rebuild the jar. There's already a TODO on L31. Right now the corresponding test in HiveSparkSubmitSuite is ignored.
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.
Since we not longer create a assembly jar, not sure how to create this jar easily(steps could be found here #11630).
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.
let's just fix it later
|
LGTM |
|
Test build #57569 has finished for PR 12851 at commit
|
|
Test build #2961 has finished for PR 12851 at commit
|
|
Seems like some legitimate failure/? |
|
Jenkins retest this please. |
|
Test build #57656 has finished for PR 12851 at commit
|
| val builder = SparkSession.builder.config(conf) | ||
| if (SparkSession.hiveClassesArePresent) { | ||
| sparkSession = builder.enableHiveSupport().getOrCreate() | ||
| sparkSession = SparkSession.builder.enableHiveSupport().getOrCreate() |
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.
wait, this is wrong now. We want to use the builder we already have
|
@techaddict a general suggestion is to try to get the |
|
Test build #57812 has finished for PR 12851 at commit
|
|
Test build #57849 has finished for PR 12851 at commit
|
|
@rxin @andrewor14 Comments Addressed, now all tests are passing 🎉 |
| .setMaster("local") | ||
| .setAppName("testing") | ||
|
|
||
| val sparkSession = SparkSession.builder.enableHiveSupport().getOrCreate() |
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.
this should use the builder's conf method. By the way for this file I would revert the changes here and fix it in #12924 instead, since @dilipbiswal is actually rebuilding the jar there.
|
@techaddict this is getting really close. For the regression test for SPARK-8489 I would just fix it later since this patch doesn't rebuild that jar anyway. |
|
LGTM |
|
Test build #57904 has finished for PR 12851 at commit
|
|
Merging into master 2.0 |
## What changes were proposed in this pull request? Removing the `withHiveSupport` method of `SparkSession`, instead use `enableHiveSupport` ## How was this patch tested? ran tests locally Author: Sandeep Singh <[email protected]> Closes #12851 from techaddict/SPARK-15072. (cherry picked from commit ed6f3f8) Signed-off-by: Andrew Or <[email protected]>
…port in PySpark ## What changes were proposed in this pull request? This is a followup of #12851 Remove `SparkSession.withHiveSupport` in PySpark and instead use `SparkSession.builder. enableHiveSupport` ## How was this patch tested? Existing tests. Author: Sandeep Singh <[email protected]> Closes #13063 from techaddict/SPARK-15072-followup.
…port in PySpark ## What changes were proposed in this pull request? This is a followup of #12851 Remove `SparkSession.withHiveSupport` in PySpark and instead use `SparkSession.builder. enableHiveSupport` ## How was this patch tested? Existing tests. Author: Sandeep Singh <[email protected]> Closes #13063 from techaddict/SPARK-15072-followup.
What changes were proposed in this pull request?
Removing the
withHiveSupportmethod ofSparkSession, instead useenableHiveSupportHow was this patch tested?
ran tests locally