GitHub user JoshRosen opened a pull request:

    https://github.com/apache/spark/pull/12551

    [SPARK-14786] Remove hive-cli dependency from hive subproject

    The `hive` subproject currently depends on `hive-cli` in order to perform a 
check to see whether a `SessionState` is an instance of 
`org.apache.hadoop.hive.cli.CliSessionState` (see #9589). The introduction of 
this `hive-cli` dependency has caused problems for users whose Hive metastore 
JAR classpaths don't include the `hive-cli` classes (such as in #11495).
    
    This patch removes this dependency on `hive-cli` and replaces the 
`isInstanceOf` check by reflection. I added a Maven Enforcer rule to ban 
`hive-cli` from the `hive` subproject in order to make sure that this 
dependency is not accidentally reintroduced.
    
    /cc @rxin @yhuai @adrian-wang @preecet

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/JoshRosen/spark 
remove-hive-cli-dep-from-hive-subproject

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12551.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12551
    
----
commit 994fbae48176ddb3b68a4b393ce9cc948a261be6
Author: Josh Rosen <joshro...@databricks.com>
Date:   2016-04-21T01:05:34Z

    Use reflection to check for CliSessionState

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to