hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lefty Leverenz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-14626) Support Trash in Truncate Table
Date Fri, 09 Sep 2016 03:29:20 GMT

    [ https://issues.apache.org/jira/browse/HIVE-14626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15475786#comment-15475786
] 

Lefty Leverenz commented on HIVE-14626:
---------------------------------------

Should this change be documented in the wiki?

* [DDL -- Truncate Table | https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-TruncateTable]

Also, how do Hive tables/partitions get encrypted?  A search of the wiki for "encrypt" only
had one result for the UDF aes_encrypt().  Is there also a table property?

* [Hive Operators and Functions -- Misc. Functions -- aes_encrypt | https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-Misc.Functions]

> Support Trash in Truncate Table
> -------------------------------
>
>                 Key: HIVE-14626
>                 URL: https://issues.apache.org/jira/browse/HIVE-14626
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Query Processor
>            Reporter: Chaoyu Tang
>            Assignee: Chaoyu Tang
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: HIVE-14626.1.patch, HIVE-14626.patch
>
>
> Currently Truncate Table (or Partition) is implemented using FileSystem.delete and then
recreate the directory, so
> 1. it does not support HDFS Trash
> 2. if the table/partition directory is initially encryption protected, after being deleted
and recreated, it is no more protected.
> The new implementation is to clean the contents of directory using multi-threaded trashFiles.
If Trash is enabled and has a lower encryption level than the data directory, the files under
it will be deleted. Otherwise, they will be Trashed



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message