<?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: Can't remove file from HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-remove-file-from-HDFS/m-p/65056#M74874</link>
    <description>&lt;P&gt;Yes,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As your said, i removed the file by user'hdfs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Mar 2018 05:52:12 GMT</pubDate>
    <dc:creator>wenjiea</dc:creator>
    <dc:date>2018-03-02T05:52:12Z</dc:date>
    <item>
      <title>Can't remove file from HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-remove-file-from-HDFS/m-p/64876#M74872</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't remove file from HDFS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hdfs dfs -rm -r /user/hadoop/.Trash/180223212154/user/hive/warehouse/dbaa.db/&lt;SPAN&gt;tablea&lt;/SPAN&gt;21519385391248/dt=2018-02-22&lt;/P&gt;&lt;P&gt;rm: Permission denied: user=&lt;STRONG&gt;hadoop&lt;/STRONG&gt;, access=ALL, inode="/user/hadoop/.Trash/180223212154/user/hive/warehouse/dbaa.db/tablea&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;1519385391248&lt;/SPAN&gt;/dt=2018-02-22":&lt;STRONG&gt;impala:hive&lt;/STRONG&gt;:drwxr-xr-x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. i created the table on hive and user : hadoop&lt;/P&gt;&lt;P&gt;drwxrwxrwt&amp;nbsp; &amp;nbsp;- &lt;STRONG&gt;hadoop hive&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 2018-02-23 18:54 &lt;U&gt;/user/hadoop/.Trash/180223212154/user/hive/warehouse/dbaa.db/tablea21519385391248&lt;/U&gt;&lt;/P&gt;&lt;P&gt;2, i inserted data to table:dbaa.tablea with impala ,so the folder like below.&lt;/P&gt;&lt;P&gt;drwxr-xr-x&amp;nbsp; &amp;nbsp;- &lt;STRONG&gt;impala hive&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 2018-02-23 19:33 &lt;U&gt;/user/hadoop/.Trash/180223212154/user/hive/warehouse/dbaa.db/tablea1519385391248/&lt;/U&gt;dt=2018-02-22&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my question is&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i remove the folder:&lt;U&gt;/user/hadoop/.Trash/180223212154/user/hive/warehouse/dbaa.db/tablea1519385391248/&lt;/U&gt;&lt;SPAN&gt;dt=2018-02-22&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I tried remove it with user:hadoop&lt;/P&gt;&lt;P&gt;hdfs dfs -rm -r /user/hadoop/.Trash/180223212154/user/hive/warehouse/dbaa.db/&lt;SPAN&gt;tablea&lt;/SPAN&gt;21519385391248/dt=2018-02-22&lt;/P&gt;&lt;P&gt;rm: Permission denied: user=&lt;STRONG&gt;hadoop&lt;/STRONG&gt;, access=ALL, inode="/user/hadoop/.Trash/180223212154/user/hive/warehouse/dbaa.db/tablea&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;1519385391248&lt;/SPAN&gt;/dt=2018-02-22":&lt;STRONG&gt;impala:hive&lt;/STRONG&gt;:drwxr-xr-x&lt;/P&gt;&lt;P&gt;2.&lt;SPAN&gt;&amp;nbsp;I tried remove it with user:impala&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hdfs dfs -rm -r /user/hadoop/.Trash/180223212154/user/hive/warehouse/dbaa.db/tablea21519385391248/dt=2018-02-22&lt;BR /&gt;rm: Permission denied: user=&lt;STRONG&gt;impala&lt;/STRONG&gt;, access=EXECUTE, inode="/user/hadoop/.Trash":&lt;STRONG&gt;hadoop:supergroup&lt;/STRONG&gt;:drwx-w----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:53:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-remove-file-from-HDFS/m-p/64876#M74872</guid>
      <dc:creator>wenjiea</dc:creator>
      <dc:date>2022-09-16T12:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can't remove file from HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-remove-file-from-HDFS/m-p/65046#M74873</link>
      <description>&lt;P&gt;You have a mixed up situation.&lt;/P&gt;&lt;P&gt;Try as user "hdfs" (the superuser of hdfs) and also add -skipTrash in your command.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:14:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-remove-file-from-HDFS/m-p/65046#M74873</guid>
      <dc:creator>GeKas</dc:creator>
      <dc:date>2018-03-01T15:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Can't remove file from HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-remove-file-from-HDFS/m-p/65056#M74874</link>
      <description>&lt;P&gt;Yes,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As your said, i removed the file by user'hdfs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 05:52:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-remove-file-from-HDFS/m-p/65056#M74874</guid>
      <dc:creator>wenjiea</dc:creator>
      <dc:date>2018-03-02T05:52:12Z</dc:date>
    </item>
  </channel>
</rss>

