配置单元启动时出错 - 线程“main”中的异常java.lang.NoClassDefFoundError:org / apache / hadoop / util / PlatformName

时间:2014-04-18 15:01:18

标签: java hadoop hive

我正在尝试在CDH 4.2中启动Hive,我遇到了以下问题

hive
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.PlatformName
    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)
Could not find the main class: org.apache.hadoop.util.PlatformName.  Program will exit.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/util/RunJar
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.RunJar
    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)
Could not find the main class: org.apache.hadoop.util.RunJar.  Program will exit.

以下是供参考的环境参数。我错过了什么吗?

  

echo $ HADOOP_CONF_DIR /etc/hadoop/conf/conf.pseudo

     

echo $ HADOOP_HOME /usr/lib/hadoop-0.20-mapreduce

     

echo $ CLASSPATH   /usr/lib/hadoop-0.20-mapreduce/hadoop-core.jar;/usr/lib/hadoop/hadoop-auth-2.0.0-cdh4.2.0.jar;/usr/lib/hadoop-0.20-mapreduce/ < EM> ;

     

echo $ HIVE_HOME

如果您想查看我在此处可能缺少的任何其他环境变量,请与我们联系。

0 个答案:

没有答案