Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-28308

The module `org.apache.hive:hive-jdbc:4.0.0` unintuitively removed all dependencies under the Compile Scope

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • None
    • Not Applicable
    • None
    • None

    Description

      • The module org.apache.hive:hive-jdbc:4.0.0 unintuitively removed all dependencies under the Compile Scope.
      • Comparing the dependencies listed at https://central.sonatype.com/artifact/org.apache.hive/hive-jdbc/4.0.0/dependencies with those at https://central.sonatype.com/artifact/org.apache.hive/hive-jdbc/3.1.3/dependencies , it becomes apparent that org.apache.hive:hive-jdbc:4.0.0 includes only test dependencies. This results in the need to manually add additional dependencies when utilizing the HiveServer2 JDBC Driver.
      • <dependency>
          <groupId>org.apache.hive</groupId>
          <artifactId>hive-jdbc</artifactId>
          <version>4.0.0</version>
        </dependency>
        <dependency>
          <groupId>org.apache.hive</groupId>
          <artifactId>hive-service</artifactId>
          <version>4.0.0</version>
        <exclusions>
          <exclusion>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-slf4j-impl</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-reload4j</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-web</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-core</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
          </exclusion>
          <exclusion>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-1.2-api</artifactId>
          </exclusion>
          </exclusions>
        </dependency>
        <dependency>
          <groupId>org.apache.hadoop</groupId>
          <artifactId>hadoop-client-runtime</artifactId>
          <version>3.3.6</version>
        </dependency>
        
      • More early surveys come from https://github.com/apache/shardingSphere/pull/31526 and https://github.com/dbeaver/dbeaver/issues/22777 . I personally think this is not a reasonable phenomenon.

      Attachments

        Activity

          People

            dengzh Zhihua Deng
            linghengqian Qiheng He
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: