export HADOOP_CLASSPATH=/master/hadoop/json.jar:/master/hadoop/hbase-0.20.2/hbase-0.20.2.jar:/master/hadoop/hbase-0.20.2/lib/zookeeper-3.2.1.jar:/master/hadoop/hive/build/dist/lib/:/master/hadoop/hive/build/dist/lib/*.jar:/master/hadoop/hive/build/dist/conf/
should be: export HADOOP_CLASSPATH=/master/hadoop/json.jar:/master/hadoop/hbase-0.20.2/hbase-0.20.2.jar:/master/hadoop/hbase-0.20.2/lib/zookeeper-3.2.1.jar:/master/hadoop/hive/build/dist/lib/:/master/hadoop/hive/build/dist/lib/*.jar:/master/hadoop/hive/build/dist/conf/:$HADOOP_CLASSPATH Zheng On Sun, Feb 21, 2010 at 11:19 PM, Mafish Liu <[email protected]> wrote: > This happens when hive fails to find hive jar files. > Did you specify HIVE_HOME and HIVE_LIB in your system? > > 2010/2/22 Vidyasagar Venkata Nallapati <[email protected]>: >> Hi, >> >> >> >> While starting hive I am still getting an error, attached are the hadoop env >> and hive-ste I am using >> >> >> >> phoe...@ph1:/master/hadoop/hive/build/dist$ bin/hive >> >> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/hadoop/hive/conf/HiveConf >> >> at java.lang.Class.forName0(Native Method) >> >> at java.lang.Class.forName(Class.java:247) >> >> at org.apache.hadoop.util.RunJar.main(RunJar.java:149) >> >> Caused by: java.lang.ClassNotFoundException: >> org.apache.hadoop.hive.conf.HiveConf >> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >> >> at java.security.AccessController.doPrivileged(Native Method) >> >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) >> >> ... 3 more >> >> >> >> Regards >> >> Vidya >> >> ________________________________ >> DISCLAIMER: The information in this message is confidential and may be >> legally privileged. It is intended solely for the addressee. Access to this >> message by anyone else is unauthorized. If you are not the intended >> recipient, any disclosure, copying, or distribution of the message, or any >> action or omission taken by you in reliance on it, is prohibited and may be >> unlawful. Please immediately contact the sender if you have received this >> message in error. Further, this e-mail may contain viruses and all >> reasonable precaution to minimize the risk arising there from is taken by >> OnMobile. OnMobile is not liable for any damage sustained by you as a result >> of any virus in this e-mail. All applicable virus checks should be carried >> out by you before opening this e-mail or any attachment thereto. >> Thank you - OnMobile Global Limited. >> > > > > -- > [email protected] > -- Yours, Zheng
