<?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 Impersonation Error while trying to access Ambari Views in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94189#M57618</link>
    <description>&lt;P&gt;We are running into an impersonation error while trying to access Ambari Views.&lt;/P&gt;&lt;P&gt;500 User root is not allowed to impersonate admin or ldap user&lt;/P&gt;&lt;P&gt;Here’s the background:&lt;/P&gt;&lt;P&gt;HDP 2.3 installed via Ambari 2.1.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Ambari setup to authenticate against LDAP&lt;/LI&gt;&lt;LI&gt;Files view setup according to docs.hortonworks.com&lt;/LI&gt;&lt;LI&gt;LDAP user is granted permission to Files view in Ambari&lt;/LI&gt;&lt;LI&gt;LDAP user logs into Ambari and sees the View listed.&lt;/LI&gt;&lt;LI&gt;LDAP user clicks on the view and receives the error.&lt;/LI&gt;&lt;LI&gt;Ensured that Ambari is running as root.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have successfully achieved this functionality locally on a virtual box cluster using HDP 2.2. In my setup, I do not find it necessary to create OS or HDFS users to use the views.&lt;/P&gt;&lt;P&gt;I did check the ambari-server logs, but there was only an error indicating the server 500 error. Nothing regarding an ldap or permissions error. &lt;/P&gt;&lt;P&gt;Any ideas or guidance on how to solve this is much appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2015 03:22:53 GMT</pubDate>
    <dc:creator>MCarter</dc:creator>
    <dc:date>2015-09-24T03:22:53Z</dc:date>
    <item>
      <title>Impersonation Error while trying to access Ambari Views</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94189#M57618</link>
      <description>&lt;P&gt;We are running into an impersonation error while trying to access Ambari Views.&lt;/P&gt;&lt;P&gt;500 User root is not allowed to impersonate admin or ldap user&lt;/P&gt;&lt;P&gt;Here’s the background:&lt;/P&gt;&lt;P&gt;HDP 2.3 installed via Ambari 2.1.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Ambari setup to authenticate against LDAP&lt;/LI&gt;&lt;LI&gt;Files view setup according to docs.hortonworks.com&lt;/LI&gt;&lt;LI&gt;LDAP user is granted permission to Files view in Ambari&lt;/LI&gt;&lt;LI&gt;LDAP user logs into Ambari and sees the View listed.&lt;/LI&gt;&lt;LI&gt;LDAP user clicks on the view and receives the error.&lt;/LI&gt;&lt;LI&gt;Ensured that Ambari is running as root.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have successfully achieved this functionality locally on a virtual box cluster using HDP 2.2. In my setup, I do not find it necessary to create OS or HDFS users to use the views.&lt;/P&gt;&lt;P&gt;I did check the ambari-server logs, but there was only an error indicating the server 500 error. Nothing regarding an ldap or permissions error. &lt;/P&gt;&lt;P&gt;Any ideas or guidance on how to solve this is much appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 03:22:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94189#M57618</guid>
      <dc:creator>MCarter</dc:creator>
      <dc:date>2015-09-24T03:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Impersonation Error while trying to access Ambari Views</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94190#M57619</link>
      <description>&lt;P&gt;You need to create the proxy settings for 'root', since Ambari runs as root. This allows it to impersonate the user in hdfs. &lt;/P&gt;&lt;P&gt;hadoop.proxyuser.root.groups=*&lt;/P&gt;&lt;P&gt;hadoop.proxyuser.root.hosts=*&lt;/P&gt;&lt;P&gt;You'll also need to create the 'admin' user home directory in hdfs for Admin, if you haven't already done that. Since you're signed into Ambari as Admin, your jobs will be submitted/passed through as that user.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 03:23:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94190#M57619</guid>
      <dc:creator>gvetticaden1</dc:creator>
      <dc:date>2015-09-24T03:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Impersonation Error while trying to access Ambari Views</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94191#M57620</link>
      <description>&lt;P&gt;Please note that one should never use * for these settings.&lt;/P&gt;&lt;P&gt;hosts= should be set to that of the Ambari Server
