<?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: Permission denied when removing file from HDFS from sandbox in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100073#M13047</link>
    <description>&lt;P&gt;
	hdfs dfs -mkdir /user/admin/matthew might be required.
&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2017 17:17:46 GMT</pubDate>
    <dc:creator>sugandha_amatya</dc:creator>
    <dc:date>2017-01-03T17:17:46Z</dc:date>
    <item>
      <title>Permission denied when removing file from HDFS from sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100067#M13041</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Default Hortonworks Sandbox 2.3.2 running in VirtualBox on Mac El Capitan.  I noticed when using the HDFS file manager GUI (at &lt;A href="http://sandbox.hortonworks.com:8080/#/main/views/FILES/1.0.0/Files%29,"&gt;http://sandbox.hortonworks.com:8080/#/main/views/...&lt;/A&gt; ), any directories or files created are owned by "admin".   Then, if I create directories or files by connecting to HDFS from the hadoop 2.7.1 command line client, they're owned by "matthew" (my Mac account name):&lt;/P&gt;&lt;PRE&gt;$ bin/hadoop fs -ls hdfs://sandbox.hortonworks.com:8020/tmp/bar15/12/18 10:25:33
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Found 2 items
-rw-r--r--   3 matthew hdfs  116795988 2015-12-17 17:17 hdfs://sandbox.hortonworks.com:8020/tmp/bar/sh111.txt
-rw-r--r--   3 matthew hdfs   19465998 2015-12-17 17:13 hdfs://sandbox.hortonworks.com:8020/tmp/bar/sh19mb.txt&lt;/PRE&gt;&lt;P&gt;After creating those files, I can't delete them using the HDFS file manager GUI -- there is no delete (trash can) icon for the files owned by "matthew".&lt;/P&gt;&lt;P&gt;I then tried to delete them via hadoop 2.7.1 with command&lt;/P&gt;&lt;PRE&gt;bin/hadoop fs -rm -r -f hdfs://sandbox.hortonworks.com:8020/tmp/bar&lt;/PRE&gt;&lt;P&gt;and I get an exception that starts with&lt;/P&gt;&lt;PRE&gt;org.apache.hadoop.security.AccessControlException: Permission denied: user=matthew, access=WRITE, inode="/user/matthew/.Trash/Current/tmp":hdfs:hdfs:drwxr-xr-x&lt;/PRE&gt;&lt;P&gt;I tried to ls /user/matthew with command&lt;/P&gt;&lt;PRE&gt;bin/hadoop fs -ls hdfs://sandbox.hortonworks.com:8020/user/matthew&lt;/PRE&gt;&lt;P&gt;and got&lt;/P&gt;&lt;PRE&gt;ls: `hdfs://sandbox.hortonworks.com:8020/user/matthew': No such file or directory&lt;/PRE&gt;&lt;P&gt;How do I remove files created via the hadoop command line client in the Hortonworks Sandbox 2.3.2?&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Matthew&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2015 00:28:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100067#M13041</guid>
      <dc:creator>matthew1</dc:creator>
      <dc:date>2015-12-19T00:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied when removing file from HDFS from sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100068#M13042</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1604/matthew.html" nodeid="1604"&gt;@Matthew Adams&lt;/A&gt;&lt;P&gt;su - hdfs&lt;/P&gt;&lt;P&gt;hdfs dfs -chown -R matthew:hadoop /user/matthew&lt;/P&gt;&lt;P&gt;then try deleting it &lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2015 00:32:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100068#M13042</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-19T00:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied when removing file from HDFS from sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100069#M13043</link>
      <description>&lt;P&gt;My mac has no user "hdfs".&lt;/P&gt;&lt;PRE&gt;$ su - hdfs
Password:
su: Sorry&lt;/PRE&gt;&lt;P&gt;Am I supposed to ssh into the sandbox and execute these commands?&lt;/P&gt;&lt;P&gt;Further, there is no directory found called "/user/matthew" as I indicated in my original question, so if I'd be chown'ing something that doesn't exist.&lt;/P&gt;&lt;P&gt;I'm confused...&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2015 00:36:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100069#M13043</guid>
      <dc:creator>matthew1</dc:creator>
      <dc:date>2015-12-19T00:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied when removing file from HDFS from sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100070#M13044</link>
      <description>&lt;P&gt;Yes , please login into sandbox&lt;/P&gt;&lt;P&gt;&lt;A href="http://127.0.0.1:4200" target="_blank"&gt;http://127.0.0.1:4200&lt;/A&gt; or you can do ssh from mac &lt;/P&gt;&lt;P&gt;HW11326:Downloads nsabharwal$ ssh root@127.0.0.1 -p 2222&lt;/P&gt;&lt;P&gt;root@127.0.0.1's password: &lt;/P&gt;&lt;P&gt;Last login: Thu Dec 17 23:34:06 2015 from 10.0.2.2&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# su - hdfs&lt;/P&gt;&lt;P&gt;[hdfs@sandbox ~]$&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2015 00:53:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100070#M13044</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-19T00:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied when removing file from HDFS from sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100071#M13045</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;, that did the trick.  Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2015 02:56:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100071#M13045</guid>
      <dc:creator>matthew1</dc:creator>
      <dc:date>2015-12-19T02:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied when removing file from HDFS from sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100072#M13046</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1604/matthew.html" nodeid="1604"&gt;@Matthew Adams&lt;/A&gt; hdfs is life root user &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; superuser&lt;/P&gt;&lt;P&gt;If this thread is resolved then please accept one of the answers...Thanks for testing &lt;/P&gt;</description>
      <pubDate>Sat, 19 Dec 2015 02:58:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100072#M13046</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-19T02:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Permission denied when removing file from HDFS from sandbox</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100073#M13047</link>
      <description>&lt;P&gt;
	hdfs dfs -mkdir /user/admin/matthew might be required.
&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 17:17:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Permission-denied-when-removing-file-from-HDFS-from-sandbox/m-p/100073#M13047</guid>
      <dc:creator>sugandha_amatya</dc:creator>
      <dc:date>2017-01-03T17:17:46Z</dc:date>
    </item>
  </channel>
</rss>

