<?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 Adding a user for kerberized cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-user-for-kerberized-cluster/m-p/212374#M66119</link>
    <description>&lt;P&gt;Hi, i have created a sandbox based on HDP 2.6 and i kerberized it. all the tests and services are successfully running. i have my root user with admin privileges for kerberos. i was getting this error - &lt;/P&gt;&lt;PRE&gt;WARN ipc.Client: Exception encountered while connecting to the server : javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
ls: Failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]; Host Details : local host is: "localhost.localdomain/127.0.0.1"; destination host is: "localhost.localdomain":8020; &lt;/PRE&gt;&lt;P&gt;when i was trying the hadoop command (hadoop fs -ls /) &lt;/P&gt;&lt;P&gt;but when i ran the command - kinit root/admin@HADOOP.COM i was able to execute the command successfully. Now i wanted to create a new user named as 'hduser' for the i followed these commands - &lt;/P&gt;&lt;P&gt;kadmin.local -q "addprinc hduser"&lt;/P&gt;&lt;P&gt;kinit root/admin@HADOOP.COM &lt;/P&gt;&lt;P&gt;su hduser &lt;/P&gt;&lt;P&gt;now when i tried the 'hadoop fs -ls /' command, i got the the error again. am i missing any step? is it not the right way to add user in a kerberized cluster? &lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 12:03:13 GMT</pubDate>
    <dc:creator>ryanoberoi9999</dc:creator>
    <dc:date>2022-09-16T12:03:13Z</dc:date>
    <item>
      <title>Adding a user for kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-user-for-kerberized-cluster/m-p/212374#M66119</link>
      <description>&lt;P&gt;Hi, i have created a sandbox based on HDP 2.6 and i kerberized it. all the tests and services are successfully running. i have my root user with admin privileges for kerberos. i was getting this error - &lt;/P&gt;&lt;PRE&gt;WARN ipc.Client: Exception encountered while connecting to the server : javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]
ls: Failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]; Host Details : local host is: "localhost.localdomain/127.0.0.1"; destination host is: "localhost.localdomain":8020; &lt;/PRE&gt;&lt;P&gt;when i was trying the hadoop command (hadoop fs -ls /) &lt;/P&gt;&lt;P&gt;but when i ran the command - kinit root/admin@HADOOP.COM i was able to execute the command successfully. Now i wanted to create a new user named as 'hduser' for the i followed these commands - &lt;/P&gt;&lt;P&gt;kadmin.local -q "addprinc hduser"&lt;/P&gt;&lt;P&gt;kinit root/admin@HADOOP.COM &lt;/P&gt;&lt;P&gt;su hduser &lt;/P&gt;&lt;P&gt;now when i tried the 'hadoop fs -ls /' command, i got the the error again. am i missing any step? is it not the right way to add user in a kerberized cluster? &lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:03:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-user-for-kerberized-cluster/m-p/212374#M66119</guid>
      <dc:creator>ryanoberoi9999</dc:creator>
      <dc:date>2022-09-16T12:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a user for kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-user-for-kerberized-cluster/m-p/212375#M66120</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/16008/ryanoberoi9999.html" nodeid="16008"&gt;@Rishabh Oberoi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The Kerberos principal and the OS user don't have much in common. Each OS user can authenticate as multiple Kerberos principals. The Kerberos principal is stored in a file called the "ticket cache". You can see which principal you are at the moment using the "klist" command. Just type "klist". In this example I am authenticated as "jimmy.page" in the Kerberos REALM "FIELD.HORTONWORKS.COM".&lt;/P&gt;&lt;PRE&gt;$ klist
Ticket cache: FILE:/tmp/krb5cc_1960402946
Default principal: jimmy.page@FIELD.HORTONWORKS.COM


Valid starting       Expires              Service principal
08/06/2017 14:47:12  08/07/2017 00:47:12  krbtgt/FIELD.HORTONWORKS.COM@FIELD.HORTONWORKS.COM
	renew until 08/13/2017 14:47:12
&lt;/PRE&gt;&lt;P&gt;Without kinit you shouldn't have a ticket in the ticket cache and therfore see something like&lt;/P&gt;&lt;PRE&gt;$ klist
klist: No credentials cache found (filename: /tmp/krb5cc_1960402946)&lt;/PRE&gt;&lt;P&gt;Before you do any "hadoop" or "hdfs" commands you should check with klist if you are authenticated and if you are authenticated as the user you want to be.&lt;/P&gt;&lt;P&gt;Thus,&lt;STRONG&gt; independently from which OS user you are,&lt;/STRONG&gt; you can authenticate as the hduser by simply doing&lt;/P&gt;&lt;PRE&gt;kinit hduser&lt;/PRE&gt;&lt;P&gt;You will be promted for the password of the hduser.&lt;/P&gt;&lt;P&gt;Now you should be able to use HDFS as hduser.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note 1&lt;/STRONG&gt;: Be prepared, that you will not have any permissions to create directories or write data unless you give these permission using the HDFS internal POSIX system or setting a corresponding policy in Apache Ranger.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note 2&lt;/STRONG&gt;: If you use keytabs instead of passwords (and for the sake of clarity) it makes sense to create an OS user AND a Kerberos principal with the same name and give the OS user permissions on the keytab to that user only.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2017 21:57:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-user-for-kerberized-cluster/m-p/212375#M66120</guid>
      <dc:creator>StefanDunkler</dc:creator>
      <dc:date>2017-08-06T21:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a user for kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-user-for-kerberized-cluster/m-p/212376#M66121</link>
      <description>&lt;P&gt;Hi, i added hduser principal and ran kinit hduser. then i went to hduser and ran the command hadoop fs -ls / still the same error&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 01:47:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-user-for-kerberized-cluster/m-p/212376#M66121</guid>
      <dc:creator>ryanoberoi9999</dc:creator>
      <dc:date>2017-08-07T01:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a user for kerberized cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-user-for-kerberized-cluster/m-p/212377#M66122</link>
      <description>&lt;P&gt;problem solved. just had to kinit the hduser while in hduser&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 01:57:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Adding-a-user-for-kerberized-cluster/m-p/212377#M66122</guid>
      <dc:creator>ryanoberoi9999</dc:creator>
      <dc:date>2017-08-07T01:57:01Z</dc:date>
    </item>
  </channel>
</rss>

