Referring to this blog Hadoop 2.6 Installing on Ubuntu 14.04 (Single-Node Cluster).
Questions might occur
when running
start-all.sh
, something gets wrong like this:1
2
3
4localhost: chown: changing ownership of ‘/usr/local/hadoop/logs’: Operation not permitted
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-hduser-namenode-daiyu-X550VC.out
localhost: /usr/local/hadoop/sbin/hadoop-daemon.sh: line 159: /usr/local/hadoop/logs/hadoop-hduser-namenode-daiyu-X550VC.out: Permission denied
localhost: head: cannot open ‘/usr/local/hadoop/logs/hadoop-hduser-namenode-daiyu-X550VC.out’ for reading: No such file or directoryIt suggests that you don’t have the permission to operate the directory
/usr/local/hadoop/logs
.
Runsudo chown hduser:hadoop /usr/local/hadoop/logs
, then run the last command again, you’ll see it works!
Related directory
- /usr/local/hadoop
- /usr/local/hadoop_store
- /home/hduser, which is belong to group hadoop
- /app/hadoop/tmp
Great hadoop tutorials
- Hadoop 实战(第二版)
- hadoop 权威指南(中文版)