Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C67B174BF for ; Thu, 14 May 2015 17:17:00 +0000 (UTC) Received: (qmail 49700 invoked by uid 500); 14 May 2015 17:17:00 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 49685 invoked by uid 500); 14 May 2015 17:17:00 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 49675 invoked by uid 99); 14 May 2015 17:16:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2015 17:16:59 +0000 Date: Thu, 14 May 2015 17:16:59 +0000 (UTC) From: "Eugene Koifman (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-10630) Renaming tables across encryption zones renames table even though the operation throws error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-10630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eugene Koifman updated HIVE-10630: ---------------------------------- Attachment: (was: HIVE-10630.patch) > Renaming tables across encryption zones renames table even though the operation throws error > -------------------------------------------------------------------------------------------- > > Key: HIVE-10630 > URL: https://issues.apache.org/jira/browse/HIVE-10630 > Project: Hive > Issue Type: Sub-task > Components: Metastore, Security > Reporter: Deepesh Khandelwal > Assignee: Eugene Koifman > Attachments: HIVE-10630.patch > > > Create a table with data in an encrypted zone 1 and then rename it to encrypted zone 2. > {noformat} > hive> alter table encdb1.testtbl rename to encdb2.testtbl; > FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Unable to alter table. Unable to access old location hdfs://node-1.example.com:8020/apps/hive/warehouse/encdb1.db/testtbl for table encdb1.testtbl > {noformat} > Even though the command errors out the table is renamed. I think the right behavior should be to not rename the table at all including the metadata. -- This message was sent by Atlassian JIRA (v6.3.4#6332)