[ https://issues.apache.org/jira/browse/HIVE-11418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15961003#comment-15961003 ]
Sergio Peña commented on HIVE-11418: ------------------------------------ Oh, sorry. I misunderstood the HDFS jira. I see that previously to the patch the support was to delete only root encryption zones. This new patch on HDFS now allows to delete any file under an encryption zone and send it to the trash. We could try to bump our Hadoop version to 2.8.0 and take advantage of this. But, is this going to work if a user is running Hive on an older Hadoop version? > Dropping a database in an encryption zone with CASCADE and trash enabled fails > ------------------------------------------------------------------------------ > > Key: HIVE-11418 > URL: https://issues.apache.org/jira/browse/HIVE-11418 > Project: Hive > Issue Type: Sub-task > Affects Versions: 1.2.0 > Reporter: Sergio Peña > Assignee: Sahil Takiar > > Here's the query that fails: > {noformat} > hive> CREATE DATABASE db; > hive> USE db; > hive> CREATE TABLE a(id int); > hive> SET fs.trash.interval=1; > hive> DROP DATABASE db CASCADE; > FAILED: Execution Error, return code 1 from > org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Unable to drop > db.a because it is in an encryption zone and trash > is enabled. Use PURGE option to skip trash.) > {noformat} > DROP DATABASE does not support PURGE, so we have to remove the tables one by > one, and then drop the database. -- This message was sent by Atlassian JIRA (v6.3.15#6346)