<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Required permissions for my custom JDK ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180093#M58504</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have successfully added custom JDK on my hortonworks. My JAVA_HOME refers to : /root/java/jdk1.8.0_121/bin/java&lt;/P&gt;&lt;P&gt;This is the net stat of the java file : &lt;/P&gt;&lt;P&gt;-rwxrwxrwx 1 root root   7734 2017-03-24 06:22 java&lt;/P&gt;&lt;P&gt;--- However all my services on ambari, are now refering to this JAVA_HOME path, and returning same error : Permission denied. One of the services ran from hdfs user. &lt;/P&gt;&lt;P&gt;So I want to ask, what is the required set of permissions, I need to pass the requisite permissions to this file to complete it finally. Please help asap. &lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2017 00:00:35 GMT</pubDate>
    <dc:creator>adityakumar_roy</dc:creator>
    <dc:date>2017-03-30T00:00:35Z</dc:date>
    <item>
      <title>Required permissions for my custom JDK ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180093#M58504</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have successfully added custom JDK on my hortonworks. My JAVA_HOME refers to : /root/java/jdk1.8.0_121/bin/java&lt;/P&gt;&lt;P&gt;This is the net stat of the java file : &lt;/P&gt;&lt;P&gt;-rwxrwxrwx 1 root root   7734 2017-03-24 06:22 java&lt;/P&gt;&lt;P&gt;--- However all my services on ambari, are now refering to this JAVA_HOME path, and returning same error : Permission denied. One of the services ran from hdfs user. &lt;/P&gt;&lt;P&gt;So I want to ask, what is the required set of permissions, I need to pass the requisite permissions to this file to complete it finally. Please help asap. &lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 00:00:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180093#M58504</guid>
      <dc:creator>adityakumar_roy</dc:creator>
      <dc:date>2017-03-30T00:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Required permissions for my custom JDK ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180094#M58505</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16932/adityakumarroy.html" nodeid="16932"&gt;@Aditya Kumar Roy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;JAVA_HOME env variable should be set till the jdk home path i.e it should be /root/java/jdk1.8.0_121, for your case.&lt;/P&gt;&lt;P&gt;Can you try setting the same, and let us know if that resolves the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 01:38:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180094#M58505</guid>
      <dc:creator>namaheshwari</dc:creator>
      <dc:date>2017-03-30T01:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Required permissions for my custom JDK ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180095#M58506</link>
      <description>&lt;P&gt;Hi, that was a mistake on my side. Obviously, my JAVA_HOME path points till /root/java/jdk1.8.0_121. However the pertinent issue is which user ambari is trying to run with. Please revert back on that. &lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 13:15:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180095#M58506</guid>
      <dc:creator>adityakumar_roy</dc:creator>
      <dc:date>2017-03-30T13:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Required permissions for my custom JDK ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180096#M58507</link>
      <description>&lt;P&gt;Have you updated the JAVA_HOME path in hadoop-env.sh file. &lt;/P&gt;&lt;P&gt;Also, which component were you trying to restart and what was the order of restart if there were more than one components.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 13:31:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180096#M58507</guid>
      <dc:creator>namaheshwari</dc:creator>
      <dc:date>2017-03-30T13:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Required permissions for my custom JDK ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180097#M58508</link>
      <description>&lt;P&gt;Please find the logs when starting the Namenode from Ambari. As can be observed, it's trying to log in from hdfs user. I have already allotted it the necessary permissions : &lt;/P&gt;&lt;P&gt;-rwxrwxrwx 1 hdfs hadoop   7734 2017-03-24 06:22 java &lt;/P&gt;&lt;P&gt;However it still gets struck. &lt;/P&gt;&lt;P&gt;resource_management.core.exceptions.Fail: Execution of 'ambari-sudo.sh su hdfs -l -s /bin/bash -c 'ulimit -c unlimited ;  /usr/hdp/current/hadoop-client/sbin/hadoop-daemon.sh --config /usr/hdp/current/hadoop-client/conf start namenode'' returned 1. starting namenode, logging to /var/log/hadoop/hdfs/hadoop-hdfs-namenode-sandbox.hortonworks.com.out&lt;/P&gt;&lt;PRE&gt;/usr/hdp/2.4.0.0-169//hadoop-hdfs/bin/hdfs.distro: line 308: /root/java/jdk1.8.0_121/bin/java: Permission denied
/usr/hdp/2.4.0.0-169//hadoop-hdfs/bin/hdfs.distro: line 308: exec: /root/java/jdk1.8.0_121/bin/java: cannot execute: Permission denied&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Mar 2017 13:51:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180097#M58508</guid>
      <dc:creator>adityakumar_roy</dc:creator>
      <dc:date>2017-03-30T13:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Required permissions for my custom JDK ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180098#M58509</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16932/adityakumarroy.html" nodeid="16932"&gt;@Aditya Kumar Roy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Looks like you have not given the permission recursively.   Have you used   "-R" option with "chmod" ?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;# chmod 755 -R /root/java/&lt;/PRE&gt;&lt;P&gt;.
 &lt;/P&gt;&lt;P&gt;Just for quick verification you can list the file to see the current permission:&lt;/P&gt;&lt;PRE&gt;# ls -l /root/java/jdk1.8.0_121/bin/java&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 14:11:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180098#M58509</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-30T14:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Required permissions for my custom JDK ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180099#M58510</link>
      <description>&lt;P&gt;Okay, so I am sharing what worked out for me : &lt;/P&gt;&lt;P&gt;Starting with &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt;, I did give the 777 recursive permissions several times in the past, without in the past. However what has finally worked for me is  : &lt;/P&gt;&lt;P&gt;I kept my custom JDK in /usr/lib, I then made a simulink of the full path of custom jdk kept in lib to /usr/lib/jvm. &lt;/P&gt;&lt;P&gt;And then, it worked. I guess not keeping the jdk in the lib was a major fracture point. Thanks a lot for the support man. &lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2017 20:13:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Required-permissions-for-my-custom-JDK/m-p/180099#M58510</guid>
      <dc:creator>adityakumar_roy</dc:creator>
      <dc:date>2017-03-30T20:13:09Z</dc:date>
    </item>
  </channel>
</rss>

