Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 76296 invoked from network); 13 Oct 2009 17:40:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Oct 2009 17:40:16 -0000 Received: (qmail 33807 invoked by uid 500); 13 Oct 2009 17:37:54 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 33780 invoked by uid 500); 13 Oct 2009 17:37:53 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 33770 invoked by uid 99); 13 Oct 2009 17:37:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 17:37:53 +0000 X-ASF-Spam-Status: No, hits=-10.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SUBJECT_FUZZY_TION X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 17:37:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 61A31234C48C for ; Tue, 13 Oct 2009 10:37:31 -0700 (PDT) Message-ID: <1364500430.1255455451398.JavaMail.jira@brutus> Date: Tue, 13 Oct 2009 10:37:31 -0700 (PDT) From: "Prasad Chakka (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-874) add partitions found during metastore check In-Reply-To: <757684223.1255455211299.JavaMail.jira@brutus> 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-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765162#action_12765162 ] Prasad Chakka commented on HIVE-874: ------------------------------------ Cyrus, I created a separate JIRA since HIVE-493 is about automatically inferring partitions during query time and not updating metadata at all. I would like to keep that open since this may not be sufficient for some usecases. Could you upload your patch here? As for unit tests, check hive/ql/src/test/queries/clientpositive directory that contains the CLI tests. One of the tests could be to create hdfs directories for a table like 'srcpart' and run 'msck repair' on it and do a 'show partitions' on the table again to see if the partition is listed. We need to have some unit tests so that this functionality will not be broken accidentally by some other check-in. > add partitions found during metastore check > ------------------------------------------- > > Key: HIVE-874 > URL: https://issues.apache.org/jira/browse/HIVE-874 > Project: Hadoop Hive > Issue Type: Improvement > Affects Versions: 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.4.0, 0.4.1, 0.5.0 > Reporter: Prasad Chakka > Assignee: Cyrus Katrak > > 'msck' just reports the list of partition directories that exist but do not have corresponding metadata. This can happen if a process outside of hive is populating the directories. Hive should support an option to 'msck' that would also add default metadata for these partitions. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.