Hue主管启动错误 - $ HADOOP_CLASSPATH

时间:2014-03-05 07:38:18

标签: mysql apache hadoop hive hue

我已经安装了hadoop,所有服务都运行良好。类似的色调按照说明安装并正确配置(类似的配置单元)。我所检查的一切都很好。但是当我尝试启动hue(主管)时,我收到了这个错误。请建议我该怎么做才能解决这个问题。

root@slave3:/usr/local/master/hue/build/env# bin/supervisor
$HADOOP_HOME=/usr/local/master/hadoop
$HIVE_CONF_DIR=/etc/hive/conf
$HIVE_HOME=/usr/lib/hive
find: `/usr/lib/hive/lib': No such file or directory
$HADOOP_CLASSPATH=
$HADOOP_OPTS=-Dlog4j.configuration=log4j.properties
$HADOOP_CONF_DIR=/etc/hive/conf:/usr/local/master/hue/apps/beeswax/src/beeswax/../..   /../../desktop/conf:/usr/local/master/hadoop/conf
CWD=/usr/local/master/hue/build/env
Executing /usr/local/master/hadoop/bin/hadoop jar /usr/local/master/hue/apps/beeswax/src/beeswax/../../java-lib/BeeswaxServer.jar --beeswax 8002 --desktop-host 127.0.0.1 --desktop-port 8802 --query-lifetime 604800000 --metastore 8003
(30362) *** Controller starting at Tue Mar  4 23:46:57 2014
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:266)
 at org.apache.hadoop.util.RunJar.main(RunJar.java:190)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveConf
 at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
 ... 3 more
Should start 1 new children
Controller.spawn_children(number=1)
$HADOOP_HOME=/usr/local/master/hadoop
$HIVE_CONF_DIR=/etc/hive/conf
$HIVE_HOME=/usr/lib/hive
find: `/usr/lib/hive/lib': No such file or directory
$HADOOP_CLASSPATH=
$HADOOP_OPTS=-Dlog4j.configuration=log4j.properties
$HADOOP_CONF_DIR=/etc/hive/conf:/usr/local/master/hue/apps/beeswax/src/beeswax/../../../../desktop/conf:/usr/local/master/hadoop/conf
CWD=/usr/local/master/hue/build/env
Executing /usr/local/master/hadoop/bin/hadoop jar /usr/local/master/hue/apps/beeswax/src/beeswax/../../java-lib/BeeswaxServer.jar --beeswax 8002 --desktop-host 127.0.0.1 --desktop-port 8802 --query-lifetime 604800000 --metastore 8003
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:266)
 at org.apache.hadoop.util.RunJar.main(RunJar.java:190)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveConf
 at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
 ... 3 more
$HADOOP_HOME=/usr/local/master/hadoop
$HIVE_CONF_DIR=/etc/hive/conf
$HIVE_HOME=/usr/lib/hive
find: `/usr/lib/hive/lib': No such file or directory
$HADOOP_CLASSPATH=
$HADOOP_OPTS=-Dlog4j.configuration=log4j.properties
$HADOOP_CONF_DIR=/etc/hive/conf:/usr/local/master/hue/apps/beeswax/src/beeswax/../../../../desktop/conf:/usr/local/master/hadoop/conf
CWD=/usr/local/master/hue/build/env
Executing /usr/local/master/hadoop/bin/hadoop jar /usr/local/master/hue/apps/beeswax/src/beeswax/../../java-lib/BeeswaxServer.jar --beeswax 8002 --desktop-host 127.0.0.1 --desktop-port 8802 --query-lifetime 604800000 --metastore 8003
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:266)
 at org.apache.hadoop.util.RunJar.main(RunJar.java:190)
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveConf
 at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
  ... 3 more
$HADOOP_HOME=/usr/local/master/hadoop
$HIVE_CONF_DIR=/etc/hive/conf
$HIVE_HOME=/usr/lib/hive
find: `/usr/lib/hive/lib': No such file or directory
$HADOOP_CLASSPATH=
$HADOOP_OPTS=-Dlog4j.configuration=log4j.properties
$HADOOP_CONF_DIR=/etc/hive/conf:/usr/local/master/hue/apps/beeswax/src/beeswax/../../../../desktop/conf:/usr/local/master/hadoop/conf
CWD=/usr/local/master/hue/build/env
Executing /usr/local/master/hadoop/bin/hadoop jar /usr/local/master/hue/apps/beeswax/src/beeswax/../../java-lib/BeeswaxServer.jar --beeswax 8002 --desktop-host 127.0.0.1     --desktop-port 8802 --query-lifetime 604800000 --metastore 8003
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:266)
 at org.apache.hadoop.util.RunJar.main(RunJar.java:190)
 Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hive.conf.HiveConf
 at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
 ... 3 more
(30417) *** Child exiting
(30362) *** Controller exiting

我也安装了python,mysql。在mysql中我创建了一个数据库hadoop。我根据之前的hue安装exp做的所有事情。多数民众赞成工作。但是这个安装给出了问题。

1 个答案:

答案 0 :(得分:1)

参考:

HIVE_HOME=/usr/lib/hive
find: `/usr/lib/hive/lib': No such file or directory

我很确定你的$ HIVE_HOME是无效的......也许是/ usr / local / master / hue中的东西?