Unable to connect to HIVE2 via JAVA

眉间皱痕 提交于 2019-12-03 15:35:59

You use a hive2 type jdbc url.

As explained in Hive wiki, the thrift jdbc is no longer recommended:

JDBC

This document describes the JDBC client for the original Hive Server (sometimes called Thrift server or HiveServer1). For information about the HiveServer2 JDBC client, see JDBC in the HiveServer2 Clients document. HiveServer2 use is recommended; the original HiveServer has several concurrency issues and lacks several features available in HiveServer2.

Checkout this info on hive2 jdbc. Driver can be found here for instance:

http://mvnrepository.com/artifact/org.apache.hive/hive-jdbc/1.2.1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!