<?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 How can I fix incorrect file permissions for set-hdfs-plugin-env.sh when restarting from ambari in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99357#M62426</link>
    <description>&lt;P&gt;Ambari sets up set-hdfs-plugin-env.sh with root:hadoop 700 permissions when it restarts HDFS, this causes ranger integration to break as the hdfs user cannot execute this script when the namenode starts.&lt;/P&gt;&lt;P&gt;I can fix the problem if I restart the namenode manually, but that means to deploy config changes I need to restart from Ambari, then correct permissions and restart manually.&lt;/P&gt;&lt;P&gt;How &lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2015 00:32:12 GMT</pubDate>
    <dc:creator>ewalk</dc:creator>
    <dc:date>2015-12-16T00:32:12Z</dc:date>
    <item>
      <title>How can I fix incorrect file permissions for set-hdfs-plugin-env.sh when restarting from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99357#M62426</link>
      <description>&lt;P&gt;Ambari sets up set-hdfs-plugin-env.sh with root:hadoop 700 permissions when it restarts HDFS, this causes ranger integration to break as the hdfs user cannot execute this script when the namenode starts.&lt;/P&gt;&lt;P&gt;I can fix the problem if I restart the namenode manually, but that means to deploy config changes I need to restart from Ambari, then correct permissions and restart manually.&lt;/P&gt;&lt;P&gt;How &lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 00:32:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99357#M62426</guid>
      <dc:creator>ewalk</dc:creator>
      <dc:date>2015-12-16T00:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fix incorrect file permissions for set-hdfs-plugin-env.sh when restarting from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99358#M62427</link>
      <description>&lt;P&gt;what hdp version is this?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 01:44:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99358#M62427</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2015-12-16T01:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fix incorrect file permissions for set-hdfs-plugin-env.sh when restarting from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99359#M62428</link>
      <description>&lt;P&gt;This is HDP 2.2.6, Ambari 2.1.2.1&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 03:46:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99359#M62428</guid>
      <dc:creator>ewalk</dc:creator>
      <dc:date>2015-12-16T03:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fix incorrect file permissions for set-hdfs-plugin-env.sh when restarting from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99360#M62429</link>
      <description>&lt;P&gt;what is umask value for the root user ? This may have set the file to have no execute permission for the group. &lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 04:29:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99360#M62429</guid>
      <dc:creator>sneethiraj</dc:creator>
      <dc:date>2015-12-18T04:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fix incorrect file permissions for set-hdfs-plugin-env.sh when restarting from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99361#M62430</link>
      <description>&lt;P&gt;You can use the following work-around:&lt;/P&gt;&lt;P&gt;On the namenode box, &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;login as root &lt;/LI&gt;&lt;LI&gt;execute:   &lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;# cp /etc/hadoop/conf/set-hdfs-plugin-env.sh /etc/hadoop/conf/set-hdfs-plugin-env-permfix.sh
# chown hdfs:hadoop /etc/hadoop/conf/set-hdfs-plugin-env-permfix.sh
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Then edit, 
/usr/hdp/current/hadoop-client/libexec/hadoop-config.sh  file to modify the references to  
set-hdfs-plugin-env.sh to "
set-hdfs-plugin-env-permfix.sh"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This workaround should help you to start the namenode from Ambari without having to change permission manually every time.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 04:45:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99361#M62430</guid>
      <dc:creator>sneethiraj</dc:creator>
      <dc:date>2015-12-18T04:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fix incorrect file permissions for set-hdfs-plugin-env.sh when restarting from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99362#M62431</link>
      <description>&lt;P&gt;Yeah, I've thought about that, I don't like it... it's one more thing that's hacked together manually and has to be tracked and maintained. I'd much prefer a fix to Ambari's config...&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 05:09:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99362#M62431</guid>
      <dc:creator>ewalk</dc:creator>
      <dc:date>2015-12-18T05:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fix incorrect file permissions for set-hdfs-plugin-env.sh when restarting from ambari</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99363#M62432</link>
      <description>&lt;P&gt;The root user's umask is 0027&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 05:13:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-fix-incorrect-file-permissions-for-set-hdfs-plugin/m-p/99363#M62432</guid>
      <dc:creator>ewalk</dc:creator>
      <dc:date>2015-12-18T05:13:11Z</dc:date>
    </item>
  </channel>
</rss>

