<?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 Re: Creation of additional HDFS superuser in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Creation-of-additional-HDFS-superuser/m-p/290800#M215111</link>
    <description>&lt;P&gt;I can see that after the group has been added, I need to do a dfsadmin&amp;nbsp;&lt;SPAN&gt;-refreshUserToGroupsMappings&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 12:13:30 GMT</pubDate>
    <dc:creator>ThomasHopewell</dc:creator>
    <dc:date>2020-03-02T12:13:30Z</dc:date>
    <item>
      <title>Creation of additional HDFS superuser</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creation-of-additional-HDFS-superuser/m-p/290799#M215110</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create an additional HDFS useruser. So far, I have:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Created a new user&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Checked the value of Superuser Group (dfs.permissions.supergroup, dfs.permissions.superusergroup).&lt;/LI&gt;
&lt;LI&gt;Since we are using unix shell based groups mapping, I created a unix group on all hosts with a name matching the value of Superuser Group&lt;/LI&gt;
&lt;LI&gt;Added the desired superuser to the new group on all hosts.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I then tested and the new user cannot access all folders on HDFS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A little investigation shows that neither&amp;nbsp;dfs.permissions.superusergroup nor&amp;nbsp;dfs.permissions.supergroup are present in either hdfs-site.xml or core-site.xml.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I make CM modify the configuration file so the superuser group is deployed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any other steps I am missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are using CDH 5.16.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 15:18:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creation-of-additional-HDFS-superuser/m-p/290799#M215110</guid>
      <dc:creator>ThomasHopewell</dc:creator>
      <dc:date>2020-03-02T15:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of additional HDFS superuser</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creation-of-additional-HDFS-superuser/m-p/290800#M215111</link>
      <description>&lt;P&gt;I can see that after the group has been added, I need to do a dfsadmin&amp;nbsp;&lt;SPAN&gt;-refreshUserToGroupsMappings&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 12:13:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creation-of-additional-HDFS-superuser/m-p/290800#M215111</guid>
      <dc:creator>ThomasHopewell</dc:creator>
      <dc:date>2020-03-02T12:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of additional HDFS superuser</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creation-of-additional-HDFS-superuser/m-p/290804#M215114</link>
      <description>&lt;P&gt;I assume you were checking in hdfs-site.xml of the /etc/hadoop/conf to validate the configuration change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Through CM when you apply this change&lt;/P&gt;&lt;P&gt;CM &amp;gt; HDFS &amp;gt; Configuration &amp;gt;&amp;nbsp;Superuser Group &amp;gt; Enter your desired supergroup name &amp;gt; Save and Restart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The change gets reflected in the server side [Namenodes, Datanodes] and it is not expected to be present in /etc/hadoop/conf directory. Because these properties are server side properties and hence not propagated to *-site.xml used by clients.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just incase if you want to validate on the server side, you can search for this property in process directories where these services are running&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;grep "dfs.permissions.superusergroup" /var/run/cloudera-scm-agent/process/ -Rani&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally you can also make sure the group membership of the users by running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hdfs groups &amp;lt;supergroup-user&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 14:30:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creation-of-additional-HDFS-superuser/m-p/290804#M215114</guid>
      <dc:creator>venkatsambath</dc:creator>
      <dc:date>2020-03-02T14:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creation of additional HDFS superuser</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Creation-of-additional-HDFS-superuser/m-p/290984#M215230</link>
      <description>&lt;P&gt;That command worked a treat, I wasn't aware that the configuration xmls varied based on the purpose of the host they are deployed to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got the superuser running now, thanks for the help&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 08:50:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Creation-of-additional-HDFS-superuser/m-p/290984#M215230</guid>
      <dc:creator>ThomasHopewell</dc:creator>
      <dc:date>2020-03-04T08:50:44Z</dc:date>
    </item>
  </channel>
</rss>

