<?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: HUE Metastore Manager - Drop Table not deleting files in HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Metastore-Manager-Drop-Table-not-deleting-files-in-HDFS/m-p/54091#M59899</link>
    <description>&lt;P&gt;It is&amp;nbsp;an internal table. The creation process was using the HUE GUI to 'Create a new table manually' in the Metastore Manager for the Hive default database. I didn't choose the 'Create a new table from a file' option, which allows a user to specify if it should be an external table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I updated my reply to saranvisa's use cases, and the underlying HDFS files were deleted only if the HUE user who dropped the table was its creator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fortunately, I do have access to HDFS superuser via the command line and was able to delete the table from my prior incident. Thanks for providing an alternative in the event that is not the case, especially since when deployed most users won't have command line access let alone HDFS superuser. Sounds like the trade-off is ease of use vs.&amp;nbsp;level of security.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2017 15:36:53 GMT</pubDate>
    <dc:creator>jpayne1</dc:creator>
    <dc:date>2017-04-25T15:36:53Z</dc:date>
    <item>
      <title>HUE Metastore Manager - Drop Table not deleting files in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Metastore-Manager-Drop-Table-not-deleting-files-in-HDFS/m-p/54035#M59895</link>
      <description>&lt;P&gt;When dropping a table from the Metastore Manager in HUE, the underlying HDFS files are not removed, which means users can still query the table (tested with Impala).&amp;nbsp;The table was created using the Metastore Manager, and the data was added by running a Spark Action in Oozie (LOAD DATA INPATH... kv1.txt... INTO TABLE...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While logged in as a HUE superuser, I tried deleting the Hive folder corresponding to the table I wanted to remove, but I received a permission error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cannot perform operation. Note: you are a Hue admin but not a HDFS superuser, "hdfs" or part of HDFS supergroup, "supergroup".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;AccessControlException: Permission denied by sticky bit: user=cloudera, path="/user/hive/warehouse/hivetest2":cloudera2:hive:drwxrwxrwt, parent="/user/hive/warehouse":hive:hive:drwxrwxrwt (error 500)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I need to configure so that a HUE superuser can delete from Hive via&amp;nbsp;the File Browser?&lt;/P&gt;&lt;P&gt;What&amp;nbsp;do I need to set so that dropping a table from the Metastore Manager deletes the HDFS files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:46:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Metastore-Manager-Drop-Table-not-deleting-files-in-HDFS/m-p/54035#M59895</guid>
      <dc:creator>jpayne1</dc:creator>
      <dc:date>2026-04-21T13:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: HUE Metastore Manager - Drop Table not deleting files in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Metastore-Manager-Drop-Table-not-deleting-files-in-HDFS/m-p/54039#M59896</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/21254"&gt;@jpayne1&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If an user created a table and loaded data into it and another user drop the table then only table will be droped but underlined data will exists&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex: UseCase 1:&lt;BR /&gt;1. Login as User A and create a table tab1 and load data into it&lt;BR /&gt;2. Drop the table tab1. Now table will be droped and files from HDFS path will be removed&lt;/P&gt;&lt;P&gt;UseCase 2:&lt;BR /&gt;1. Login as User A and create a table tab1 and load data into it&lt;BR /&gt;2. Logout from User A and login as User B&lt;BR /&gt;3. Drop the table tab1. Now table will be droped but files from HDFS path will remain exists&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:45:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Metastore-Manager-Drop-Table-not-deleting-files-in-HDFS/m-p/54039#M59896</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-04-24T15:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: HUE Metastore Manager - Drop Table not deleting files in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Metastore-Manager-Drop-Table-not-deleting-files-in-HDFS/m-p/54087#M59897</link>
      <description>&lt;P&gt;Thanks for the quick reply. I have another case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Case 3:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Login as User A and create a table tab1 and load data into it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Logout from User A and login as User B&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. As User B, load data into table tab1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now if User A drops the table, will it also delete the file User B loaded?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;UPDATE: Just tested this and can confirm User B's loaded files will be deleted as well if User A drops the table.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 15:15:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Metastore-Manager-Drop-Table-not-deleting-files-in-HDFS/m-p/54087#M59897</guid>
      <dc:creator>jpayne1</dc:creator>
      <dc:date>2017-04-25T15:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: HUE Metastore Manager - Drop Table not deleting files in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Metastore-Manager-Drop-Table-not-deleting-files-in-HDFS/m-p/54089#M59898</link>
      <description>&lt;P&gt;Was the table an internal (managed) or external (unmanaged) table? &amp;nbsp;The former will delete the metadata and the underlying data in HDFS. &amp;nbsp;The latter will not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for removing the data now, you need to be a HDFS superuser. &amp;nbsp;You logged into HUE as cloudera which is not. &amp;nbsp;Easiest way is through the command line, switch to the hdfs user, and then run the command. &amp;nbsp;This requires shell access and sudo access to hdfs, which you may not have. &amp;nbsp;In leui of that you could create an hdfs user in user (assuming no auth) and then log into it. &amp;nbsp;This is risky though as then the user exist within the HUE db and anybody that can get access to it will have root level access to HDFS. &amp;nbsp;If you can do either of these, update the HDFS configs to include the cloudera account as a HDFS superuser (&lt;A href="https://www.cloudera.com/documentation/enterprise/5-8-x/topics/cm_sg_s5_hdfs_principal.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-8-x/topics/cm_sg_s5_hdfs_principal.html&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 15:02:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Metastore-Manager-Drop-Table-not-deleting-files-in-HDFS/m-p/54089#M59898</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-04-25T15:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: HUE Metastore Manager - Drop Table not deleting files in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Metastore-Manager-Drop-Table-not-deleting-files-in-HDFS/m-p/54091#M59899</link>
      <description>&lt;P&gt;It is&amp;nbsp;an internal table. The creation process was using the HUE GUI to 'Create a new table manually' in the Metastore Manager for the Hive default database. I didn't choose the 'Create a new table from a file' option, which allows a user to specify if it should be an external table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I updated my reply to saranvisa's use cases, and the underlying HDFS files were deleted only if the HUE user who dropped the table was its creator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fortunately, I do have access to HDFS superuser via the command line and was able to delete the table from my prior incident. Thanks for providing an alternative in the event that is not the case, especially since when deployed most users won't have command line access let alone HDFS superuser. Sounds like the trade-off is ease of use vs.&amp;nbsp;level of security.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 15:36:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HUE-Metastore-Manager-Drop-Table-not-deleting-files-in-HDFS/m-p/54091#M59899</guid>
      <dc:creator>jpayne1</dc:creator>
      <dc:date>2017-04-25T15:36:53Z</dc:date>
    </item>
  </channel>
</rss>

