[ 
https://issues.apache.org/jira/browse/HIVE-17385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16147485#comment-16147485
 ] 

Tao Li edited comment on HIVE-17385 at 8/30/17 3:56 PM:
--------------------------------------------------------

[~daijy] Regarding the exception, I am sticking with the old logic, i.e. 
throwing if replicationSpec.isInReplicationScope() is false and 
tableHandle.isNonNative() is true. We do skip the non-native silently if 
replicationSpec.isInReplicationScope() is true, which is the case in our 
incremental dump scenario.

We do the null check on ImportSemanticAnalyzer because we do run into the null 
table case after making the above dump change. Also a null check is a good 
practice/convention.


was (Author: taoli-hwx):
[~daijy] Regarding the exception, I am sticking with the old logic, i.e. 
throwing if replicationSpec.isInReplicationScope() is false and 
tableHandle.isNonNative() is true. We do skip the non-native silently if 
replicationSpec.isInReplicationScope() is true.

We do the null check on ImportSemanticAnalyzer because we do run into the null 
table case after making the above dump change. Also a null check is a good 
practice/convention.

> Fix incremental repl error for non-native tables
> ------------------------------------------------
>
>                 Key: HIVE-17385
>                 URL: https://issues.apache.org/jira/browse/HIVE-17385
>             Project: Hive
>          Issue Type: Bug
>          Components: repl
>            Reporter: Tao Li
>            Assignee: Tao Li
>         Attachments: HIVE-17385.1.patch, HIVE-17385.2.patch, 
> HIVE-17385.3.patch, HIVE-17385.4.patch
>
>
> See below error with incremental replication for non-native (storage handler 
> based) tables. The bug is that we are not checking a table should be 
> dumped/exported or not during incremental dump.
> 2017-08-02T12:31:48,195 ERROR [HiveServer2-Background-Pool: Thread-8078]: 
> exec.DDLTask (DDLTask.java:failed(632)) - 
> org.apache.hadoop.hive.ql.metadata.HiveException: 
> MetaException(message:LOCATION may not be specified for HBase.)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to