hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sankar Hariappan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-21679) Replicating a CTAS event creating an MM table fails.
Date Tue, 07 May 2019 19:21:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-21679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sankar Hariappan updated HIVE-21679:
------------------------------------
    Attachment: HIVE-21679.02.patch

> Replicating a CTAS event creating an MM table fails.
> ----------------------------------------------------
>
>                 Key: HIVE-21679
>                 URL: https://issues.apache.org/jira/browse/HIVE-21679
>             Project: Hive
>          Issue Type: Sub-task
>          Components: HiveServer2, repl
>    Affects Versions: 4.0.0
>            Reporter: Ashutosh Bapat
>            Assignee: Sankar Hariappan
>            Priority: Major
>              Labels: CTAS, pull-request-available
>         Attachments: HIVE-21679.01.patch, HIVE-21679.02.patch
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> use dumpdb;
> create table t1 (a int, b int);
> insert into t1 values (1, 2), (3, 4);
> create table t6_mm_part partitioned by (a) stored as orc tblproperties ("transactional"="true",
"transactional_properties"="insert_only") as select * from t1
> create table t6_mm stored as orc tblproperties ("transactional"="true", "transactional_properties"="insert_only")
as select * from t1;
> repl dump dumpdb;
> create table t6_mm_part_2 partitioned by (a) stored as orc tblproperties ("transactional"="true",
"transactional_properties"="insert_only") as select * from t1;
> create table t6_mm_2 partitioned by (a) stored as orc tblproperties ("transactional"="true",
"transactional_properties"="insert_only") as select * from t1;
> repl dump dumpdb from <last repl id>
> repl load loaddb from '/tmp/dump/next';
> {code}
> ERROR : failed replication
> org.apache.hadoop.hive.ql.parse.SemanticException: Invalid table name loaddb.dumpdb.t6_mm_part_2
>  at org.apache.hadoop.hive.ql.exec.Utilities.getDbTableName(Utilities.java:2253) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.exec.Utilities.getDbTableName(Utilities.java:2239) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.plan.AlterTableDesc.setOldName(AlterTableDesc.java:419)
~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.exec.repl.incremental.IncrementalLoadTasksBuilder.tableUpdateReplStateTask(IncrementalLoadTasksBuilder.java:286)
~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.exec.repl.incremental.IncrementalLoadTasksBuilder.addUpdateReplStateTasks(IncrementalLoadTasksBuilder.java:371)
~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.exec.repl.incremental.IncrementalLoadTasksBuilder.analyzeEventLoad(IncrementalLoadTasksBuilder.java:244)
~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.exec.repl.incremental.IncrementalLoadTasksBuilder.build(IncrementalLoadTasksBuilder.java:139)
~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.exec.repl.ReplLoadTask.executeIncrementalLoad(ReplLoadTask.java:488)
~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.exec.repl.ReplLoadTask.execute(ReplLoadTask.java:102) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:212) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:97) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2709) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:2361) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:2028) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1788) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1782) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:162) ~[hive-exec-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:233)
~[hive-service-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hive.service.cli.operation.SQLOperation.access$600(SQLOperation.java:88)
~[hive-service-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork$1.run(SQLOperation.java:332)
~[hive-service-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_191]
>  at javax.security.auth.Subject.doAs(Subject.java:422) ~[?:1.8.0_191]
>  at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1688)
~[hadoop-common-3.1.0.3.0.0.0-1634.jar:?]
>  at org.apache.hive.service.cli.operation.SQLOperation$BackgroundWork.run(SQLOperation.java:350)
~[hive-service-4.0.0-SNAPSHOT.jar:4.0.0-SNAPSHOT]
>  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_191]
>  at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_191]
>  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_191]
>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_191]
>  at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
> ERROR : FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.repl.ReplLoadTask.
Invalid table name loaddb.dumpdb.t6_mm_part_2
> Error: Error while processing statement: FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.repl.ReplLoadTask. Invalid table name loaddb.dumpdb.t6_mm_part_2
(state=42000,code=1)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message