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 734EB113CE for ; Tue, 16 Sep 2014 21:55:35 +0000 (UTC) Received: (qmail 15901 invoked by uid 500); 16 Sep 2014 21:55:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 15822 invoked by uid 500); 16 Sep 2014 21:55:34 -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 15806 invoked by uid 500); 16 Sep 2014 21:55:33 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 15803 invoked by uid 99); 16 Sep 2014 21:55:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2014 21:55:33 +0000 Date: Tue, 16 Sep 2014 21:55:33 +0000 (UTC) From: "Xiaobing Zhou (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-8147) Fail to LOAD DATA INTO table after ALTER TABLE..SET LOCATION 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-8147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiaobing Zhou updated HIVE-8147: -------------------------------- Description: Fail to LOAD DATA INTO table after ALTER TABLE..SET LOCATION. Repro steps: 1. hadoop fs -put table.dat /data/table.dat 2. drop table if exists hcat_altertable_16; 3. create table hcat_altertable_16(a int, b string) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' stored as textfile; 4. LOAD DATA INPATH '/data/table.dat' OVERWRITE INTO TABLE hcat_altertable_16; 5. hadoop fs -put table.dat /data/table.dat 6. hadoop fs -mkdir /tmp/table_has_moved 7. alter table hcat_altertable_16 set location 'hdfs:///tmp/table_has_moved/'; 8. LOAD DATA INPATH '/data/table.dat' OVERWRITE INTO TABLE hcat_altertable_16; Step 8 will complain: FAILED: SemanticException [Error 10028]: Line 1:17 Path is not legal ''/data/table.data'': Move from: hdfs://hh uang-clst21:8020/data/table.data to: hdfs:/tmp/table_has_moved is not valid. Please check that values for param s "default.fs.name" and "hive.metastore.warehouse.dir" do not conflict. 2014-09-16 21:37:45,020 ERROR ql.Driver (SessionState.java:printError(824)) - FAILED: SemanticException [Error 10028]: Line 1:17 Path is not legal ''/data/bug-22915'': Move from: hdfs://hhuang-clst21:8020/data/bug-22915 to: hdfs:/tmp/table_has_moved is not valid. Please check that values for params "default.fs.name" and "hive.metastore.warehouse.dir" do not conflict. org.apache.hadoop.hive.ql.parse.SemanticException: Line 1:17 Path is not legal ''/data/bug-22915'': Move from: hdfs://hhuang-clst21:8020/data/bug-22915 to: hdfs:/tmp/table_has_moved is not valid. Please check that values for params "default.fs.name" and "hive.metastore.warehouse.dir" do not conflict. at org.apache.hadoop.hive.ql.parse.LoadSemanticAnalyzer.applyConstraints(LoadSemanticAnalyzer.java:169) at org.apache.hadoop.hive.ql.parse.LoadSemanticAnalyzer.analyzeInternal(LoadSemanticAnalyzer.java:235) at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:217) at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:407) at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:303) at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1058) at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1128) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:995) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:985) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:246) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:198) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:408) at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:781) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:614) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.hadoop.util.RunJar.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) was: Fail to LOAD DATA INTO table after ALTER TABLE..SET LOCATION. Repro steps: 1. drop table if exists hcat_altertable_16; 2. create table hcat_altertable_16(a int, b string) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' stored as textfile; 3. hadoop fs -put bug-22915 /data/table.dat > Fail to LOAD DATA INTO table after ALTER TABLE..SET LOCATION > ------------------------------------------------------------ > > Key: HIVE-8147 > URL: https://issues.apache.org/jira/browse/HIVE-8147 > Project: Hive > Issue Type: Bug > Reporter: Xiaobing Zhou > Assignee: Xiaobing Zhou > Attachments: table.dat > > > Fail to LOAD DATA INTO table after ALTER TABLE..SET LOCATION. > Repro steps: > 1. hadoop fs -put table.dat /data/table.dat > 2. drop table if exists hcat_altertable_16; > 3. create table hcat_altertable_16(a int, b string) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' stored as textfile; > 4. LOAD DATA INPATH '/data/table.dat' OVERWRITE INTO TABLE hcat_altertable_16; > 5. hadoop fs -put table.dat /data/table.dat > 6. hadoop fs -mkdir /tmp/table_has_moved > 7. alter table hcat_altertable_16 set location 'hdfs:///tmp/table_has_moved/'; > 8. LOAD DATA INPATH '/data/table.dat' OVERWRITE INTO TABLE hcat_altertable_16; > Step 8 will complain: > FAILED: SemanticException [Error 10028]: Line 1:17 Path is not legal ''/data/table.data'': Move from: hdfs://hh > uang-clst21:8020/data/table.data to: hdfs:/tmp/table_has_moved is not valid. Please check that values for param > s "default.fs.name" and "hive.metastore.warehouse.dir" do not conflict. > 2014-09-16 21:37:45,020 ERROR ql.Driver (SessionState.java:printError(824)) - FAILED: SemanticException [Error 10028]: Line 1:17 Path is not legal ''/data/bug-22915'': Move from: hdfs://hhuang-clst21:8020/data/bug-22915 to: hdfs:/tmp/table_has_moved is not valid. Please check that values for params "default.fs.name" and "hive.metastore.warehouse.dir" do not conflict. > org.apache.hadoop.hive.ql.parse.SemanticException: Line 1:17 Path is not legal ''/data/bug-22915'': Move from: hdfs://hhuang-clst21:8020/data/bug-22915 to: hdfs:/tmp/table_has_moved is not valid. Please check that values for params "default.fs.name" and "hive.metastore.warehouse.dir" do not conflict. > at org.apache.hadoop.hive.ql.parse.LoadSemanticAnalyzer.applyConstraints(LoadSemanticAnalyzer.java:169) > at org.apache.hadoop.hive.ql.parse.LoadSemanticAnalyzer.analyzeInternal(LoadSemanticAnalyzer.java:235) > at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:217) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:407) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:303) > at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1058) > at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1128) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:995) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:985) > at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:246) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:198) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:408) > at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:781) > at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:675) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:614) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) -- This message was sent by Atlassian JIRA (v6.3.4#6332)