Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

How to Do I get the Hive JDBC Driver for My Client

I would like to use SquirrelSQL or Oracle SQL Developer or another SQL tool to connect to Hive via JDBC. Where do I find the Hive JDBC Client?

1 ACCEPTED SOLUTION has a nice write up on this, including a script that pulls together the needed jars, on his wiki at

View solution in original post


FOR HDP 2.2.x From /usr/hdp/current/hive-client/lib/ sftp or scp to your local desktop

  • hive-*-0.14*.jar
  • httpclient-4.2.5.jar
  • httpcore-4.2.5.jar
  • libthrift-0.9.0.jar
  • libfb303-0.9.0.jar
  • commons-logging-1.1.3.jar

FOR HDP 2.3.x

From /usr/hdp/current/hive-client/lib/ sftp or scp to your local desktop

  • hive-jdbc.jar


From /usr/hdp/current/hadoop-client

  • hadoop-common.jar
  • hadoop-auth.jar

From /usr/hdp/current/hadoop-client/lib

  • log4j-1.2.17.jar
  • slf4j-*.jar

Download SquirrelSQL from

Configure Hive Driver in Squirrel SQL

  1. Select ‘Drivers -> New Driver…’ to register the Hive JDBC driver.
  2. Enter Hive for Driver Name and jdbc:// Example URL: jdbc:hive://localhost:10000/default
  3. Select ‘Extra Class Path -> Add’ to add the jars you copied from the previous steps.
  4. Enter org.apache.hive.jdbc.HiveDriver as Class Name

Add a New Hive Connection Alias for HDP 2.3

  1. Choose Alias -> New Alias
  2. Enter “Hive for HDP 2.3”
  3. Enter “jdbc:hive2://1270.0.1:10000”
  4. Enter “hive” for User Name and “hive” for Password.
  5. Test your connection and ensure it is successful
  6. Connect to “Hive for HDP 2.3.” alias. If successful you would be presented with the default and xademo databases.

Oracle SQL Developer and Toad for Apache Hadoop does not use Apache Hive JDBC Driver. They are both black boxes that hide the the ability to easily point to a JDBC class path and just end whatever JDBC properties you desire.

So if you need to add special properties for ssl, or kerberos or ldap authentication, neither SQL Developer nor Toad will work.

Use SQL Workbench J, RazorSQL or Squirrel SQL instead. has a nice write up on this, including a script that pulls together the needed jars, on his wiki at

I have tested this and this is the best/easy way to configure the connection




Starting with Hive 0.14, there is a standalone jar that contains most of the necessary binaries. It still currently requires two additional jars until HIVE-9600 is resolved:

  • hive-jdbc-<version>-standalone.jar
  • hadoop-common.jar
  • hadoop-auth.jar

See for details.


I have HDP 2.3 sandbox in my server, I followed you instruction to setup the connection for squirrel sql, I got under exception:

java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration at at java.util.concurrent.FutureTask.get( at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.awaitConnection( at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$100( at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$ at java.util.concurrent.Executors$ at at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect( at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$000( at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$ ... 5 more Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/conf/Configuration at org.apache.hive.jdbc.HiveConnection.createUnderlyingTransport( at org.apache.hive.jdbc.HiveConnection.createBinaryTransport( at org.apache.hive.jdbc.HiveConnection.openTransport( at org.apache.hive.jdbc.HiveConnection.<init>( at org.apache.hive.jdbc.HiveDriver.connect( at net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection( at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect( ... 7 more Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.conf.Configuration at at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( ... 14 more

can you please help?



@Ancil McBarnett check out the repo i've been maintianing that uses maven to pull the required jars.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.