<?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: Upgraded HDP stack from 2.3.2 to 2.4.2. webhdfs curl failed to obtain user group information: java.io.IOException: Usernames not matched: name=hdfs != expected=hdfs- in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Upgraded-HDP-stack-from-2-3-2-to-2-4-2-webhdfs-curl-failed/m-p/125709#M88453</link>
    <description>&lt;P&gt;Hi Sreeram,&lt;/P&gt;&lt;P&gt;I am also facing the same issue. Can you please tell me exactly what you did to solve the issue.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Thu, 01 Sep 2016 16:33:01 GMT</pubDate>
    <dc:creator>vvvvvdev</dc:creator>
    <dc:date>2016-09-01T16:33:01Z</dc:date>
    <item>
      <title>Upgraded HDP stack from 2.3.2 to 2.4.2. webhdfs curl failed to obtain user group information: java.io.IOException: Usernames not matched: name=hdfs != expected=hdfs-</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Upgraded-HDP-stack-from-2-3-2-to-2-4-2-webhdfs-curl-failed/m-p/125706#M88450</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I recently upgraded from HDP 2.3.2 to HDP 2.4.2 on a secure cluster. &lt;/P&gt;&lt;P&gt;When I try to start MR History server, yarn Timeline service and HBase master service, all three are throwing the same error as&lt;/P&gt;&lt;PRE&gt;failed to obtain user group information: java.io.IOException: Usernames not matched: name=hdfs != expected=hdfs-REALM
Below is the stacktrace:

 File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 195, in run_command
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w '%{http_code}' -X GET --negotiate -u : 'http://znlhacdt0002.amer.zurich.corp:50070/webhdfs/v1/app-logs?op=GETFILESTATUS&amp;amp;user.name=hdfs'' returned status_code=403. 
{
  "RemoteException": {
    "exception": "SecurityException", 
    "javaClassName": "java.lang.SecurityException", 
    "message": "Failed to obtain user group information: java.io.IOException: Usernames not matched: name=hdfs != expected=hdfs-SANDBOX"
  }
}

Not sure why the user.name its using hdfs-sandox instead hdfs. When I tried the curl, it works with hdfs-sandbox, but doesnt work with hdfs. Please let me know where I have to change the config to make it work..
Any help is greatly appreciated.
thanks,
Sreeram&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jul 2016 01:44:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Upgraded-HDP-stack-from-2-3-2-to-2-4-2-webhdfs-curl-failed/m-p/125706#M88450</guid>
      <dc:creator>sreeram_chintal</dc:creator>
      <dc:date>2016-07-13T01:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Upgraded HDP stack from 2.3.2 to 2.4.2. webhdfs curl failed to obtain user group information: java.io.IOException: Usernames not matched: name=hdfs != expected=hdfs-</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Upgraded-HDP-stack-from-2-3-2-to-2-4-2-webhdfs-curl-failed/m-p/125707#M88451</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11573/sreeramchintalapudi.html" nodeid="11573"&gt;@Sreeram Chintalapudi&lt;/A&gt; This could happen if there is an incorrect RULE in "hadoop.security.auth_to_local" in /etc/hadoop/conf/core-site.xml. You can review/modify the contents by navigating to Ambari -&amp;gt; HDFS -&amp;gt; Configs -&amp;gt; Advanced -&amp;gt; Advanced core-site.xml -&amp;gt; hadoop.security.auth_to_local. &lt;/P&gt;&lt;P&gt;It should look similar to this;&lt;/P&gt;&lt;PRE&gt;RULE:[1:$1@$0](ambari-qa-EXAMPLE@EXAMPLE.COM)s/.*/ambari-qa/
