install hadoop 2.6 on ubuntu 15.10

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
    4
    localhost: 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 directory

    It suggests that you don’t have the permission to operate the directory /usr/local/hadoop/logs.
    Run sudo chown hduser:hadoop /usr/local/hadoop/logs, then run the last command again, you’ll see it works!

  • /usr/local/hadoop
  • /usr/local/hadoop_store
  • /home/hduser, which is belong to group hadoop
  • /app/hadoop/tmp

Great hadoop tutorials

  • Hadoop 实战(第二版)
  • hadoop 权威指南(中文版)