Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 63290 invoked from network); 24 Jan 2011 13:50:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jan 2011 13:50:09 -0000 Received: (qmail 37458 invoked by uid 500); 24 Jan 2011 13:50:08 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 37244 invoked by uid 500); 24 Jan 2011 13:50:06 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 37196 invoked by uid 500); 24 Jan 2011 13:50:05 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 37192 invoked by uid 99); 24 Jan 2011 13:50:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 13:50:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 13:50:04 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0ODnimr012209 for ; Mon, 24 Jan 2011 13:49:44 GMT Message-ID: <7614096.154041295876984132.JavaMail.jira@thor> Date: Mon, 24 Jan 2011 08:49:44 -0500 (EST) From: "Chinna Rao Lalam (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-1897) Alter command execution "when HDFS is down" results in holding stale data in MetaStore In-Reply-To: <30289658.188861294324007003.JavaMail.jira@thor> 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-1897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chinna Rao Lalam updated HIVE-1897: ----------------------------------- Attachment: HIVE-1897.1.patch > Alter command execution "when HDFS is down" results in holding stale data in MetaStore > --------------------------------------------------------------------------------------- > > Key: HIVE-1897 > URL: https://issues.apache.org/jira/browse/HIVE-1897 > Project: Hive > Issue Type: Bug > Components: Metastore > Affects Versions: 0.6.0 > Environment: Hadoop 0.20.1, Hive0.6.0 and SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5). > Reporter: Chinna Rao Lalam > Attachments: HIVE-1897.1.patch > > > Lets consider, the *"DFS"* is down , > And on executing an alter query say *"alter table firsttable rename to secondtable"*. > the query execution fails with the following exception: > {color:red} > InvalidOperationException(message:Unable to access old location hdfs://localhost:9000/user/hive/warehouse/firsttable for table default.firsttable) > {color} > Now after starting the *DFS* and then executing the same query , the client gets the following exception: > {color:red} > NoSuchObjectException(message:default.firsttable table not found) > {color} > h4.Root Cause > In Alter Query execution flow, first *"MetaStore"* operation is executed successfully and then *"DFS"* operation is started. In this scenario, *"DFS"* is down. As a result, execution of the query failed and partial information of the operation is saved. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.