我正在尝试使用以下配置在我的机器上运行单节点hadoop集群:
inux livingstream 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
我能够在没有任何问题的情况下格式化namenode,但是当我尝试使用以下命令启动namenode时:
hadoop-daemon.sh start namenode
我收到以下错误:
ishan@livingstream:/usr/local/hadoop$ hadoop-daemon.sh start namenode
Warning: $HADOOP_HOME is deprecated.
mkdir: cannot create directory `/var/log/hadoop/ishan': Permission denied
chown: cannot access `/var/log/hadoop/ishan': No such file or directory
mkdir: cannot create directory `/var/run/hadoop': Permission denied
starting namenode, logging to /var/log/hadoop/ishan/hadoop-ishan-namenode-livingstream.out
/usr/sbin/hadoop-daemon.sh: line 138: /var/run/hadoop/hadoop-ishan-namenode.pid: No such file or directory
/usr/sbin/hadoop-daemon.sh: line 137: /var/log/hadoop/ishan/hadoop-ishan-namenode-livingstream.out: No such file or directory
head: cannot open `/var/log/hadoop/ishan/hadoop-ishan-namenode-livingstream.out' for reading: No such file or directory
/usr/sbin/hadoop-daemon.sh: line 147: /var/log/hadoop/ishan/hadoop-ishan-namenode-livingstream.out: No such file or directory
/usr/sbin/hadoop-daemon.sh: line 148: /var/log/hadoop/ishan/hadoop-ishan-namenode-livingstream.out: No such file or directory
我没有创建一个单独的用户" hduser"用于hadoop安装。我正在使用我现有的用户名。这可能就是我面临这个问题的原因。 有人可以帮我解决这个问题。
我需要更改哪些权限才能使其正常工作?
更新 在摆弄并解决权限问题之后,我已经转移到此处发布的新的错误愚蠢:hadoop Nanenode wont start 如果你能把我推向正确的方向,我会永远记住你们,这样我才能开始真正的工作。