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

Di Wang edited comment on HUDI-2649 at 11/1/21, 3:20 AM:
---------------------------------------------------------

hive version:2.1.1

hadoop version:3.0.0

hudi version:master(0.10.0)

hudi-hive-sync is not compatible withhive-2.1.1. Like "get_table_req" method, 
Hive-2.1.1 has no support.

Exception log is below:
  
 Caused by: org.apache.hudi.hive.HoodieHiveSyncException: Failed to check if 
table exists wd_mor_part_ro
     at 
org.apache.hudi.hive.HoodieHiveClient.doesTableExist(HoodieHiveClient.java:214) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
     at 
org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:167) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
     at org.apache.hudi.hive.HiveSyncTool.doSync(HiveSyncTool.java:135) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
     at 
org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:117) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
     ... 5 more
 Caused by: org.apache.thrift.TApplicationException: Invalid method name: 
'get_table_req'
     at 
org.apache.thrift.TApplicationException.read(TApplicationException.java:111) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
     at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
     at 
org.apache.hudi.org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_get_table_req(ThriftHiveMetastore.java:1563)
 ~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
     at 
org.apache.hudi.org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.get_table_req(ThriftHiveMetastore.java:1550)
 ~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
     at 
org.apache.hudi.org.apache.hadoop.hive.metastore.HiveMetaStoreClient.tableExists(HiveMetaStoreClient.java:1443)
 ~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
     at 
org.apache.hudi.org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.tableExists(SessionHiveMetaStoreClient.java:266)
 ~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
  
  
After revising hive.version from 2.3.1 to 2.1.1 in pom.xml,I found some methods 
as getPathToAliases,or classes like StringInternUtils, etc,which 
Hive-exec:2.1.1 cannot support also.
  


was (Author: kinger0610):
hive版本:2.1.1

hadoop版本:3.0.0

hudi版本:master(0.10.0)

hudi-hive-sync不兼容hive-2.1.1。像get_table_req方法,Hive-2.1.1并不支持

报错如下
 
Caused by: org.apache.hudi.hive.HoodieHiveSyncException: Failed to check if 
table exists wd_mor_part_ro
    at 
org.apache.hudi.hive.HoodieHiveClient.doesTableExist(HoodieHiveClient.java:214) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
    at org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:167) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
    at org.apache.hudi.hive.HiveSyncTool.doSync(HiveSyncTool.java:135) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
    at org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:117) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
    ... 5 more
Caused by: org.apache.thrift.TApplicationException: Invalid method name: 
'get_table_req'
    at 
org.apache.thrift.TApplicationException.read(TApplicationException.java:111) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
    at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79) 
~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
    at 
org.apache.hudi.org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_get_table_req(ThriftHiveMetastore.java:1563)
 ~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
    at 
org.apache.hudi.org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.get_table_req(ThriftHiveMetastore.java:1550)
 ~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
    at 
org.apache.hudi.org.apache.hadoop.hive.metastore.HiveMetaStoreClient.tableExists(HiveMetaStoreClient.java:1443)
 ~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
    at 
org.apache.hudi.org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient.tableExists(SessionHiveMetaStoreClient.java:266)
 ~[hudi-flink-bundle_2.11-0.10.0-SNAPSHOT.jar:0.10.0-SNAPSHOT]
 
 
对pom文件的hive.version从2.3.1改为2.1.1,发现一些方法如getPathToAliases,或者类StringInternUtils等,Hive-exec:2.1.1并不支持。
 

> Kick off all the Hive query issues for 0.10.0
> ---------------------------------------------
>
>                 Key: HUDI-2649
>                 URL: https://issues.apache.org/jira/browse/HUDI-2649
>             Project: Apache Hudi
>          Issue Type: Improvement
>          Components: Flink Integration
>            Reporter: Danny Chen
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to