Skip to content
  • Josh Rosen's avatar
    cfe472a3
    [SPARK-14786] Remove hive-cli dependency from hive subproject · cfe472a3
    Josh Rosen authored
    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
    
    Author: Josh Rosen <joshrosen@databricks.com>
    
    Closes #12551 from JoshRosen/remove-hive-cli-dep-from-hive-subproject.
    cfe472a3
    [SPARK-14786] Remove hive-cli dependency from hive subproject
    Josh Rosen authored
    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
    
    Author: Josh Rosen <joshrosen@databricks.com>
    
    Closes #12551 from JoshRosen/remove-hive-cli-dep-from-hive-subproject.
Loading