<?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: dfs.permissions.superusergroup in ambari 2.7.1 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-permissions-superusergroup-in-ambari-2-7-1/m-p/238165#M85358</link>
    <description>&lt;P&gt;	Hi &lt;A rel="user" href="https://community.cloudera.com/users/92188/djc0604.html" nodeid="92188"&gt;@Diego J&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;	I guess thats a bug in Ambari.&lt;/P&gt;&lt;P&gt;	can you please use this to update the value of &lt;EM&gt;&lt;CODE&gt;dfs.permissions.superusergroup&lt;/CODE&gt;&lt;/EM&gt; .&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/scripts/configs.py -l &amp;lt;AMBARI_HOSTNAME&amp;gt; -t 8080 -u &amp;lt;USER_NAME&amp;gt; -p &amp;lt;PASSWORD&amp;gt; -a &amp;lt;GET/SET/DELETE&amp;gt;  -n &amp;lt;CLUSTER_NAME&amp;gt; -c &amp;lt;CONFIG_TYPE&amp;gt; -k &amp;lt;KEY&amp;gt; -v &amp;lt;VALUE&amp;gt; &lt;/PRE&gt;&lt;P&gt;for ex :&lt;/P&gt;&lt;PRE&gt;[root@asnaik-asnaik1 ~]# /var/lib/ambari-server/resources/scripts/configs.py  --help
Usage: configs.py [options]
Options:
  -h, --help            show this help message and exit
  -t PORT, --port=PORT  Optional port number for Ambari server. Default is
                        '8080'. Provide empty string to not use port.
  -s PROTOCOL, --protocol=PROTOCOL
                        Optional support of SSL. Default protocol is 'http'
  -a ACTION, --action=ACTION
                        Script action: &amp;lt;get&amp;gt;, &amp;lt;set&amp;gt;, &amp;lt;delete&amp;gt;
  -l HOST, --host=HOST  Server external host name
  -n CLUSTER, --cluster=CLUSTER
                        Name given to cluster. Ex: 'c1'
  -c CONFIG_TYPE, --config-type=CONFIG_TYPE
                        One of the various configuration types in Ambari. Ex:
                        core-site, hdfs-site, mapred-queue-acls, etc.
  To specify credentials please use "-e" OR "-u" and "-p'":
    -u USER, --user=USER
                        Optional user ID to use for authentication. Default is
                        'admin'
    -p PASSWORD, --password=PASSWORD
                        Optional password to use for authentication. Default
                        is 'admin'
    -e CREDENTIALS_FILE, --credentials-file=CREDENTIALS_FILE
                        Optional file with user credentials separated by new
                        line.
  To specify property(s) please use "-f" OR "-k" and "-v'":
    -f FILE, --file=FILE
                        File where entire configurations are saved to, or read
                        from. Supported extensions (.xml, .json&amp;gt;)

[root@asnaik-asnaik1 ~]# /var/lib/ambari-server/resources/scripts/configs.py -l asnaik1  -t 8080 -u admin -p admin -a set  -n asnaik -c hdfs-site -k dfs.permissions.superusergroup -v hdfs,operator
2018-12-10 15:19:00,604 INFO ### Performing "set":
2018-12-10 15:19:00,604 INFO ### new property - "dfs.permissions.superusergroup":"hdfs,operator"
2018-12-10 15:19:00,663 INFO ### on (Site:hdfs-site, Tag:version1543379050314)
2018-12-10 15:19:00,675 INFO ### PUTting json into: doSet_version1544455140675467.json
2018-12-10 15:19:00,767 INFO ### NEW Site:hdfs-site, Tag:version1544455140675467 
[root@asnaik-asnaik1 ~]# /var/lib/ambari-server/resources/scripts/configs.py -l asnaik1  -t 8080 -u admin -p admin -a get  -n asnaik -c hdfs-site -k dfs.permissions.superusergroup |grep -i dfs.permissions.superusergroup
    "dfs.permissions.superusergroup": "hdfs,operator",&lt;/PRE&gt;&lt;P&gt;Adding to this,&lt;/P&gt;&lt;P&gt;If you want to enable it in ambari UI,we can add it by following the steps&lt;/P&gt;&lt;P&gt;For Ambari-2.6.x versions :&lt;/P&gt;&lt;PRE&gt;cd /var/lib/ambari-server/resources/common-services/HDFS/2.1.0.2.0/configuration/

