<?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: HDFS Balancer -  Access denied for user hdfs-prod. Superuser privilege is required in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127539#M39200</link>
    <description>&lt;P&gt;thanks &lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;As stated above I'm running the command as "hdfs" , "hdfs-prod" is my principal name w/o the realm name. &lt;/P&gt;&lt;P&gt;This user is a part od superusergroup and all the mapping are showing ryt. I'm sure its something which misses the eye.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2016 03:30:10 GMT</pubDate>
    <dc:creator>mkataria</dc:creator>
    <dc:date>2016-08-31T03:30:10Z</dc:date>
    <item>
      <title>HDFS Balancer -  Access denied for user hdfs-prod. Superuser privilege is required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127533#M39194</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;While running balancer utility as HDFS user i'm getting below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HDFS Balancer -  Access denied for user hdfs-prod. Superuser privilege is required&lt;/P&gt;&lt;P&gt;Note - I'm running as user hdfs against a kerberized cluster. My principal name is &lt;A href="mailto:hdfs-prod@ABC.NET"&gt;hdfs-prod@ABC.NET&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dfs.permissions.superusergroup = hdfs&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;hdfs groups hdfs&lt;/P&gt;&lt;P&gt;shows&lt;/P&gt;&lt;P&gt;hdfs : hadoop hdfs&lt;/P&gt;&lt;P&gt;I'm sure I'm missing something here.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 01:38:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127533#M39194</guid>
      <dc:creator>mkataria</dc:creator>
      <dc:date>2016-08-31T01:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Balancer -  Access denied for user hdfs-prod. Superuser privilege is required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127534#M39195</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/395/mkataria.html" nodeid="395"&gt;@mkataria&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please check your core-site.xml to see if you have added auth_to_local rule&lt;/P&gt;&lt;P&gt;Generally it should have below rule setup&lt;/P&gt;&lt;PRE&gt;RULE:[1:$1@$0](hdfs-prod@ABC.NET)s/.*/hdfs/&lt;/PRE&gt;&lt;P&gt;Please check and add it if its not there.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 01:42:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127534#M39195</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-08-31T01:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Balancer -  Access denied for user hdfs-prod. Superuser privilege is required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127535#M39196</link>
      <description>&lt;P&gt;thanks for pointer &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; however the rules are set properly.
