问题描述
我需要通过JDBC从Java程序连接到Hive。
我搜索谷歌,并找到许多指南和例子,如下所示:
然而,我无法在任何地方找到JDBC驱动程序本身(jar文件)。似乎有一个从Cloudera下载的jar文件,但它需要注册。
有谁知道从哪里获得普通的Apache Hive JDBC驱动程序本身?
将此依赖项添加到您的Maven pom中:
<依赖性>
< groupId> org.apache.hive< / groupId>
< artifactId> hive-jdbc< / artifactId>
< version> 2.0.0< / version>
< /依赖关系>
该jar可以从以下网址下载:
完整的版本列表:
I need to connect to Hive from Java program via JDBC.I searched google and found numerous guides and examples like this:HiveServer2 clients
However, I could not find the JDBC driver itself (jar file) anywhere. There seem to be a jar file for download from Cloudera, but it requires registration.
Does anyone know where to get the plain Apache Hive JDBC driver itself ?
Add this dependency to your Maven pom:
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>2.0.0</version>
</dependency>
The jar can be downloaded from: http://central.maven.org/maven2/org/apache/hive/hive-jdbc/2.0.0/hive-jdbc-2.0.0.jar
Complete list of versions: http://www.mvnrepository.com/artifact/org.apache.hive/hive-jdbc
这篇关于Apache Hive JDBC驱动程序在哪里下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!