I was able to go past this error by editing $HADOOP_HOME/conf/Hadoop-env.sh and 
adding this line:


Export 
HADOOP_CLASSPATH=$HIVE_HOME/lib/hive-common-x.x.x.jar:$HIVE_HOME/lib/hive-cli-0.10.0.jar
 but now I'm getting the error below. Am I on the right track? Should I edit 
the classpath elsewhere? What other jars am I missing?

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/hadoop/hive/ql/session/SessionState
        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.ql.session.SessionState
        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)
        ... 3 more




From: Ravindra [mailto:ravindra.baj...@gmail.com]
Sent: Friday, October 19, 2012 11:01 PM
To: user@hive.apache.org
Subject: Re: Hive installation

This class is present in $HIVE_HOME/lib/hive-common-X.X.X.jar

See if you have classpath set properly and this jar is in place.
--
Ravi.
''We do not inherit the earth from our ancestors, we borrow it from our 
children.'' PROTECT IT !


On Sat, Oct 20, 2012 at 2:52 AM, Artem Ervits 
<are9...@nyp.org<mailto:are9...@nyp.org>> wrote:
Hello all,

I'm trying to install Hive on a four-node Hadoop cluster and am a bit confused 
by the instructions in the wiki. Am I to install Hive on one node or client and 
have it point to the distributed Hadoop cluster? Or is there a distributed 
installation of Hive that I'm missing?

So far I've done everything in the wiki except for configuration, I copied the 
hive-default template and used it as is for hive-site.xml. I also copied 
hive-env default and used it as hive-env.sh I am getting this error:

[hduser@NYSGBDNNVM01 hive]$ 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: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 java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        ... 3 more


Am I supposed to copy the hive jar into the Hadoop lib folder?

Thank you.


Artem Ervits
Data Analyst
New York Presbyterian Hospital


--------------------



This electronic message is intended to be for the use only of the named 
recipient, and may contain information that is confidential or privileged.  If 
you are not the intended recipient, you are hereby notified that any 
disclosure, copying, distribution or use of the contents of this message is 
strictly prohibited.  If you have received this message in error or are not the 
named recipient, please notify us immediately by contacting the sender at the 
electronic mail address noted above, and delete and destroy all copies of this 
message.  Thank you.



--------------------



This electronic message is intended to be for the use only of the named 
recipient, and may contain information that is confidential or privileged.  If 
you are not the intended recipient, you are hereby notified that any 
disclosure, copying, distribution or use of the contents of this message is 
strictly prohibited.  If you have received this message in error or are not the 
named recipient, please notify us immediately by contacting the sender at the 
electronic mail address noted above, and delete and destroy all copies of this 
message.  Thank you.







--------------------

This electronic message is intended to be for the use only of the named 
recipient, and may contain information that is confidential or privileged.  If 
you are not the intended recipient, you are hereby notified that any 
disclosure, copying, distribution or use of the contents of this message is 
strictly prohibited.  If you have received this message in error or are not the 
named recipient, please notify us immediately by contacting the sender at the 
electronic mail address noted above, and delete and destroy all copies of this 
message.  Thank you.




--------------------

This electronic message is intended to be for the use only of the named 
recipient, and may contain information that is confidential or privileged.  If 
you are not the intended recipient, you are hereby notified that any 
disclosure, copying, distribution or use of the contents of this message is 
strictly prohibited.  If you have received this message in error or are not the 
named recipient, please notify us immediately by contacting the sender at the 
electronic mail address noted above, and delete and destroy all copies of this 
message.  Thank you.



Reply via email to