我在Mac本地Mac上设置了hadoop。当我使用start-dfs.sh命令使用单独的hadoop用户启动DFS时,在终端中出现以下错误。 0.0.0.0: mkdir: /usr/local/Cellar/hadoop/2.3.0/libexec/logs: Permission denied 有谁知道我如何更改hadoop的日志目录?我使用自制软件安装了hadoop。
0.0.0.0: mkdir: /usr/local/Cellar/hadoop/2.3.0/libexec/logs: Permission denied
bash-3.2$ start-dfs.sh 14/03/31 09:04:20 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Starting namenodes on [localhost] localhost: mkdir: /usr/local/Cellar/hadoop/2.3.0/libexec/logs: Permission denied localhost: chown: /usr/local/Cellar/hadoop/2.3.0/libexec/logs: No such file or directory localhost: starting namenode, logging to /usr/local/Cellar/hadoop/2.3.0/libexec/logs/hadoop-hadoop-namenode-mymac.local.out localhost: /usr/local/Cellar/hadoop/2.3.0/libexec/sbin/hadoop-daemon.sh: line 151: /usr/local/Cellar/hadoop/2.3.0/libexec/logs/hadoop-hadoop-namenode-mymac.local.out: No such file or directory localhost: head: /usr/local/Cellar/hadoop/2.3.0/libexec/logs/hadoop-hadoop-namenode-mymac.local.out: No such file or directory localhost: /usr/local/Cellar/hadoop/2.3.0/libexec/sbin/hadoop-daemon.sh: line 166: /usr/local/Cellar/hadoop/2.3.0/libexec/logs/hadoop-hadoop-namenode-mymac.local.out: No such file or directory localhost: /usr/local/Cellar/hadoop/2.3.0/libexec/sbin/hadoop-daemon.sh: line 167: /usr/local/Cellar/hadoop/2.3.0/libexec/logs/hadoop-hadoop-namenode-mymac.local.out: No such file or directory localhost: mkdir: /usr/local/Cellar/hadoop/2.3.0/libexec/logs: Permission denied localhost: chown: /usr/local/Cellar/hadoop/2.3.0/libexec/logs: No such file or directory