AnsweredAssumed Answered

why  /opt/mapr/hadoop/hadoop-2.5.1/etc/hadoop/yarn-site.xml permission is 640 coming ?

Question asked by prameswar on Sep 15, 2015
Latest reply on Sep 15, 2015 by prameswar
i am installing mapr manually using these step :

 - installed java (oracle-java7-jdk_7u79_amd64.deb)
 - then installed packages (mapr-cldb mapr-zookeeper mapr-nfs mapr-webserver mapr-metrics mapr-jobtracker mapr-tasktracker )
 - doing  cluster configuration  and adding disk 

my mapr all service are working fine but , i am not able to access dashboard using https://ip:8443 . it is giving error

    ava.lang.RuntimeException: java.io.FileNotFoundException: /opt/mapr/hadoop/hadoop-2.5.1/etc/hadoop/yarn-site.xml (Permission denied)

so ,  all file under /opt/mapr/hadoop/hadoop-2.5.1/etc/hadoop/ have permission 644  except yarn-site.xml  

    -rw-r--r-- 1 root root  1449 Jan 20  2015 httpfs-env.sh
    -rw-r--r-- 1 root root  1657 Jan 20  2015 httpfs-log4j.properties
    -rw-r--r-- 1 root root    21 Jan 20  2015 httpfs-signature.secret
    -rw-r--r-- 1 root root   620 Jan 20  2015 httpfs-site.xml
    -rw-r--r-- 1 root root 11283 Jan 20  2015 log4j.properties
    -rw-r--r-- 1 root root   938 Jan 20  2015 mapred-env.cmd
    -rw-r--r-- 1 root root  1535 Jan 20  2015 mapred-env.sh
    -rw-r--r-- 1 root root  4113 Jan 20  2015 mapred-queues.xml.template
    -rw-r--r-- 1 root root  1086 Sep 15 16:00 mapred-site.xml
    -rw-r--r-- 1 root root  1090 Jan 20  2015 mapred-site.xml.template
    -rw-r--r-- 1 root root    10 Jan 20  2015 slaves
    -rw-r--r-- 1 root root  1593 Sep 15 15:59 ssl-client.xml
    -rw-r--r-- 1 root root  2316 Jan 20  2015 ssl-client.xml.example
    -rw-r--r-- 1 root root  1548 Sep 15 15:59 ssl-server.xml
    -rw-r--r-- 1 root root  2268 Jan 20  2015 ssl-server.xml.example
    -rw-r--r-- 1 root root  2237 Jan 20  2015 yarn-env.cmd
    -rw-r--r-- 1 root root  4902 Jan 20  2015 yarn-env.sh
    -rw-r----- 1 root root  1482 Sep 15 15:59 yarn-site.xml
    -rw-r--r-- 1 root root  4581 Jan 20  2015 yarn-site.xml.template

once i change  permission of yarn-site.xml   640 to 644  . i am able to  login in dashboard and not getting that error .

my question is that why  yarn-site.xml permission coming 640 . is this a bug or i  am missing something in my setup . i am doing all setup with chef-solo on ubuntu 14.04.2

Outcomes