<?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 drop hive tables after moving hive into encryption zone. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-drop-hive-tables-after-moving-hive-into-encryption/m-p/95012#M8300</link>
    <description>&lt;P&gt;You can delete Hive tables by calling "drop table &amp;lt;tablename&amp;gt; purge;", this will skip the trash. If this is for testing purposes you can temporarily set fs.trash.interval to 0 and restart namenode. This will globally disable trash collection on HDFS so should only be employed during testing.&lt;/P&gt;&lt;P&gt;On your last question about the support of TDE feature, it was available starting &lt;A href="http://hortonworks.com/blog/new-in-hdp-2-3-enterprise-grade-hdfs-data-at-rest-encryption/"&gt;HDP 2.3&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Oct 2015 07:41:58 GMT</pubDate>
    <dc:creator>deepesh1</dc:creator>
    <dc:date>2015-10-07T07:41:58Z</dc:date>
    <item>
      <title>Can't drop hive tables after moving hive into encryption zone.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-drop-hive-tables-after-moving-hive-into-encryption/m-p/95011#M8299</link>
      <description>&lt;P&gt;We are validating Hadoop TDE and have moved /apps and /data into encryption zones. The hive.metastore.warehouse.dir is set to /apps/hive/warehouse &lt;/P&gt;&lt;P&gt;
There are 2 issues. &lt;/P&gt;&lt;P&gt;
1. We cant delete hive tables because Trash is not in the encryption zone. &lt;/P&gt;&lt;PRE&gt;hive&amp;gt; CREATE DATABASE alan_test; 
OK 
Time taken: 3.027 seconds 
hive&amp;gt; use alan_test; 
OK 
Time taken: 0.315 seconds 
hive&amp;gt; CREATE TABLE a(id int); 
OK 
hive&amp;gt; DROP DATABASE alan_test; 
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidOperationException(message:Database alan_test is not empty. One or more tables exist.) 
&lt;/PRE&gt;&lt;P&gt;2. We can only delete files via hdfs dfs -rm .... if we use the -skipTrash option.  &lt;/P&gt;&lt;PRE&gt;[root@devsl1 ~]# sudo -u ssn hdfs dfs -copyFromLocal TEST /apps/hive/ 
[root@devsl1 ~]# sudo -u ssn hdfs dfs -rm /apps/hive/TEST 
15/10/06 15:51:51 INFO fs.TrashPolicyDefault: Namenode trash configuration: Deletion interval = 360 minutes, Emptier interval = 0 minutes. 
rm: Failed to move to trash: hdfs://devsl1.eng.ssnsgs.net:8020/apps/hive/TEST: /apps/hive/TEST can't be moved from an encryption zone. 


[root@devsl1 ~]# sudo -u ssn hdfs dfs -rm -skipTrash /apps/hive/TEST 
Deleted /apps/hive/TEST 
&lt;/PRE&gt;&lt;P&gt;I think this is because Hive does not support HDFS TDE yet (HIVE-8065).&lt;/P&gt;&lt;P&gt;But just want to make sure it's the case and see if there is any workaround.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 07:38:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-drop-hive-tables-after-moving-hive-into-encryption/m-p/95011#M8299</guid>
      <dc:creator>vjiang</dc:creator>
      <dc:date>2015-10-07T07:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can't drop hive tables after moving hive into encryption zone.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-drop-hive-tables-after-moving-hive-into-encryption/m-p/95012#M8300</link>
      <description>&lt;P&gt;You can delete Hive tables by calling "drop table &amp;lt;tablename&amp;gt; purge;", this will skip the trash. If this is for testing purposes you can temporarily set fs.trash.interval to 0 and restart namenode. This will globally disable trash collection on HDFS so should only be employed during testing.&lt;/P&gt;&lt;P&gt;On your last question about the support of TDE feature, it was available starting &lt;A href="http://hortonworks.com/blog/new-in-hdp-2-3-enterprise-grade-hdfs-data-at-rest-encryption/"&gt;HDP 2.3&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 07:41:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-drop-hive-tables-after-moving-hive-into-encryption/m-p/95012#M8300</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-10-07T07:41:58Z</dc:date>
    </item>
  </channel>
</rss>

