安装Hue,权限被拒绝错误?

时间:2013-08-08 18:32:01

标签: hadoop hue

我在尝试构建Hue时得到以下内容:

(6211) *** Controller starting at Thu Aug  8 11:29:50 2013
Should start 1 new children
Controller.spawn_children(number=1)
$HADOOP_HOME=
$HADOOP_BIN=/usr/local/hadoop/bin/hadoop
$HIVE_CONF_DIR=~/hive-0.10.0/conf
$HIVE_HOME=~/hive-0.10.0
find: `~/hive-0.10.0/lib': No such file or directory
$HADOOP_CLASSPATH=:
$HADOOP_OPTS=-Dlog4j.configuration=log4j.properties
$HADOOP_CONF_DIR=~/hive-0.10.0/conf:/usr/local/hadoop/conf
$HADOOP_MAPRED_HOME=/usr/lib/hadoop-0.20-mapreduce
CWD=/usr/local/hue/desktop/conf
Executing /usr/local/hadoop/bin/hadoop jar /usr/local/hue/apps/beeswax/src/beeswax/../../java-lib/BeeswaxServer.jar --beeswax 8002 --desktop-host 127.0.0.1 --desktop-port 8888 --query-lifetime 604800000 --metastore 8003
Exception in thread "main" java.io.IOException: Permission denied
    at java.io.UnixFileSystem.createFileExclusively(Native Method)
    at java.io.File.createTempFile(File.java:1879)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:119)

我已经更改了配置文件,因此它不使用hue,但是我登录的用户在hadoop dfs,hadoop,hive等中具有读写权限。不知道为什么会这样做......

1 个答案:

答案 0 :(得分:0)

似乎它开始在/ usr / local / hue / desktop / conf中启动Beeswax。默认情况下,蜂蜡应该作为'hue'用户运行(https://github.com/cloudera/hue/blob/master/desktop/core/src/desktop/supervisor.py#L67),因此需要通过'hue'进行写入。