Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@locus.apache.org Received: (qmail 48712 invoked from network); 11 Dec 2008 14:28:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2008 14:28:05 -0000 Received: (qmail 30377 invoked by uid 500); 11 Dec 2008 14:28:18 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 30363 invoked by uid 500); 11 Dec 2008 14:28:18 -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 30352 invoked by uid 99); 11 Dec 2008 14:28:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 06:28:18 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 14:28:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9AA81234C37A for ; Thu, 11 Dec 2008 06:27:44 -0800 (PST) Message-ID: <1202175519.1229005664632.JavaMail.jira@brutus> Date: Thu, 11 Dec 2008 06:27:44 -0800 (PST) From: "Johan Oskarsson (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-142) Create a metastore check command In-Reply-To: <802468178.1228823564719.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12655659#action_12655659 ] Johan Oskarsson commented on HIVE-142: -------------------------------------- Ok, I see what you mean about the URI. Regarding separate utility vs alter table I'm ok with either, does anyone have a strong preference either way? The approach I was thinking of was to at least have it as a command in the hive shell. Your original suggestion in the description sounds good to me, alternatively just having a command called something like "check" or "msck" for meta store check. Any preference? > Create a metastore check command > -------------------------------- > > Key: HIVE-142 > URL: https://issues.apache.org/jira/browse/HIVE-142 > Project: Hadoop Hive > Issue Type: New Feature > Components: Metastore > Affects Versions: 0.19.0 > Reporter: Johan Oskarsson > Fix For: 0.19.0 > > > We need a command to verify that the information in the metastore reflects the data that is on hdfs. For example partitions can be deleted on hdfs but still be in the metastore. > From Joydeep Sen Sarma, see ticket HIVE-126 for the full comment: > for a command line interface - one might want to check the entire database or just a table or even just one partition. other metadata checks will also be added over time (for example - do the file types on disk agree with metadata records, bucketing information etc). So, here's a strawman proposal for a new command: > alter table [.TABLE [PARTITION-SPEC]] check [TYPE-LIST] > where TYPE by default is 'all' (check for all kinds of errors), but can be specified to a specific type. For example - in this case - we can have a type called 'partitions' (and then over time we can add other types like 'fileformat' etc.). for v1 - we can just drop the type-list altogether. > the check command can produce a list of things that need to be done to fix the format (like adding any directories not in the metastore - but in hdfs - to the metastore). actually performing of such steps would require a user confirmation (y/n). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.