<?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: How to can access the HDFS using my local linux user(permission denied) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-can-access-the-HDFS-using-my-local-linux-user/m-p/295414#M217731</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/14878"&gt;@hughatoclc&lt;/a&gt;&amp;nbsp; thanks for this. this is a big help. however, how can I make my user also in hdfs supergroup? so that I can freely explore the hdfs and also can I run jobs using this as well?&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 02:41:06 GMT</pubDate>
    <dc:creator>Mondi</dc:creator>
    <dc:date>2020-05-05T02:41:06Z</dc:date>
    <item>
      <title>How to can access the HDFS using my local linux user(permission denied)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-can-access-the-HDFS-using-my-local-linux-user/m-p/295340#M217701</link>
      <description>&lt;P&gt;I'm using CDH 6.3.2. When trying to create directories in hdfs, I'm having permission denied like this one:&lt;/P&gt;&lt;P&gt;[devuser@master01 ~]$ hdfs dfs -mkdir /dev&lt;BR /&gt;mkdir: Permission denied: user=devuser, access=WRITE, inode="/":hdfs:supergroup:drwxr-xr-x&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;How can I add my user on hdfs? and how can my user run jobs as well?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:36:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-can-access-the-HDFS-using-my-local-linux-user/m-p/295340#M217701</guid>
      <dc:creator>Mondi</dc:creator>
      <dc:date>2022-09-16T14:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to can access the HDFS using my local linux user(permission denied)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-can-access-the-HDFS-using-my-local-linux-user/m-p/295341#M217702</link>
      <description>&lt;P&gt;Hi, Mondi!&lt;/P&gt;&lt;P&gt;The msg you are getting is telling that user &lt;STRONG&gt;devuser&lt;/STRONG&gt; does not have permission to write to the root (/) HDFS folder.&amp;nbsp; This is normal, and just like a Linux FS.&amp;nbsp; If you create a folder in HDFS and make your local unix account the owner, you can use that folder as you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to create objects in hdfs /, you need to become the superuser, &lt;STRONG&gt;hdfs&lt;/STRONG&gt;.&amp;nbsp; Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&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;# create your folder
$ sudo -u hdfs hdfs dfs -mkdir /user/devuser
# make devuser the owner:
$ sudo -u hdfs hdfs -chown devuser /user/devuser&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You first elevate to &lt;STRONG&gt;hdfs&lt;/STRONG&gt;, then run the hdfs dfs command.&amp;nbsp; This wil create your personal directory in /user and make you the owner.&amp;nbsp; Now, when you run hdfs commands as devuser, you will have permission to modify objects in that folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CAREFUL&lt;/STRONG&gt;: &lt;EM&gt;elevating to &lt;STRONG&gt;hdfs&lt;/STRONG&gt; is like becoming root in linux.&amp;nbsp; You can do a lot of damage if you make a mistake.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 12:41:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-can-access-the-HDFS-using-my-local-linux-user/m-p/295341#M217702</guid>
      <dc:creator>hughatoclc</dc:creator>
      <dc:date>2020-05-04T12:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to can access the HDFS using my local linux user(permission denied)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-can-access-the-HDFS-using-my-local-linux-user/m-p/295414#M217731</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/14878"&gt;@hughatoclc&lt;/a&gt;&amp;nbsp; thanks for this. this is a big help. however, how can I make my user also in hdfs supergroup? so that I can freely explore the hdfs and also can I run jobs using this as well?&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 02:41:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-can-access-the-HDFS-using-my-local-linux-user/m-p/295414#M217731</guid>
      <dc:creator>Mondi</dc:creator>
      <dc:date>2020-05-05T02:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to can access the HDFS using my local linux user(permission denied)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-can-access-the-HDFS-using-my-local-linux-user/m-p/295434#M217744</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/75200"&gt;@Mondi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;just update&amp;nbsp;&lt;SPAN&gt;dfs.&lt;/SPAN&gt;&lt;SPAN&gt;cluster.&lt;/SPAN&gt;&lt;SPAN&gt;administrators with the admin username you want in hdfs config (and restart hdfs,yarn,MR2,... services)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ex:&amp;nbsp;dfs.cluster.administrators = hdfs,ops&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can&amp;nbsp;also use a HDFS administrators group (&lt;SPAN&gt;only one administrator group&lt;/SPAN&gt;) using&amp;nbsp;&lt;SPAN&gt;dfs.permissions.superusergroup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ex :&amp;nbsp;dfs.permissions.superusergroup = operations&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to verify config has been updated, once services restarted&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;hdfs getconf -confKey dfs.cluster.administrators&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;hdfs getconf -confKey dfs.permissions.superusergroup&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 May 2020 08:34:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-can-access-the-HDFS-using-my-local-linux-user/m-p/295434#M217744</guid>
      <dc:creator>rachid-berkane</dc:creator>
      <dc:date>2020-05-05T08:34:16Z</dc:date>
    </item>
  </channel>
</rss>