vi hdfs-site.xml

remove the property as mentioned in : &lt;A href="https://github.com/apache/ambari/blob/8e0f782efd4694028b598106e68ebe2a1c7c0a2e/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hdfs-site.xml#L338" target="_blank"&gt;https://github.com/apache/ambari/blob/8e0f782efd4694028b598106e68ebe2a1c7c0a2e/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hdfs-site.xml#L338&lt;/A&gt;

ambari-server restart&lt;/PRE&gt;&lt;P&gt;For Ambari-2.7.x versions :&lt;/P&gt;&lt;PRE&gt;cd /var/lib/ambari-server/resources/stacks/HDP/3.0/services/HDFS/configuration/

vi hdfs-site.xml

remove the property as mentioned in : &lt;A href="https://github.com/apache/ambari/blob/8e0f782efd4694028b598106e68ebe2a1c7c0a2e/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hdfs-site.xml#L338" target="_blank"&gt;https://github.com/apache/ambari/blob/8e0f782efd4694028b598106e68ebe2a1c7c0a2e/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hdfs-site.xml#L338&lt;/A&gt;

ambari-server restart&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 Dec 2018 23:21:05 GMT</pubDate>
    <dc:creator>akhilsnaik</dc:creator>
    <dc:date>2018-12-10T23:21:05Z</dc:date>
    <item>
      <title>dfs.permissions.superusergroup in ambari 2.7.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-permissions-superusergroup-in-ambari-2-7-1/m-p/238164#M85357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.0.1/configuring-hdfs-encryption/content/create_an_hdfs_admin_user.html"&gt;The hdfs encryption guide&lt;/A&gt; for HDP 3.0.1 states "&lt;EM&gt;In Ambari, &lt;/EM&gt;&lt;EM&gt;replace the current value of &lt;CODE&gt;dfs.permissions.superusergroup&lt;/CODE&gt; with the group name “operator”&lt;/EM&gt;" however, this option is not available from Ambari, so it looks like the &lt;A href="https://issues.apache.org/jira/browse/AMBARI-22086"&gt;fix applied in 2.6.0&lt;/A&gt; is not working for 2.7.1.&lt;/P&gt;&lt;P&gt;I also checked the workaround suggested in &lt;A href="https://community.hortonworks.com/questions/155952/how-to-modify-dfspermissionssuperusergroup-in-hdp.html"&gt;this community post&lt;/A&gt; but commenting or even removing the tag does not change anything from Ambari's UI perspective.&lt;/P&gt;&lt;P&gt; Versions used:&lt;/P&gt;&lt;P&gt;ambari 2.7.1.0-169&lt;/P&gt;&lt;P&gt;HDP 3.0.1.0-187&lt;/P&gt;&lt;P&gt;Does anyone have other workaround or fix to this?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 02:29:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-permissions-superusergroup-in-ambari-2-7-1/m-p/238164#M85357</guid>
      <dc:creator>djc0604</dc:creator>
      <dc:date>2018-12-05T02:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: dfs.permissions.superusergroup in ambari 2.7.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-permissions-superusergroup-in-ambari-2-7-1/m-p/238165#M85358</link>
      <description>&lt;P&gt;	Hi &lt;A rel="user" href="https://community.cloudera.com/users/92188/djc0604.html" nodeid="92188"&gt;@Diego J&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;	I guess thats a bug in Ambari.&lt;/P&gt;&lt;P&gt;	can you please use this to update the value of &lt;EM&gt;&lt;CODE&gt;dfs.permissions.superusergroup&lt;/CODE&gt;&lt;/EM&gt; .&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/scripts/configs.py -l &amp;lt;AMBARI_HOSTNAME&amp;gt; -t 8080 -u &amp;lt;USER_NAME&amp;gt; -p &amp;lt;PASSWORD&amp;gt; -a &amp;lt;GET/SET/DELETE&amp;gt;  -n &amp;lt;CLUSTER_NAME&amp;gt; -c &amp;lt;CONFIG_TYPE&amp;gt; -k &amp;lt;KEY&amp;gt; -v &amp;lt;VALUE&amp;gt; &lt;/PRE&gt;&lt;P&gt;for ex :&lt;/P&gt;&lt;PRE&gt;[root@asnaik-asnaik1 ~]# /var/lib/ambari-server/resources/scripts/configs.py  --help
