hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "YihueyChyi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-4473) I Can't run bin/hive
Date Wed, 29 Oct 2008 07:46:44 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-4473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643430#action_12643430
] 

YihueyChyi commented on HADOOP-4473:
------------------------------------

Add the line 

The result:
/jdk1.6.0_07/bin/java -Xmx1000m -Dhadoop.log.dir=/hadoop-0.17.2.1/logs -Dhadoop.log.file=hadoop.log
-Dhadoop.home.dir=/hadoop-0.17.2.1 -Dhadoop.id.str= -Dhadoop.root.logger=INFO,console -Djava.library.path=/hadoop-0.17.2.1/lib/native/Linux-i386-32
-classpath /hadoop-0.17.2.1/bin/../conf:/jdk1.6.0_07/lib/tools.jar:/hadoop-0.17.2.1:/hadoop-0.17.2.1/hadoop-0.17.2.1-core.jar:/hadoop-0.17.2.1/lib/commons-cli-2.0-SNAPSHOT.jar:/hadoop-0.17.2.1/lib/commons-codec-1.3.jar:/hadoop-0.17.2.1/lib/commons-httpclient-3.0.1.jar:/hadoop-0.17.2.1/lib/commons-logging-1.0.4.jar:/hadoop-0.17.2.1/lib/commons-logging-api-1.0.4.jar:/hadoop-0.17.2.1/lib/jets3t-0.5.0.jar:/hadoop-0.17.2.1/lib/jetty-5.1.4.jar:/hadoop-0.17.2.1/lib/junit-3.8.1.jar:/hadoop-0.17.2.1/lib/kfs-0.1.jar:/hadoop-0.17.2.1/lib/log4j-1.2.13.jar:/hadoop-0.17.2.1/lib/servlet-api.jar:/hadoop-0.17.2.1/lib/xmlenc-0.52.jar:/hadoop-0.17.2.1/lib/jetty-ext/commons-el.jar:/hadoop-0.17.2.1/lib/jetty-ext/jasper-compiler.jar:/hadoop-0.17.2.1/lib/jetty-ext/jasper-runtime.jar:/hadoop-0.17.2.1/lib/jetty-ext/jsp-api.jar:.:/jdk1.6.0_07/lib:/hadoop-0.17.2.1/conf://hadoop-0.17.2.1/lib:/hadoop-0.17.2.1/contrib/hbase-0.2.1/build/test:/hadoop-0.17.2.1/contrib/hbase-0.2.1/build/hadoop-0.16.0-hbase.jar:/hadoop-0.17.2.1/contrib/hbase-0.2.1/conf:/hadoop-0.17.2.1/contrib/hbase-0.2.1/hbase-0.2.1.jar:/hadoop-0.17.2.1/hadoop-0.17.2.1-core.jar
org.apache.hadoop.mapred.JobShell /hadoop-0.17.2.1/contrib/hive/dist/bin/../lib/hive_cli.jar
org.apache.hadoop.hive.cli.CliDriver -hiveconf hadoop.bin.path=/hadoop-0.17.2.1/bin/hadoop
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:148)
        at org.apache.hadoop.mapred.JobShell.run(JobShell.java:194)
        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:220)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.ql.session.SessionState
        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:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        ... 7 more

Even I copy hive_exec.jar to $HADOOP_HOME/lib/
The situation is the same. 

[root@araca1 dist]# ./bin/hive
/jdk1.6.0_07/bin/java -Xmx1000m -Dhadoop.log.dir=/hadoop-0.17.1/logs -Dhadoop.log.file=hadoop.log
-Dhadoop.home.dir=/hadoop-0.17.1 -Dhadoop.id.str= -Dhadoop.root.logger=INFO,console -Djava.library.path=/hadoop-0.17.1/lib/native/Linux-i386-32
-classpath /hadoop-0.17.2.1/bin/../conf:/jdk1.6.0_07/lib/tools.jar:/hadoop-0.17.1:/hadoop-0.17.1/hadoop-0.17.1-core.jar:/hadoop-0.17.1/lib/commons-cli-2.0-SNAPSHOT.jar:/hadoop-0.17.1/lib/commons-codec-1.3.jar:/hadoop-0.17.1/lib/commons-httpclient-3.0.1.jar:/hadoop-0.17.1/lib/commons-logging-1.0.4.jar:/hadoop-0.17.1/lib/commons-logging-api-1.0.4.jar:/hadoop-0.17.1/lib/jets3t-0.5.0.jar:/hadoop-0.17.1/lib/jetty-5.1.4.jar:/hadoop-0.17.1/lib/junit-3.8.1.jar:/hadoop-0.17.1/lib/kfs-0.1.jar:/hadoop-0.17.1/lib/log4j-1.2.13.jar:/hadoop-0.17.1/lib/servlet-api.jar:/hadoop-0.17.1/lib/xmlenc-0.52.jar:/hadoop-0.17.1/lib/jetty-ext/commons-el.jar:/hadoop-0.17.1/lib/jetty-ext/jasper-compiler.jar:/hadoop-0.17.1/lib/jetty-ext/jasper-runtime.jar:/hadoop-0.17.1/lib/jetty-ext/jsp-api.jar:.:/jdk1.6.0_07/lib:/hadoop-0.17.1/conf:/hadoop-0.17.1/lib:/hadoop-0.17.1/contrib/hbase-0.2.1/build/test:/hadoop-0.17.1/contrib/hbase-0.2.1/build/hadoop-0.16.0-hbase.jar:/hadoop-0.17.1/contrib/hbase-0.2.1/conf:/hadoop-0.17.1/contrib/hbase-0.2.1/hbase-0.2.1.jar:/hadoop-0.17.1/hadoop-0.17.1-core.jar
org.apache.hadoop.mapred.JobShell /hadoop-0.17.2.1/contrib/hive/dist/bin/../lib/hive_cli.jar
org.apache.hadoop.hive.cli.CliDriver -hiveconf hadoop.bin.path=/hadoop-0.17.2.1/bin/hadoop
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:148)
        at org.apache.hadoop.mapred.JobShell.run(JobShell.java:194)
        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:220)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.ql.session.SessionState
        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:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        ... 7 more




> I Can't run bin/hive 
> ---------------------
>
>                 Key: HADOOP-4473
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4473
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/hive
>    Affects Versions: 0.17.2
>         Environment: Redhat  hadoop-0.17.1
>            Reporter: YihueyChyi
>
> When I run bin/hive
> Then I get the message
> 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:148)
>         at org.apache.hadoop.mapred.JobShell.run(JobShell.java:194)
>         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:220)
> Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.ql.session.SessionState
>         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:306)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         ... 7 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message