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 0990D18D38 for ; Tue, 19 May 2015 02:36:00 +0000 (UTC) Received: (qmail 65013 invoked by uid 500); 19 May 2015 02:35:59 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 64993 invoked by uid 500); 19 May 2015 02:35:59 -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 64983 invoked by uid 99); 19 May 2015 02:35:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2015 02:35:59 +0000 Date: Tue, 19 May 2015 02:35:59 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-10722) external table creation with msck in Hive can create unusable partition 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-10722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14549684#comment-14549684 ] Sergey Shelukhin commented on HIVE-10722: ----------------------------------------- I have a fix for the main issue, fixing some rough edges... > external table creation with msck in Hive can create unusable partition > ----------------------------------------------------------------------- > > Key: HIVE-10722 > URL: https://issues.apache.org/jira/browse/HIVE-10722 > Project: Hive > Issue Type: Bug > Affects Versions: 0.14.1, 1.0.0 > Reporter: Sergey Shelukhin > Assignee: Sergey Shelukhin > Priority: Critical > > There can be directories in HDFS containing unprintable characters; when doing hadoop fs -ls, these characters are not even visible, and can only be seen for example if output is piped thru od. > When these are loaded via msck, they are stored in e.g. mysql as "?" (literal question mark, findable via LIKE '%?%' in db) and show accordingly in Hive. > However, datanucleus appears to encode it as %3F; this causes the partition to be unusable - it cannot be dropped, and other operations like drop table get stuck (didn't investigate in detail why; drop table got unstuck as soon as the partition was removed from metastore). > We should probably have a 2-way option for such cases - error out on load (default), or convert to '?'/drop such characters (and have partition that actually works, too). > We should also check if partitions with '?' inserted explicitly work at all with datanucleus. -- This message was sent by Atlassian JIRA (v6.3.4#6332)