hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From demian rosas <demia...@gmail.com>
Subject Problem when trying to connect to hive server using jdbc
Date Mon, 01 Apr 2013 20:43:04 GMT
Hi,

I am using hive from CDH4.2 in a fresh installation. I want to set a mysql
metastore.

When trying to connect to hive server using jdbc I am getting this error:

Exception in thread "main" java.lang.ClassNotFoundException:
org.apache.hive.jdbc.HiveDriver
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at Conn.main(Conn.java:8)


I have copied the jdbc hive jar (hive-jdbc-0.10.0-cdh4.2.0.jar) into my
CLASSPATH, as well as my mysql connector jar
(mysql-connector-java-5.1.24-bin.jar).

I would appreciate a lot if you could tell me what I am missing here.

Thanks a lot,
Demian

Mime
View raw message