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.
hadoop-env.sh
Description: hadoop-env.sh
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>hadoop.bin.path</name>
<value>/master/hadoop/hadoop-0.20.1/bin/</value>
<description>Path to hadoop binary. Assumes that by default we are executing from hive/</description>
</property>
<property>
<name>hadoop.config.dir</name>
<value>/master/hadoop/hadoop-0.20.1/conf</value>
<description>Path to hadoop configuration. Again assumes that by default we are executing from hive/</description>
</property>
<property>
<name>hive.exec.scratchdir</name>
<value>/tmp/hive-${user.name}</value>
<description>Scratch space for Hive jobs</description>
</property>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:derby:;databaseName=../../build/contrib/hive/test/junit_metastore_db;create=true</value>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>
<value>org.apache.derby.jdbc.EmbeddedDriver</value>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>APP</value>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>mine</value>
</property>
<property>
<name>hive.metastore.local</name>
<value>true</value>
<description>controls whether to connect to remove metastore server or open a new metastore server in Hive Client JVM</description>
</property>
<property>
<!-- this should eventually be deprecated since the metastore should supply this -->
<name>hive.metastore.warehouse.dir</name>
<value>file://${user.dir}/../../build/contrib/hive/ql/test/data/warehouse/</value>
<description></description>
</property>
<property>
<name>hive.metastore.metadb.dir</name>
<value>file://${user.dir}/../../build/contrib/hive/ql/test/data/metadb/</value>
<description>
Required by metastore server or if the uris argument below is not supplied
</description>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://ph1:9000</value>
<description></description>
</property>
<property>
<name>mapred.job.tracker</name>
<value>ph1:10000</value>
<description></description>
</property>
<property>
<name>test.log.dir</name>
<value>${user.dir}/../../build/contrib/hive/ql/test/logs</value>
<description></description>
</property>
<property>
<name>test.src.dir</name>
<value>file://${user.dir}/../../src/contrib/hive/ql/src/test</value>
<description></description>
</property>
<property>
<name>test.data.files</name>
<value>${user.dir}/../../build/contrib/hive/ql/test/data/files</value>
<description></description>
</property>
<property>
<name>test.query.file1</name>
<value>file://${user.dir}/../../src/contrib/hive/ql/src/test/org/apache/hadoop/hive/ql/input2.q</value>
<value></value>
<description></description>
</property>
<property>
<name>hive.jar.path</name>
<value>${user.dir}/../../build/contrib/hive/ql/hive_exec.jar</value>
<description></description>
</property>
<property>
<name>hive.metastore.rawstore.impl</name>
<value>org.apache.hadoop.hive.metastore.ObjectStore</value>
<description>Name of the class that implements org.apache.hadoop.hive.metastore.rawstore interface. This class is used to store and retrieval of raw metadata objects such as table, database</description>
</property>
</configuration>
