Hive - JDBC

> Database > Apache - Hive (HS|Hive Server)

1 - About

JDBC information on Hive

3 - Management

3.1 - Dependency

hadoop-*-core.jar
hive-jdbc-*.jar

Example:

  • hadoop-core-1.2.1.jar
  • hive-jdbc-2.3.2.jar

hive-jdbc-*-standalone.jar. Example: http://central.maven.org/maven2/org/apache/hive/hive-jdbc/1.2.1/hive-jdbc-1.2.1-standalone.jar

Advertising

3.2 - URI

3.3 - Sample code

Class.forName("org.apache.hive.jdbc.HiveDriver");
Connection cnct = DriverManager.getConnection("jdbc:hive2://<host>:<port>", "<user>", "<password>");
Connection con = DriverManager.getConnection("jdbc:hive2://localhost:10000/default", "hive", "");

More ... Kerberos, ..

db/hive/jdbc.txt · Last modified: 2019/05/14 14:59 by gerardnico