Usage: configs.py [options]
Options:
  -h, --help            show this help message and exit
  -t PORT, --port=PORT  Optional port number for Ambari server. Default is
                        '8080'. Provide empty string to not use port.
  -s PROTOCOL, --protocol=PROTOCOL
                        Optional support of SSL. Default protocol is 'http'
  -a ACTION, --action=ACTION
                        Script action: &amp;lt;get&amp;gt;, &amp;lt;set&amp;gt;, &amp;lt;delete&amp;gt;
  -l HOST, --host=HOST  Server external host name
  -n CLUSTER, --cluster=CLUSTER
                        Name given to cluster. Ex: 'c1'
  -c CONFIG_TYPE, --config-type=CONFIG_TYPE
                        One of the various configuration types in Ambari. Ex:
                        core-site, hdfs-site, mapred-queue-acls, etc.
  To specify credentials please use "-e" OR "-u" and "-p'":
    -u USER, --user=USER
                        Optional user ID to use for authentication. Default is
                        'admin'
    -p PASSWORD, --password=PASSWORD
                        Optional password to use for authentication. Default
                        is 'admin'
    -e CREDENTIALS_FILE, --credentials-file=CREDENTIALS_FILE
                        Optional file with user credentials separated by new
                        line.
  To specify property(s) please use "-f" OR "-k" and "-v'":
    -f FILE, --file=FILE
                        File where entire configurations are saved to, or read
                        from. Supported extensions (.xml, .json&amp;gt;)

[root@asnaik-asnaik1 ~]# /var/lib/ambari-server/resources/scripts/configs.py -l asnaik1  -t 8080 -u admin -p admin -a set  -n asnaik -c hdfs-site -k dfs.permissions.superusergroup -v hdfs,operator
2018-12-10 15:19:00,604 INFO ### Performing "set":
2018-12-10 15:19:00,604 INFO ### new property - "dfs.permissions.superusergroup":"hdfs,operator"
2018-12-10 15:19:00,663 INFO ### on (Site:hdfs-site, Tag:version1543379050314)
2018-12-10 15:19:00,675 INFO ### PUTting json into: doSet_version1544455140675467.json
2018-12-10 15:19:00,767 INFO ### NEW Site:hdfs-site, Tag:version1544455140675467 
[root@asnaik-asnaik1 ~]# /var/lib/ambari-server/resources/scripts/configs.py -l asnaik1  -t 8080 -u admin -p admin -a get  -n asnaik -c hdfs-site -k dfs.permissions.superusergroup |grep -i dfs.permissions.superusergroup
    "dfs.permissions.superusergroup": "hdfs,operator",&lt;/PRE&gt;&lt;P&gt;Adding to this,&lt;/P&gt;&lt;P&gt;If you want to enable it in ambari UI,we can add it by following the steps&lt;/P&gt;&lt;P&gt;For Ambari-2.6.x versions :&lt;/P&gt;&lt;PRE&gt;cd /var/lib/ambari-server/resources/common-services/HDFS/2.1.0.2.0/configuration/

vi hdfs-site.xml

remove the property as mentioned in : &lt;A href="https://github.com/apache/ambari/blob/8e0f782efd4694028b598106e68ebe2a1c7c0a2e/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hdfs-site.xml#L338" target="_blank"&gt;https://github.com/apache/ambari/blob/8e0f782efd4694028b598106e68ebe2a1c7c0a2e/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hdfs-site.xml#L338&lt;/A&gt;

