<?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: cannot create user directory after kerberos in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/77644#M81015</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/4054"&gt;@bgooley&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does the trick by creating hdfs user in kerberos, however, for the proper setup do I need to change the supergroup? and assign user to supergroup?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jul 2018 07:17:44 GMT</pubDate>
    <dc:creator>yongie</dc:creator>
    <dc:date>2018-07-27T07:17:44Z</dc:date>
    <item>
      <title>cannot create user directory after kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/77369#M81012</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just enable Kerberos on my test cluster, however after enabling kerberos, I am not able to create /user/test directory anymore due to permission error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;hadoop fs -mkdir /user/test&lt;BR /&gt;mkdir: Permission denied: user=admin, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway to fix it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 14:21:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/77369#M81012</guid>
      <dc:creator>yongie</dc:creator>
      <dc:date>2018-07-24T14:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create user directory after kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/77372#M81013</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/10870"&gt;@yongie&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;switch to hdfs user and try again&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 09:09:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/77372#M81013</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2018-07-24T09:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create user directory after kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/77410#M81014</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/10870"&gt;@yongie&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Permission Denied message indicates that your hadoop command is authenticating as the user "admin".&amp;nbsp; As you can see, the user "admin" does not have previlige to write to the /user directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to be able to have non-hdfs user write to that /user directory with the permissions as they are, that "admin" user will need to be a superuser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are not interested in having outher users as superusers, then the other option is to kinit as &lt;STRONG&gt;hdfs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Basically, you need to create a user in your KDC with the name "hdfs" and with the userprincipalname hdfs@realm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See this page for details all that I mentioned above:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/cm_sg_s5_hdfs_principal.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/cm_sg_s5_hdfs_principal.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 19:15:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/77410#M81014</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2018-07-24T19:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create user directory after kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/77644#M81015</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/4054"&gt;@bgooley&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does the trick by creating hdfs user in kerberos, however, for the proper setup do I need to change the supergroup? and assign user to supergroup?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 07:17:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/77644#M81015</guid>
      <dc:creator>yongie</dc:creator>
      <dc:date>2018-07-27T07:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create user directory after kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/313458#M81016</link>
      <description>&lt;P&gt;Ohh My God, This worked&amp;nbsp;&lt;BR /&gt;You are a lifesaver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 19:37:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/313458#M81016</guid>
      <dc:creator>adiz</dc:creator>
      <dc:date>2021-03-19T19:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: cannot create user directory after kerberos</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/313459#M81017</link>
      <description>&lt;P class="lia-align-left"&gt;that worked but when I tried to fire command from admin user&amp;nbsp;(commands like --- hdfs dfs -cp file /user/admin or hdfs dfs -ls /user/)&lt;BR /&gt;it's not allowing me&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;giving below error&lt;/P&gt;&lt;P class="lia-align-left"&gt;WARN security.UserGroupInformation: PriviledgedActionException as:admin (auth:KERBEROS) cause:javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)]&lt;/P&gt;</description>
      <pubDate>Fri, 19 Mar 2021 19:49:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/cannot-create-user-directory-after-kerberos/m-p/313459#M81017</guid>
      <dc:creator>adiz</dc:creator>
      <dc:date>2021-03-19T19:49:15Z</dc:date>
    </item>
  </channel>
</rss>