groups= should only be the groups which Ambari (running as root) is allowed to impersonate.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 23:32:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94191#M57620</guid>
      <dc:creator>sroberts</dc:creator>
      <dc:date>2015-10-02T23:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Impersonation Error while trying to access Ambari Views</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94192#M57621</link>
      <description>&lt;P&gt;Make sure you're following the configuration steps outlined in this doc to set the appropriate stack settings as &lt;A rel="user" href="https://community.cloudera.com/users/11/gvetticaden.html" nodeid="11"&gt;@gvetticaden@hortonworks.com&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/175/dstreever.html" nodeid="175"&gt;@dstreever@hortonworks.com&lt;/A&gt; recommended, and tune Ambari Server appropriately.&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_views_guide/content/ch_using_ambari_views.html"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_ambari_views_guide/content/ch_using_ambari_views.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 23:43:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94192#M57621</guid>
      <dc:creator>pcodding</dc:creator>
      <dc:date>2015-10-02T23:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Impersonation Error while trying to access Ambari Views</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94193#M57622</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Impersonation&lt;/STRONG&gt; is a key concept throughout the Hadoop ecosystem.&lt;/P&gt;&lt;P&gt;Impersonation grants a user (also known as a SuperUser or ProxyUser) right to access Hadoop  user is granted on behalf of other users. &lt;EM&gt;It's similar to the idea of 'sudo' within Linux.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;To enable it you set the 'proxyuser' setting based on the user the service is running as, the groups or users you want it to be able to act on behalf of, and the hosts it should be able to do that from.&lt;/P&gt;&lt;P&gt;For example, for Ambari Views with:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Ambari running as the user 'root' (which is the default)&lt;/LI&gt;&lt;LI&gt;Wanting to allow Ambari to act on behalf of users in the groups 'users', 'hive-users'&lt;EM&gt; (just an example as you may have similar groups in LDAP)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Ambari hostname of 'ambarihost.domain.local'&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You would set this in 'HDFS -&amp;gt; core-site' from Ambari:&lt;/P&gt;&lt;PRE&gt;hadoop.proxyuser.root.groups=users,hive-users
hadoop.proxyuser.root.hosts=ambarihost.domain.local&lt;/PRE&gt;&lt;P&gt;More detail is available in the documentation:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://hadoop.apache.org/docs/r2.7.0/hadoop-project-dist/hadoop-common/Superusers.html"&gt;Apache Hadoop: Proxy user - Superusers Acting On Behalf Of Other Users&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://oozie.apache.org/docs/4.2.0/AG_Install.html#User_ProxyUser_Configuration"&gt;Apache Oozie: User ProxyUser Configuration&lt;/A&gt; &lt;/LI&gt;&lt;LI&gt;Apache YARN: yarn-site
&lt;UL&gt;
&lt;LI&gt;yarn.resourcemanager.webapp.proxyuser.USERNAME.groups&lt;/LI&gt;&lt;LI&gt;yarn.resourcemanager.webapp.proxyuser.USERNAME.hosts&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 02 Oct 2015 23:47:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94193#M57622</guid>
      <dc:creator>sroberts</dc:creator>
      <dc:date>2015-10-02T23:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Impersonation Error while trying to access Ambari Views</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94194#M57623</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12/mcarter.html" nodeid="12"&gt;@Matt Carter&lt;/A&gt; just a bump to confirm if one of these answers worked, or reply to them for clarification.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2015 16:24:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94194#M57623</guid>
      <dc:creator>sroberts</dc:creator>
      <dc:date>2015-10-09T16:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Impersonation Error while trying to access Ambari Views</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94195#M57624</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/150/sroberts.html" nodeid="150"&gt;@Sean Roberts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Want to understand the impersonation configuration better. The problem is that it is not clear what is impersonating what. For example, when trying to access the Hive view as an admin user failed with "User: hive is not allowed to impersonate user admin". So, by extension, it would seem logical that we introduce another proxy variables hadoop.proxyuser.hive.groups &amp;amp; hosts, but what is the group that the hive user needs? Is that information available in the stack trace?&lt;/P&gt;&lt;P&gt;Is there a diagram of the view services that maps out the impersonation and user attributes in play?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jan 2016 05:11:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impersonation-Error-while-trying-to-access-Ambari-Views/m-p/94195#M57624</guid>
      <dc:creator>theo</dc:creator>
      <dc:date>2016-01-10T05:11:41Z</dc:date>
    </item>
  </channel>
</rss>

