2012-07-26 104 views
2
chown: changing ownership of `/usr/local/hadoop/libexec/../logs': Operation not permitted 
starting namenode, logging to /usr/local/hadoop/libexec/../logs/hadoop-hadoop-namenode-ayush-PC.out 
/usr/local/hadoop/bin/hadoop-daemon.sh: line 135:  /usr/local/hadoop/libexec/../logs/hadoop-hadoop-namenode-ayush-PC.out: Permission denied 
head: cannot open `/usr/local/hadoop/libexec/../logs/hadoop-hadoop-namenode-ayush- PC.out' for reading: No such file or directory 
localhost: chown: changing ownership of `/usr/local/hadoop/libexec/../logs': Operation not permitted 
localhost: starting datanode, logging to /usr/local/hadoop/libexec/../logs/hadoop-hadoop-datanode-ayush-PC.out 
localhost: /usr/local/hadoop/bin/hadoop-daemon.sh: line 135:  /usr/local/hadoop/libexec/../logs/hadoop-hadoop-datanode-ayush-PC.out: Permission denied 
localhost: head: cannot open `/usr/local/hadoop/libexec/../logs/hadoop-hadoop-datanode- ayush-PC.out' for reading: No such file or directory 
localhost: chown: changing ownership of `/usr/local/hadoop/libexec/../logs': Operation not permitted 
localhost: starting secondarynamenode, logging to /usr/local/hadoop/libexec/../logs/hadoop-hadoop-secondarynamenode-ayush-PC.out 
localhost: /usr/local/hadoop/bin/hadoop-daemon.sh: line 135: /usr/local/hadoop/libexec/../logs/hadoop-hadoop-secondarynamenode-ayush-PC.out: Permission denied 
localhost: head: cannot open `/usr/local/hadoop/libexec/../logs/hadoop-hadoop-secondarynamenode-ayush-PC.out' for reading: No such file or directory 
chown: changing ownership of `/usr/local/hadoop/libexec/../logs': Operation not permitted 
starting jobtracker, logging to /usr/local/hadoop/libexec/../logs/hadoop-hadoop-jobtracker-ayush-PC.out 
/usr/local/hadoop/bin/hadoop-daemon.sh: line 135: /usr/local/hadoop/libexec/../logs/hadoop-hadoop-jobtracker-ayush-PC.out: Permission denied 
head: cannot open `/usr/local/hadoop/libexec/../logs/hadoop-hadoop-jobtracker-ayush-PC.out' for reading: No such file or directory 
localhost: chown: changing ownership of `/usr/local/hadoop/libexec/../logs': Operation not permitted 
localhost: starting tasktracker, logging to /usr/local/hadoop/libexec/../logs/hadoop-hadoop-tasktracker-ayush-PC.out 
localhost: /usr/local/hadoop/bin/hadoop-daemon.sh: line 135: /usr/local/hadoop/libexec/../logs/hadoop-hadoop-tasktracker-ayush-PC.out: Permission denied 
localhost: head: cannot open `/usr/local/hadoop/libexec/../logs/hadoop-hadoop-tasktracker-ayush-PC.out' for reading: No such file or directory 

我收到此錯誤。 我讀過很多人都會遇到這個錯誤,但我一直無法找到解決方案。誰能幫忙?啓動Hadoop集羣時出錯

+0

hadoop用戶在目錄/ usr/local/hadoop /中有讀取,寫入權限嗎? – 2012-07-26 16:09:28

回答

3

做一個單獨的用戶 - hduser,總是recommened

- do chown -R 755 /usr/local/hadoop 
- when creating tmp paths like /app/hadoop/tmp, apply the same settings as above 

希望這將解決這個問題。

問題涉及到許可,不Hadoop的

0

下面是2點非常有用的建議:

  1. 這是好事,檢查是否HADOOP_HOME和JAVA_HOME在 .bashrc文件中設置。有時,在啓動hadoop集羣時,不設置這些環境變量 也可能導致錯誤。

  2. 通過瀏覽/ usr/local/hadoop/logs目錄中生成的日誌文件 來調試錯誤也很有用。

相關問題