-
Couldn't load subscription status.
- Fork 28.9k
[SPARK-14786] Remove hive-cli dependency from hive subproject #12551
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-14786] Remove hive-cli dependency from hive subproject #12551
Conversation
| <configuration> | ||
| <rules> | ||
| <bannedDependencies> | ||
| <excludes combine.children="append"> |
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.
To verify that this does the correct thing, see
mvn -Phive -pl :spark-hive_2.11 help:effective-pom
|
LGTM pending Jenkins. |
| } | ||
|
|
||
| def isCliSessionState(state: SessionState): Boolean = { | ||
| var temp: Class[_] = state.getClass |
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 a test, this ended up failing with an NPE so I guess that the comment on line 114 / 123 is incorrect :(
|
LGTM |
|
Test build #56455 has finished for PR 12551 at commit
|
|
Test build #56453 has finished for PR 12551 at commit
|
|
Jenkins, retest this please. |
|
Test build #56470 has finished for PR 12551 at commit
|
|
Merging in master. |
The
hivesubproject currently depends onhive-cliin order to perform a check to see whether aSessionStateis an instance oforg.apache.hadoop.hive.cli.CliSessionState(see #9589). The introduction of thishive-clidependency has caused problems for users whose Hive metastore JAR classpaths don't include thehive-cliclasses (such as in #11495).This patch removes this dependency on
hive-cliand replaces theisInstanceOfcheck by reflection. I added a Maven Enforcer rule to banhive-clifrom thehivesubproject in order to make sure that this dependency is not accidentally reintroduced./cc @rxin @yhuai @adrian-wang @preecet