ambari-server restart&lt;/PRE&gt;&lt;P&gt;For Ambari-2.7.x versions :&lt;/P&gt;&lt;PRE&gt;cd /var/lib/ambari-server/resources/stacks/HDP/3.0/services/HDFS/configuration/

vi hdfs-site.xml

remove the property as mentioned in : &lt;A href="https://github.com/apache/ambari/blob/8e0f782efd4694028b598106e68ebe2a1c7c0a2e/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hdfs-site.xml#L338" target="_blank"&gt;https://github.com/apache/ambari/blob/8e0f782efd4694028b598106e68ebe2a1c7c0a2e/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/configuration/hdfs-site.xml#L338&lt;/A&gt;

ambari-server restart&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 23:21:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-permissions-superusergroup-in-ambari-2-7-1/m-p/238165#M85358</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-12-10T23:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: dfs.permissions.superusergroup in ambari 2.7.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-permissions-superusergroup-in-ambari-2-7-1/m-p/238166#M85359</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/92188/djc0604.html" nodeid="92188"&gt;@Diego J&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Just to add to this. this feature was caused due to fixing of &lt;A href="https://issues.apache.org/jira/browse/AMBARI-22086" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-22086&lt;/A&gt; where the developer makes the dfs.permissions.superusergroup a group property so that ambari doesn't show it in any tab.&lt;/P&gt;&lt;P&gt;If you want to show this in ambari. we can go to : /var/lib/ambari-server/resources/common-services/HDFS/2.1.0.2.0/configuration/hdfs-site.xml &lt;/P&gt;&lt;P&gt;( i am not sure if this is the path for HDP-3.x versions, please use find command in /var/lib/ambari-server/resources/common-services/ to figure out your path )&lt;/P&gt;&lt;P&gt;and remove : &lt;EM&gt;&amp;lt;property-type&amp;gt;GROUP&amp;lt;/property-type&amp;gt;&lt;/EM&gt; for : &lt;EM&gt;dfs.permissions.superusergroup&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;refer to fix of this issue here : &lt;A href="https://reviews.apache.org/r/62669/diff/1#1" target="_blank"&gt;https://reviews.apache.org/r/62669/diff/1#1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please accept answer if you find this helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 12:14:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-permissions-superusergroup-in-ambari-2-7-1/m-p/238166#M85359</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-12-11T12:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: dfs.permissions.superusergroup in ambari 2.7.1</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-permissions-superusergroup-in-ambari-2-7-1/m-p/238167#M85360</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/questions/229129/dfspermissionssuperusergroup-in-ambari-271.html#"&gt;@Akhil S Naik&lt;/A&gt;, thank you for your answers.  Using the config.py script works good, I'm only going to add that you need to use "-s https" when security has been already configured, like this:&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/scripts/configs.py -l &amp;lt;ambari-server&amp;gt; -t 8443 -s https -u &amp;lt;admin-user&amp;gt; -p &amp;lt;passwd&amp;gt; -a set -n &amp;lt;cluster-name&amp;gt; -c hdfs-site  -k dfs.permissions.superusergroup -v hdfs,&amp;lt;superuser_group&amp;gt;&lt;/PRE&gt;&lt;P&gt;And for the second answer, I'm going to add that in HDP 3.0.1, the right path to remove the property &lt;EM&gt;&amp;lt;property-type&amp;gt;GROUP&amp;lt;/property-type&amp;gt; &lt;/EM&gt;is:&lt;/P&gt;&lt;P&gt;/var/lib/ambari-server/resources/stacks/HDP/3.0/services/HDFS/configuration/hdfs-site.xml&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 01:13:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-permissions-superusergroup-in-ambari-2-7-1/m-p/238167#M85360</guid>
      <dc:creator>djc0604</dc:creator>
      <dc:date>2018-12-12T01:13:38Z</dc:date>
    </item>
  </channel>
</rss>

