Apache Hive JDBC驱动程序在哪里下载? [英] Where is Apache Hive JDBC driver for download?

查看:2751
本文介绍了Apache Hive JDBC驱动程序在哪里下载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过JDBC从Java程序连接到Hive。
我搜索谷歌,并找到许多指南和例子,如下所示:
HiveServer2客户端



然而,我无法在任何地方找到JDBC驱动程序本身(jar文件)。似乎有一个从Cloudera下载的jar文件,但它需要注册。



有谁知道从哪里获得普通的Apache Hive JDBC驱动程序本身?

解决方案

将此依赖项添加到您的Maven pom中:

 <依赖性> 
< groupId> org.apache.hive< / groupId>
< artifactId> hive-jdbc< / artifactId>
< version> 2.0.0< / version>
< /依赖关系>

该jar可以从以下网址下载: http://central.maven.org/maven2/org/apache/hive /hive-jdbc/2.0.0/hive-jdbc-2.0.0.jar



完整的版本列表: http://www.mvnrepository.com/artifact/org.apache.hive/hive-jdbc

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驱动程序在哪里下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