Even I have right permission my data node not starting up. Gives following error :(Connection failed: [Errno 111] Connection refused to 0.0.0.0:50010)
[root@ip pig]# cd /hadoop/hdfs/data
[root@ip hdfs]# ls -lrt
drwxr-x---. 3 hdfs hadoop 20 Apr 5 10:54 data
drwxr-xr-x. 4 hdfs hadoop 63 Apr 9 14:08 namenode
drwxr-xr-x. 3 hdfs hadoop 38 Apr 9 14:16 namesecondary
Just want to add .. last time when the everything was running i did floowing..
added the mapred user to HDFS group and given him rwx permission on / directory... can this be a reason of failure?
Just to add Not only datanode everything else is not running now.. is there any way to know what may have gone wrong?
Thank you all... I have got it resolved. I did 2 things..
1. for name node : I simply changed the port to some other value
2. For data-node : I found an error message in logs saying that "/" has permission 777 , cannot start data-node. I remember I had changed it manually for some other problem. Reverting it resolved the issue.
Looks like I have disabled both of the things firewall and selinux ...still no luck.
[root@ip-xxxxxxxx ec2-user]# systemctl status firewalld.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
[root@ip-xx-xx-xx-xx ec2-user]# sestatus SELinux status: disabled
is there any logs or something which can help?