-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-11125] [SQL] Uninformative exception when running spark-sql witho… #9134
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
…ut building with -Phive-thriftserver and SPARK_PREPEND_CLASSES is set
|
Test build #43774 has finished for PR 9134 at commit
|
|
Test build #43783 has finished for PR 9134 at commit
|
|
Check the test report. Seems the failed unit tests are unrelated. |
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 OK. (PS the exception isn't "unreadable" -- just "uninformative"). NoClassDefFoundError is lower-level problem; classes were compiled in the presence of some other classes that aren't available at runtime. It's "worse" than ClassNotFoundException. It probably makes sense, but is this really a problem of building without Hive support? I would kind of think it's the opposite: you built with Hive and then it's not available at runtime?
|
Are we certain that we only get |
|
@zjffdu given your similar PR on this topic, can you address the question of how this occurs? The "Error" is a different lower-level thing. |
|
@andrewor14 @srowen Here's how to reproduce the issue.
The root cause is that we still have SparkSQLCLIDriver in classpath (under sql/hive-thriftserver/target). But we don't have hive related classes in classpath. |
|
Hm, it still sounds like it's more of an artifact of mixing build artifacts. Something is being loaded that was compiled with Hive support, but then finds it's actually missing. Even though that's an error you'd only encounter as a developer (?) I suppose that's still a good motive. OK by me. |
|
Yes, that would be encountered as developer |
|
ok to test |
|
test this please |
|
Test build #44232 has finished for PR 9134 at commit
|
|
Seems the failed test is not related |
|
test this please |
|
Test build #44286 has finished for PR 9134 at commit
|
|
Thanks! Merging to master. |
…ut building with -Phive-thriftserver and SPARK_PREPEND_CLASSES is set
This is the exception after this patch. Please help review.