RULE:[1:$1@$0](hbase-EXAMPLE@EXAMPLE.COM)s/.*/hbase/ 
RULE:[1:$1@$0](hdfs-EXAMPLE@EXAMPLE.COM)s/.*/hdfs/ 
RULE:[1:$1@$0](spark-EXAMPLE@EXAMPLE.COM)s/.*/spark/ 
RULE:[1:$1@$0](.*@EXAMPLE.COM)s/@.*// 
RULE:[1:$1@$0](.*@.*EXAMPLE.COM)s/@.*// 
RULE:[1:$1@$0](.*@EXAMPLE.COM)s/@.*// 
RULE:[1:$1@$0](.*@EXAMPLE.COM)s/@.*///L 
RULE:[2:$1@$0](amshbase@EXAMPLE.COM)s/.*/ams/ 
RULE:[2:$1@$0](amszk@EXAMPLE.COM)s/.*/ams/ 
RULE:[2:$1@$0](atlas@EXAMPLE.COM)s/.*/atlas/ 
RULE:[2:$1@$0](dn@EXAMPLE.COM)s/.*/hdfs/ 
RULE:[2:$1@$0](falcon@EXAMPLE.COM)s/.*/falcon/ 
RULE:[2:$1@$0](hbase@EXAMPLE.COM)s/.*/hbase/ 
RULE:[2:$1@$0](hive@EXAMPLE.COM)s/.*/hive/ 
RULE:[2:$1@$0](jhs@EXAMPLE.COM)s/.*/mapred/ 
RULE:[2:$1@$0](jn@EXAMPLE.COM)s/.*/hdfs/ 
RULE:[2:$1@$0](knox@EXAMPLE.COM)s/.*/knox/ 
RULE:[2:$1@$0](nm@EXAMPLE.COM)s/.*/yarn/ 
RULE:[2:$1@$0](nn@EXAMPLE.COM)s/.*/hdfs/ 
RULE:[2:$1@$0](oozie@EXAMPLE.COM)s/.*/oozie/ 
RULE:[2:$1@$0](rm@EXAMPLE.COM)s/.*/yarn/ 
RULE:[2:$1@$0](yarn@EXAMPLE.COM)s/.*/yarn/ 
DEFAULT&lt;/PRE&gt;&lt;P&gt;If you make any changes to the rules you will need to restart the affected services.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 08:57:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Upgraded-HDP-stack-from-2-3-2-to-2-4-2-webhdfs-curl-failed/m-p/125707#M88451</guid>
      <dc:creator>SBren</dc:creator>
      <dc:date>2016-07-13T08:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Upgraded HDP stack from 2.3.2 to 2.4.2. webhdfs curl failed to obtain user group information: java.io.IOException: Usernames not matched: name=hdfs != expected=hdfs-</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Upgraded-HDP-stack-from-2-3-2-to-2-4-2-webhdfs-curl-failed/m-p/125708#M88452</link>
      <description>&lt;P&gt;Thanks Steve for the article..that did the trick...thanks again for all ur help&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 21:21:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Upgraded-HDP-stack-from-2-3-2-to-2-4-2-webhdfs-curl-failed/m-p/125708#M88452</guid>
      <dc:creator>sreeram_chintal</dc:creator>
      <dc:date>2016-07-13T21:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Upgraded HDP stack from 2.3.2 to 2.4.2. webhdfs curl failed to obtain user group information: java.io.IOException: Usernames not matched: name=hdfs != expected=hdfs-</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Upgraded-HDP-stack-from-2-3-2-to-2-4-2-webhdfs-curl-failed/m-p/125709#M88453</link>
      <description>&lt;P&gt;Hi Sreeram,&lt;/P&gt;&lt;P&gt;I am also facing the same issue. Can you please tell me exactly what you did to solve the issue.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 16:33:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Upgraded-HDP-stack-from-2-3-2-to-2-4-2-webhdfs-curl-failed/m-p/125709#M88453</guid>
      <dc:creator>vvvvvdev</dc:creator>
      <dc:date>2016-09-01T16:33:01Z</dc:date>
    </item>
  </channel>
</rss>

