<?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 Not able to create a folder under '/user' directory from Ambari File View. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-create-a-folder-under-user-directory-from-Ambari/m-p/286127#M212234</link>
    <description>&lt;P&gt;I am logged into Ambari with 'admin' user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="User Directory.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25789i2E66A234E7DC0C06/image-size/large?v=v2&amp;amp;px=999" role="button" title="User Directory.png" alt="User Directory.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I navigated to File View &amp;gt;&amp;gt; 'user' directory&amp;nbsp; &amp;gt;&amp;gt; Create a New Folder &amp;gt;&amp;gt; Enter name of folder and click on 'Add' button.&lt;/P&gt;
&lt;P&gt;But I am getting a server message: -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE&gt;Permission denied: user=admin, access=WRITE, inode="/user":hdfs:hdfs:drwxr-xr-x&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I provide write permission on user directory to write something or add a folder to it. Request to community to help me. Thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Dec 2019 04:46:03 GMT</pubDate>
    <dc:creator>Bindal</dc:creator>
    <dc:date>2019-12-21T04:46:03Z</dc:date>
    <item>
      <title>Not able to create a folder under '/user' directory from Ambari File View.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-create-a-folder-under-user-directory-from-Ambari/m-p/286127#M212234</link>
      <description>&lt;P&gt;I am logged into Ambari with 'admin' user.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="User Directory.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25789i2E66A234E7DC0C06/image-size/large?v=v2&amp;amp;px=999" role="button" title="User Directory.png" alt="User Directory.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I navigated to File View &amp;gt;&amp;gt; 'user' directory&amp;nbsp; &amp;gt;&amp;gt; Create a New Folder &amp;gt;&amp;gt; Enter name of folder and click on 'Add' button.&lt;/P&gt;
&lt;P&gt;But I am getting a server message: -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE&gt;Permission denied: user=admin, access=WRITE, inode="/user":hdfs:hdfs:drwxr-xr-x&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I provide write permission on user directory to write something or add a folder to it. Request to community to help me. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2019 04:46:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-create-a-folder-under-user-directory-from-Ambari/m-p/286127#M212234</guid>
      <dc:creator>Bindal</dc:creator>
      <dc:date>2019-12-21T04:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to create a folder under '/user' directory from Ambari File View.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-able-to-create-a-folder-under-user-directory-from-Ambari/m-p/286129#M212235</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/71583"&gt;@Bindal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;EM&gt;&lt;STRONG&gt;"/user"&lt;/STRONG&gt;&lt;/EM&gt; directory permission and ownership is shows as &lt;EM&gt;&lt;STRONG&gt;"hdfs:hdfs:drwxr-xr-x"&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;Which means it can be written only by superuser "hdfs". However in ambari you have logged in as "admin" user which is &lt;EM&gt;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&lt;/EM&gt; superuser "hdfs".&amp;nbsp; &amp;nbsp;So you may have to change the ownership of this dir &lt;EM&gt;&lt;STRONG&gt;(Which is not recommended)&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp; so that 'admin' user can create a directory inside it ....&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;But if you want to perform the directory creation inside "/user" via file view only then you can try this:&lt;/P&gt;
&lt;P&gt;1. In Ambari UI Navigate to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; "admin" → "Manage Ambari" → Users → "Add Users" Button&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Create a user with name "hdfs" (you can choose your own desired password for this user and specify in the UI form)&lt;/P&gt;
&lt;P&gt;3. You can create this user as Cluster Admin ...etc based on the type needed in the "User Access" section. Similarly you can make that user as Ambari Admin if needed. (But this is up to your requirement)&lt;/P&gt;
&lt;P&gt;4. Now give the View Access permission to this user "hdfs"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;"admin" → "Manage Ambari" → Views → "AUTO_FILES_INSTANCE" (click on "edit" button)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. At the end of the "AUTO_FILES_INSTANCE" view definition you will find section named as "&lt;EM&gt;&lt;STRONG&gt;Permissions&lt;/STRONG&gt;&lt;/EM&gt;" please add user "&lt;EM&gt;&lt;STRONG&gt;hdfs&lt;/STRONG&gt;&lt;/EM&gt;" there.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="File_View_Permission.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/25791iE93595888E3FDC8F/image-size/large?v=v2&amp;amp;px=999" role="button" title="File_View_Permission.png" alt="File_View_Permission.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;6. Now try to login to a freshly opened browser as "hdfs" user and then you should be able to create Folders inside "/user" directory using File View.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Later you can disable the "hdfs" user account anytime in the Ambari UI.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2019 05:27:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-able-to-create-a-folder-under-user-directory-from-Ambari/m-p/286129#M212235</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-12-21T05:27:35Z</dc:date>
    </item>
  </channel>
</rss>

