Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Hive, mail # user - Problem running Hive Jdbc Client


+
Melchiades Blanco Junior 2011-11-04, 18:53
Copy link to this message
-
Re: Problem running Hive Jdbc Client
Prasad Mujumdar 2011-11-04, 20:09
    Do you have Hadoop jars in the classpath ?

thanks
Prasad

On Fri, Nov 4, 2011 at 11:53 AM, Melchiades Blanco Junior
<[EMAIL PROTECTED]>wrote:

> Hey there, it's my first msg here. I'm trying to work with hive server by
> connecting with its jdbc driver...
>
> I have already hadoop and hive cli working...
>
> I'm using this exemple of jdbc client:
> https://cwiki.apache.org/confluence/display/Hive/HiveClient
>
> *When I run the script, I get the following message:*
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/hadoop/io/Writable
> at
> org.apache.hadoop.hive.jdbc.HiveStatement.executeQuery(HiveStatement.java:196)
>  at
> org.apache.hadoop.hive.jdbc.HiveStatement.execute(HiveStatement.java:130)
> at
> org.apache.hadoop.hive.jdbc.HiveConnection.configureConnection(HiveConnection.java:107)
>  at
> org.apache.hadoop.hive.jdbc.HiveConnection.<init>(HiveConnection.java:102)
> at org.apache.hadoop.hive.jdbc.HiveDriver.connect(HiveDriver.java:104)
>  at java.sql.DriverManager.getConnection(DriverManager.java:582)
> at java.sql.DriverManager.getConnection(DriverManager.java:185)
>  at HiveJdbcClient.main(HiveJdbcClient.java:23)
> Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.io.Writable
> 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)
> ... 8 more
>
> *Hive server logs the following message:*
> mbj07@hadoop-test:~/workspace/hiveConnection/bin$ cat
> /tmp/hduser/hive_job_log_hduser_201111041642_1329417361.txt
> SessionStart SESSION_ID="hduser_201111041642" TIME="1320432162976"
>
>
> I'd appreciate any help
>
>
+
Melchiades Blanco Junior 2011-11-07, 18:03