hadoop-common-dev mailing list archives

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

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

Ashish Thusoo commented on HADOOP-4473:
---------------------------------------

This seems to be some issue with your environment. I tried this on mine. The following is
the output and bin/hive seems to work fine for me... I am not sure what is going on with your
environment. Can you check or send is your classpath settings?

[~]$ cd fb_mirror/
[~/fb_mirror]$ curl http://mirror.facebook.com/facebook/hive/hadoop-0.17/dist.tar.gz >
dist.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 8025k  100 8025k    0     0  5355k      0  0:00:01  0:00:01 --:--:-- 6078k
[~/fb_mirror]$ ls
dist.tar.gz
[~/fb_mirror]$ gunzip dist.tar.gz 
[~/fb_mirror]$ ls
dist.tar
[~/fb_mirror]$ tar xvf dist.tar 
dist/
dist/lib/
dist/lib/py/
dist/lib/py/hive_metastore/
dist/lib/py/hive_metastore/ttypes.py
dist/lib/py/hive_metastore/ThriftMetaStore-remote
dist/lib/py/hive_metastore/ThriftHiveMetastore-remote
dist/lib/py/hive_metastore/ThriftHiveMetastore.py
dist/lib/py/hive_metastore/ThriftMetaStore.py
dist/lib/py/hive_metastore/constants.py
dist/lib/py/hive_metastore/__init__.py
dist/lib/py/__init__.py
dist/lib/py/org_apache_hadoop_hive_serde/
dist/lib/py/org_apache_hadoop_hive_serde/__init__.py
dist/lib/py/org_apache_hadoop_hive_serde/ttypes.py
dist/lib/py/org_apache_hadoop_hive_serde/constants.py
dist/lib/php/
dist/lib/php/serde_types.php
dist/lib/php/ThriftMetaStore.php
dist/lib/php/serde_constants.php
dist/lib/php/hive_metastore_types.php
dist/lib/php/hive_metastore_constants.php
dist/lib/php/ThriftHiveMetastore.php
dist/lib/hive_metastore.jar
dist/lib/jpox-rdbms-1.2.2.jar
dist/lib/hive_common.jar
dist/lib/jpox-core-1.2.2.jar
dist/lib/stringtemplate-3.1b1.jar
dist/lib/libfb303.jar
dist/lib/velocity-1.5.jar
dist/lib/jpox-enhancer-1.2.2.jar
dist/lib/derby.jar
dist/lib/antlr-runtime-3.0.1.jar
dist/lib/commons-collections-3.2.1.jar
dist/lib/jline-0.9.94.jar
dist/lib/libthrift.jar
dist/lib/hive_cli.jar
dist/lib/asm-3.1.jar
dist/lib/hive_exec.jar
dist/lib/TestSerDe.jar
dist/lib/commons-jexl-1.1.jar
dist/lib/jdo2-api-2.1.jar
dist/lib/commons-lang-2.4.jar
dist/conf/
dist/conf/hive-default.xml
dist/conf/hive-log4j.properties
dist/conf/jpox.properties
dist/bin/
dist/bin/hive
dist/bin/hive-config.sh
dist/examples/
dist/examples/files/
dist/examples/files/kv2.txt
dist/examples/files/kv1.txt
dist/examples/files/kv1.string-sorted.txt
dist/examples/files/kv1.val.sorted.txt
dist/examples/files/lt100.sorted.txt
dist/examples/files/lt100.txt
dist/examples/files/kv1_cc.txt
dist/examples/files/kv1kv2.cogroup.txt
dist/examples/files/kv1_cb.txt
dist/examples/files/kv1.seq
dist/examples/files/kv4.txt
dist/examples/files/complex.seq
dist/examples/files/TestSerDe.jar
dist/examples/files/kv3.txt
dist/examples/queries/
dist/examples/queries/sample1.q
dist/examples/queries/input9.q
dist/examples/queries/groupby6.q
dist/examples/queries/join3.q
dist/examples/queries/input8.q
dist/examples/queries/groupby5.q
dist/examples/queries/union.q
dist/examples/queries/join2.q
dist/examples/queries/input7.q
dist/examples/queries/groupby4.q
dist/examples/queries/sample7.q
dist/examples/queries/join1.q
dist/examples/queries/input6.q
dist/examples/queries/groupby3.q
dist/examples/queries/sample6.q
dist/examples/queries/input_testxpath.q
dist/examples/queries/input5.q
dist/examples/queries/groupby2.q
dist/examples/queries/udf1.q
dist/examples/queries/join8.q
dist/examples/queries/input_part1.q
dist/examples/queries/sample5.q
dist/examples/queries/input_testsequencefile.q
dist/examples/queries/input4.q
dist/examples/queries/groupby1.q
dist/examples/queries/join7.q
dist/examples/queries/sample4.q
dist/examples/queries/input_testxpath2.q
dist/examples/queries/input3.q
dist/examples/queries/join6.q
dist/examples/queries/subq.q
dist/examples/queries/sample3.q
dist/examples/queries/cast1.q
dist/examples/queries/input2.q
dist/examples/queries/join5.q
dist/examples/queries/sample2.q
dist/examples/queries/input1.q
dist/examples/queries/case_sensitivity.q
dist/examples/queries/join4.q
dist/README
[~/fb_mirror]$ ls
dist  dist.tar
[~/fb_mirror]$ cd dist
[~/fb_mirror/dist]$ ls
bin  conf  examples  lib  README
[~/fb_mirror/dist]$ ls
bin  conf  examples  lib  README
[athusoo@dev053.snc1 ~/fb_mirror/dist]$ bin/hive   
Cannot find hadoop installation: $HADOOP_HOME must be set or hadoop must be in the path
[~/fb_mirror/dist]$ ls /mnt/vol/hadoop/bin
1                hadoop                   index.html       slaves.sh                 start-dfs.sh
                stop-all.sh       stop-mapred.sh
check_nodes.sh   hadoop2~                 index.html.1     start-all.sh              start-dfs.sh~
               stop-balancer.sh  timed_command
check_nodes.sh~  hadoop-config.sh         index.html.2     start-balancer.sh         start-mapred.nojob.sh~
      stop-cluster.sh
decommission.sh  hadoop-daemon.sh         index.html.3     start-cluster-mapred.sh~  start-mapred.sh
             stop-cluster.sh~
fsck.sh          hadoop-daemons.sh        rcc              start-cluster.sh          start-single-datanode.sh
    stop-dfs.sh
fsck.sh~         hadoop-single-daemon.sh  single-slave.sh  start-cluster.sh~         start-single-tasktracker.sh
 stop-dfs.sh~
[~/fb_mirror/dist]$ ls /mnt/vol/hadoop/bin/hadoop
/mnt/vol/hive/stable/cluster/bin/hadoop
[~/fb_mirror/dist]$ export HADOOP_HOME=/mnt/vol/hadoop
[~/fb_mirror/dist]$ bin/hive 
hive> 

> 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
>            Priority: Blocker
>
> 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