简体   繁体   中英

Difference between Apache hive-jdbc jar and Cloudera hive-jdbc jar

I want to integrate spring with hive when I try to add the jar files in my project I came across Apache hive-JDBC jar and Cloudera hive-JDBC jar. What is the difference between both jars?

This is Apache hive-JDBC maven dependency:

<dependency>
  <groupId>org.apache.hive</groupId>
  <artifactId>hive-jdbc</artifactId>
  <version>3.1.2</version>
</dependency>

where can I find Cloudera hive-jdbc dependency?

Cloudera's Hive JDBC driver jar is meant for Cloudera Distribution of Hadoop (CDH). Unless you are running CDH cluster, you should not be using CDH specific jars.

The artifacts are available in maven repository under cloudera repos , or can be downloaded from Cloudera itself. The jar version will include the corresponding CDH version for which it can be used.

<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-jdbc</artifactId>
    <version>2.1.1-cdh6.3.3</version>
</dependency>

Note: CDH might not have the latest versions of the components as you may find in Apache's distribution.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM