<?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 with kerberos authorization access test in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-with-kerberos-authorization-access-test/m-p/232330#M70165</link>
    <description>&lt;P&gt;Dear Jay,&lt;/P&gt;&lt;P&gt;Oh!! Thank you very much.&lt;/P&gt;&lt;P&gt;I think I should enter the limited user, so I just entered "auth=KERBEROS;proxyuser=ambari1"  or "auth=KERBEROS;proxyuser=ambari1@example.com" into the field.&lt;/P&gt;&lt;P&gt;It shows the error message:&lt;/P&gt;&lt;P&gt;Invalid value: "ambari1@example.com" does not belong to the domain ^[A-Za-z_][A-Za-z0-9._-]*[$]?$&lt;/P&gt;&lt;P&gt;Then I wahched your answer again, and check config file "/etc/ambari-server/conf/krb5JAASLogin.conf" .&lt;/P&gt;&lt;P&gt;After I changed the right principal name "auth=KERBEROS;proxyuser=ambari-server-c1" . It's work now !!!!&lt;/P&gt;&lt;P&gt;Thank you very much !!!  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Oct 2017 18:26:39 GMT</pubDate>
    <dc:creator>atuan5237</dc:creator>
    <dc:date>2017-10-25T18:26:39Z</dc:date>
    <item>
      <title>HDFS with kerberos authorization access test</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-with-kerberos-authorization-access-test/m-p/232327#M70162</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If I want to test the LDAP users with kerberos authorization to access the HDFS, how could I do this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Version:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;My Ambar server Version is 2.5.0.3、HDP 2.6.0.3-8&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Descriptions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I already set up the Ambari server and enable Kerberos and LDAP. Now I want to test authorization on the HDFS view. I create Instance from "Manage Ambari" =&amp;gt; "Views" =&amp;gt; "FILES" =&amp;gt; Create Instance and set some permissions . I set up the setting "WebHDFS authorization" = auth=KERBEROS;* and set an LDAP user ID.&lt;/P&gt;&lt;P&gt;But when I change the User ID to log in Ambari server, it can't be used&lt;/P&gt;&lt;P&gt;Service checks completed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Failed to transition to &lt;STRONG&gt;undefined &lt;/STRONG&gt;
&lt;/P&gt;&lt;P&gt;Usernames not matched: name=root != expected=ambari-server-c1&lt;/P&gt;&lt;P&gt;PS. Before testing, I used kinit created the user's keytab and put it on /etc/security/keytabs/ file, and Verify the keytab it didn't show any error message. &lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 18:15:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-with-kerberos-authorization-access-test/m-p/232327#M70162</guid>
      <dc:creator>atuan5237</dc:creator>
      <dc:date>2017-10-24T18:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS with kerberos authorization access test</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-with-kerberos-authorization-access-test/m-p/232328#M70163</link>
      <description>&lt;P&gt;You should use  AmbariServer user principal to setup the "proxyuser". &lt;/P&gt;&lt;P&gt;If
 your cluster is configured for Kerberos, double-check WebHDFS 
Authorization setting and confirm the “proxyuser=” part of the string is
 set to the Ambari Server principal name.&lt;/P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;PRE&gt;auth=KERBEROS;proxyuser=ambari-server-c1&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-views/content/Troubleshooting.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-views/content/Troubleshooting.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You can find the ambari server  principal inside the file like:&lt;/P&gt;&lt;PRE&gt;# cat /etc/ambari-server/conf/krb5JAASLogin.conf
com.sun.security.jgss.krb5.initiate {
    com.sun.security.auth.module.Krb5LoginModule required
    renewTGT=false
    doNotPrompt=true
    useKeyTab=true
    keyTab="/etc/security/keytabs/ambari.server.keytab"
    principal="ambari-server-c1@EXAMPLE.COM"
    storeKey=true
    useTicketCache=false;
};

&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 19:03:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-with-kerberos-authorization-access-test/m-p/232328#M70163</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-24T19:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS with kerberos authorization access test</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-with-kerberos-authorization-access-test/m-p/232329#M70164</link>
      <description>&lt;P&gt;You will also need to setup the HDFS proxyuser property as described in: &lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-views/content/configuring_your_cluster_for_files_view.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.2.0/bk_ambari-views/content/configuring_your_cluster_for_files_view.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example: Assuming your ambari server principal name is "&lt;/STRONG&gt;ambari-server-c1&lt;STRONG&gt;"&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;hadoop.proxyuser.ambari-server-c1.groups=*
hadoop.proxyuser.ambari-server-c1.hosts=*&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 19:09:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-with-kerberos-authorization-access-test/m-p/232329#M70164</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-10-24T19:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS with kerberos authorization access test</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-with-kerberos-authorization-access-test/m-p/232330#M70165</link>
      <description>&lt;P&gt;Dear Jay,&lt;/P&gt;&lt;P&gt;Oh!! Thank you very much.&lt;/P&gt;&lt;P&gt;I think I should enter the limited user, so I just entered "auth=KERBEROS;proxyuser=ambari1"  or "auth=KERBEROS;proxyuser=ambari1@example.com" into the field.&lt;/P&gt;&lt;P&gt;It shows the error message:&lt;/P&gt;&lt;P&gt;Invalid value: "ambari1@example.com" does not belong to the domain ^[A-Za-z_][A-Za-z0-9._-]*[$]?$&lt;/P&gt;&lt;P&gt;Then I wahched your answer again, and check config file "/etc/ambari-server/conf/krb5JAASLogin.conf" .&lt;/P&gt;&lt;P&gt;After I changed the right principal name "auth=KERBEROS;proxyuser=ambari-server-c1" . It's work now !!!!&lt;/P&gt;&lt;P&gt;Thank you very much !!!  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 18:26:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-with-kerberos-authorization-access-test/m-p/232330#M70165</guid>
      <dc:creator>atuan5237</dc:creator>
      <dc:date>2017-10-25T18:26:39Z</dc:date>
    </item>
  </channel>
</rss>

