下载jar包
项目中导入依赖,此时Maven仓库里面就会有这些东西,注意hive-jdbc版本要对应上,否则连不上报错.
<dependency>
<groupId>org.apache.hive</groupId>
<artifactId>hive-jdbc</artifactId>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>2.7.1</version>
</dependency>
此时用搜索软件搜索下面jar包
hive-common-1.2.1.jar
hive-service-1.2.1.jar
hadoop-common-2.7.1.jar
commons-httpclient-3.1.jar
commons-logging-1.2.jar
curator-client-2.6.0.jar
curator-framework-2.6.0.jar
hadoop-auth-2.7.1.jar
hadoop-common-2.7.1.jar
hive-metastore-1.2.1.jar
httpclient-4.4.jar
httpcore-4.4.jar
zookeeper-3.4.6.jar
libthrift-0.9.2.jar
hive-jdbc-1.2.1.jar
guava-14.0.1.jar
hive-serde-1.2.1.jar
slf4j-api-1.7.5.jar
导入jar包
导入完成点击 apply
输入ip和端口输入用户名和密码
用户名密码默认都是 NONE
测试是否连接成功
点击Test Connecting 连接成功…