Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Hive >> mail # dev >> Problem running hive from eclipse


Copy link to this message
-
Problem running hive from eclipse
Hi,

I'm trying to launch junit test from eclipse, it fails with
ClassNotFoundException.

I did 'ant clean package eclipse-files' and imported the project into
eclipse, as specified in
https://cwiki.apache.org/Hive/gettingstarted-eclipsesetup.html.

When I run HIveCLI or TestCliDriver it says

Errors exist in required projects: hive
Proceed with launch?

When I proceed, it fails with

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/hadoop/hive/cli/CliDriver

Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.hive.cli.CliDriver

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)

Any help to come out this problem is much appreciated.

Environment :
OS : Mac OSX Lion 10.7.3
Java : 1.6.0.jdk

Thanks
Amareshwari
+
Amir Sanjar 2013-02-21, 13:47
+
Brock Noland 2013-02-21, 13:44
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB