Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8AA36DA68 for ; Thu, 13 Sep 2012 06:13:09 +0000 (UTC) Received: (qmail 8961 invoked by uid 500); 13 Sep 2012 06:13:09 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 8824 invoked by uid 500); 13 Sep 2012 06:13:08 -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 8799 invoked by uid 500); 13 Sep 2012 06:13:08 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 8791 invoked by uid 99); 13 Sep 2012 06:13:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 06:13:07 +0000 Date: Thu, 13 Sep 2012 17:13:07 +1100 (NCT) From: "Namit Jain (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1954925380.73595.1347516787805.JavaMail.jiratomcat@arcas> In-Reply-To: <1849646655.67878.1347428347485.JavaMail.jiratomcat@arcas> Subject: [jira] [Assigned] (HIVE-3451) map-reduce jobs does not work for a partition containing sub-directories 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-3451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Namit Jain reassigned HIVE-3451: -------------------------------- Assignee: Gang Tim Liu > map-reduce jobs does not work for a partition containing sub-directories > ------------------------------------------------------------------------ > > Key: HIVE-3451 > URL: https://issues.apache.org/jira/browse/HIVE-3451 > Project: Hive > Issue Type: Bug > Components: Query Processor > Reporter: Namit Jain > Assignee: Gang Tim Liu > > Consider the following test: > -- The test verifies that sub-directories are supported for versions of hadoop > -- where MAPREDUCE-1501 is fixed. So, enable this test only for hadoop 23. > -- INCLUDE_HADOOP_MAJOR_VERSIONS(0.23) > CREATE TABLE fact_daily(x int) PARTITIONED BY (ds STRING); > CREATE TABLE fact_tz(x int) PARTITIONED BY (ds STRING, hr STRING) > LOCATION 'pfile:${system:test.tmp.dir}/fact_tz'; > INSERT OVERWRITE TABLE fact_tz PARTITION (ds='1', hr='1') > SELECT key+11 FROM src WHERE key=484; > ALTER TABLE fact_daily SET TBLPROPERTIES('EXTERNAL'='TRUE'); > ALTER TABLE fact_daily ADD PARTITION (ds='1') > LOCATION 'pfile:${system:test.tmp.dir}/fact_tz/ds=1'; > set mapred.input.dir.recursive=true; > SELECT * FROM fact_daily WHERE ds='1'; > SELECT count(1) FROM fact_daily WHERE ds='1'; > Say, the above file was named: recursive_dir.q > and we ran the test for hadoop 23: > by executing: > ant test -Dhadoop.mr.rev=23 -Dtest.print.classpath=true -Dhadoop.version=2.0.0-alpha -Dhadoop.security.version=2.0.0-alpha -Dtestcase=TestCliDriver -Dqfile=recursive_dir.q > The select * from the table works fine, but the last command does not work > since it requires a map-reduce job. > This will prevent other features which are creating sub-directories to add > any tests which requires a map-reduce job. The work-around is to issue > queries which do not require map-reduce jobs. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira