Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3FC57200B43 for ; Tue, 19 Jul 2016 16:56:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3E7D9160A8B; Tue, 19 Jul 2016 14:56:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 85D9C160A5C for ; Tue, 19 Jul 2016 16:56:21 +0200 (CEST) Received: (qmail 20565 invoked by uid 500); 19 Jul 2016 14:56:20 -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 20545 invoked by uid 99); 19 Jul 2016 14:56:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jul 2016 14:56:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6B4ED2C0059 for ; Tue, 19 Jul 2016 14:56:20 +0000 (UTC) Date: Tue, 19 Jul 2016 14:56:20 +0000 (UTC) From: "Frank Luo (JIRA)" To: dev@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-14280) tez insert fails when union all the table itself MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 19 Jul 2016 14:56:22 -0000 Frank Luo created HIVE-14280: -------------------------------- Summary: tez insert fails when union all the table itself Key: HIVE-14280 URL: https://issues.apache.org/jira/browse/HIVE-14280 Project: Hive Issue Type: Bug Components: Tez Affects Versions: 1.2.1 Environment: hdp 2.3.4.7 on red hat 6 Reporter: Frank Luo It is very common in Hive world to "append" data to a table by inserting some data, and do a "union all" with the same table. However the query works in M/R but not tez. Here is a sample to recreate the issue: CREATE TABLE tmp_table ( grp STRING, size INT ); insert into table tmp_table values ('a',1); --this query will fail insert overwrite table tmp_table select * from tmp_table a union all select * from tmp_table b; Here is the error: ERROR : Failed with exception checkPaths: hdfs://nameservice1/apps/hive/warehouse/jluo.db/tmp_table/.hive-staging_hive_2016-07-19_10-48-15_971_8813032872646179391-4161/-ext-10000 has nested directory hdfs://nameservice1/apps/hive/warehouse/jluo.db/tmp_table/.hive-staging_hive_2016-07-19_10-48-15_971_8813032872646179391-4161/-ext-10000/1 org.apache.hadoop.hive.ql.metadata.HiveException: checkPaths: hdfs://nameservice1/apps/hive/warehouse/jluo.db/tmp_table/.hive-staging_hive_2016-07-19_10-48-15_971_8813032872646179391-4161/-ext-10000 has nested directory hdfs://nameservice1/apps/hive/warehouse/jluo.db/tmp_table/.hive-staging_hive_2016-07-19_10-48-15_971_8813032872646179391-4161/-ext-10000/1 at org.apache.hadoop.hive.ql.metadata.Hive.checkPaths(Hive.java:2491) at org.apache.hadoop.hive.ql.metadata.Hive.replaceFiles(Hive.java:2905) at org.apache.hadoop.hive.ql.metadata.Hive.loadTable(Hive.java:1659) at org.apache.hadoop.hive.ql.exec.MoveTask.execute(MoveTask.java:298) at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160) -- This message was sent by Atlassian JIRA (v6.3.4#6332)