You can change the last line bin/hive script to print the classpath, may we can 
figure out from that.


________________________________
From: Shirley Cohen <[email protected]>
Reply-To: <[email protected]>
Date: Thu, 29 Jan 2009 11:04:23 -0800
To: <[email protected]>
Subject: classpath issue

Hi,

I'm finally getting around to installing hive. I was able to build the
latest version from the repository without any problems. However, when I
try to run cli from from build/dist/bin, I get the following error:

./bin/hive -hiveconf hive.root.logger=INFO,console
java.lang.NoClassDefFoundError: org/apache/hadoop/hive/conf/HiveConf
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:158)
        at org.apache.hadoop.mapred.JobShell.run(JobShell.java:54)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
        at org.apache.hadoop.mapred.JobShell.main(JobShell.java:68)
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.hive.conf.HiveConf
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        ... 7 more

 From the error, it looks as though my classpath isn't getting set
correctly. Any ideas on why that might be?

I'm running on FedoraCore 8 and hadoop 19. I have set the $HADOOP_HOME
variable to the root of my hadoop directory.

Thanks,

Shirley


Reply via email to