简体   繁体   English

Apache hive-jdbc jar 和 Cloudera hive-jdbc jar 的区别

[英]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. 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? jars有什么区别?

This is Apache hive-JDBC maven dependency:这是 Apache hive-JDBC maven 依赖项:

<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 hive-jdbc 依赖项?

Cloudera's Hive JDBC driver jar is meant for Cloudera Distribution of Hadoop (CDH). Cloudera 的 Hive JDBC 驱动程序 jar 适用于 Cloudera 分发 Z53EB3DCFBB4C210BCD4FECDH4 (8710BCD4FECDH4)。 Unless you are running CDH cluster, you should not be using CDH specific jars.除非您正在运行 CDH 集群,否则不应使用 CDH 特定的 jars。

The artifacts are available in maven repository under cloudera repos , or can be downloaded from Cloudera itself.这些工件在cloudera repos下的 maven 存储库中可用,或者可以从Cloudera本身下载。 The jar version will include the corresponding CDH version for which it can be used. jar 版本将包括可以使用的相应 CDH 版本。

<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.注意: CDH 可能没有您在 Apache 发行版中找到的最新版本的组件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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