I'm pretty much able to do everything with the key tab but the balancer command.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 01:48:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127535#M39196</guid>
      <dc:creator>mkataria</dc:creator>
      <dc:date>2016-08-31T01:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Balancer -  Access denied for user hdfs-prod. Superuser privilege is required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127536#M39197</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/395/mkataria.html" nodeid="395"&gt;@mkataria&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In order to do superuser commands (like enter safe mode, balance cluster, etc.), you have to run the command as the user that started the NameNode process. If the NameNode is running as the hdfs user, then you will need to issue these commands as the hdfs user:&lt;/P&gt;&lt;PRE&gt;sudo -u hdfs hdfs balancer -threshold 5&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Aug 2016 02:01:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127536#M39197</guid>
      <dc:creator>emaxwell</dc:creator>
      <dc:date>2016-08-31T02:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Balancer -  Access denied for user hdfs-prod. Superuser privilege is required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127537#M39198</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/98/emaxwell.html" nodeid="98"&gt;@emaxwell&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I'm running those commands as HDFS user, the 'hdfs dfsadmin -safemode' works fine.&lt;/P&gt;&lt;P&gt;I can preety much use the balancer from Ambari but super curious to know what went wrong here.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 02:39:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127537#M39198</guid>
      <dc:creator>mkataria</dc:creator>
      <dc:date>2016-08-31T02:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Balancer -  Access denied for user hdfs-prod. Superuser privilege is required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127538#M39199</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/54072/hdfs-balancer-access-denied-for-user-hdfs-prod-sup.html#"&gt;@mkataria&lt;/A&gt; your error says you are running it as "hdfs-prod". You might have made this user a member of supergroup but that still doesn't quite make him the superuser. There is only one superuser and that's the guy who started the namenode like &lt;A rel="user" href="https://community.cloudera.com/users/98/emaxwell.html" nodeid="98"&gt;@emaxwell&lt;/A&gt; pointed out (likely username "hdfs").&lt;/P&gt;&lt;P&gt;Think about root user in linux. You can create other users and make them member of root group but still there is only one root user. That user in Hadoop is hdfs and no other user. More details &lt;A href="https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html#The_Super-User"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 03:05:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127538#M39199</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-08-31T03:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Balancer -  Access denied for user hdfs-prod. Superuser privilege is required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127539#M39200</link>
      <description>&lt;P&gt;thanks &lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;As stated above I'm running the command as "hdfs" , "hdfs-prod" is my principal name w/o the realm name. &lt;/P&gt;&lt;P&gt;This user is a part od superusergroup and all the mapping are showing ryt. I'm sure its something which misses the eye.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 03:30:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127539#M39200</guid>
      <dc:creator>mkataria</dc:creator>
      <dc:date>2016-08-31T03:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Balancer -  Access denied for user hdfs-prod. Superuser privilege is required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127540#M39201</link>
      <description>&lt;P style="margin-left: 20px;"&gt;&lt;A rel="user" href="https://community.cloudera.com/users/395/mkataria.html" nodeid="395"&gt;@mkataria&lt;/A&gt; so I am assuming here is the sequence of your commands.&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;1. Assuming you are root, you do "su hdfs". So now you are hdfs. &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;2. kinit -k -t hdfs-prod@ABC.NET&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;3. now you run "hdfs balancer -threshold &amp;lt;your threshold&amp;gt;"&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;If my assumptions are right then my question would be if your principal "hdfs-prod@REALM.COM" has authority to impersonate in core-site.xml. something like below?&lt;/P&gt;&lt;PRE&gt; &amp;lt;property&amp;gt;
     &amp;lt;name&amp;gt;hadoop.proxyuser.hdfs-prod.hosts&amp;lt;/name&amp;gt;
     &amp;lt;value&amp;gt;host1,host2&amp;lt;/value&amp;gt;
   &amp;lt;/property&amp;gt;
   &amp;lt;property&amp;gt;
     &amp;lt;name&amp;gt;hadoop.proxyuser.hdfs-prod.groups&amp;lt;/name&amp;gt;
     &amp;lt;value&amp;gt;group1,group2,supergroup,hdfs&amp;lt;/value&amp;gt;
   &amp;lt;/property&amp;gt;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Aug 2016 03:37:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127540#M39201</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-08-31T03:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Balancer -  Access denied for user hdfs-prod. Superuser privilege is required</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127541#M39202</link>
      <description>&lt;P&gt;Found it.&lt;/P&gt;&lt;P&gt;I would have left it like that however since it in Production and sometimes you just need to know.&lt;/P&gt;&lt;P&gt;For replication, we Falcon needs to be aware of local and remote Cluster ID via below property.
&lt;/P&gt;&lt;P&gt;dfs.nameservices &lt;/P&gt;&lt;P&gt;mine has value like "prodID, devID"&lt;/P&gt;&lt;P&gt;What balancer does is it tries to reach both the nameservices and if I'm running the command in prod cluster as hdfs with proper ticket, it will throw a errror "hdfs-prod" (which is my principal w/o REALM) however it is still balancing the prod cluster, so the error although not clear is actually permission denied on remote name service (which makes sense) as the user still is "hdfs" however the principal is different "hdfs-dev" in my case.&lt;/P&gt;&lt;P&gt;I ran the same command in Dev and cluster wwas rebalanced however I got the same error, this time &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Access denied for user hdfs-dev. Superuser privilege is required.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks for support &lt;A rel="user" href="https://community.cloudera.com/users/98/emaxwell.html" nodeid="98"&gt;@emaxwell&lt;/A&gt;, &lt;A rel="user" href="https://community.cloudera.com/users/10969/mqureshi.html" nodeid="10969"&gt;@mqureshi&lt;/A&gt;, &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;I hope above answer will help others. (few of other hdfs commands have no effect/errors)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 04:56:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Balancer-Access-denied-for-user-hdfs-prod-Superuser/m-p/127541#M39202</guid>
      <dc:creator>mkataria</dc:creator>
      <dc:date>2016-08-31T04:56:50Z</dc:date>
    </item>
  </channel>
</rss>

