hadoop2.2.0 installation on linux ( NameNode not starting )

£可爱£侵袭症+ 提交于 2019-12-11 12:16:06

问题


I am trying to run a single node hadoop cluster on my machine with the following config:

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

I am able to format the namenode without any problems however when I try and start the namenode using :

hadoop-daemon.sh start namenode 

I get the following errors :

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

I did not create a separate user "hduser" for hadoop installation. I am using my exsisting username. May be that is why I am facing the problem. Can someone please help me with this .

Exactly what permissions do I need to alter to get this working ?

UPDATE After fiddling around and getting around the permission problems I have moved on to new stupidity of errors posted here : hadoop Nanenode wont start I will forever keep you guys in mind if you can nudge me in the right direction so that I can start some real work on this.

来源:https://stackoverflow.com/questions/23877293/hadoop2-2-0-installation-on-linux-namenode-not-starting

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!