You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Ethan Guo (Jira)" <ji...@apache.org> on 2022/06/08 05:58:00 UTC

[jira] [Updated] (HUDI-4118) flink write hudi sync hive .If the Hive table already exists, write to create automatically will throw an exception

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

Ethan Guo updated HUDI-4118:
----------------------------
    Fix Version/s: 0.12.0
                       (was: 0.11.1)

> flink write hudi sync hive .If the Hive table already exists, write to create automatically will throw an exception
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: HUDI-4118
>                 URL: https://issues.apache.org/jira/browse/HUDI-4118
>             Project: Apache Hudi
>          Issue Type: Bug
>    Affects Versions: 0.10.1
>            Reporter: gaogao
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 0.12.0
>
>
> flink write hudi sync hive 
> If the Hive table already exists, write to create automatically will throw an exception :
> but The program runs normally
> {code:java}
> 2022-04-21 14:03:12,628 INFO  org.apache.hudi.org.apache.hadoop.hive.metastore.HiveMetaStoreClient [] - Closed a connection to metastore, current connections: 0
> 2022-04-21 14:03:12,628 ERROR org.apache.hudi.sink.StreamWriteOperatorCoordinator          [] - Executor executes action [sync hive metadata for instant 20220421140236703] error
> java.lang.NoSuchMethodError: org.apache.hadoop.hive.serde2.thrift.Type.getType(Lorg/apache/hudi/org/apache/hive/service/rpc/thrift/TTypeId;)Lorg/apache/hadoop/hive/serde2/thrift/Type;
> 	at org.apache.hudi.org.apache.hive.service.cli.TypeDescriptor.(TypeDescriptor.java:47) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.org.apache.hive.service.cli.ColumnDescriptor.(ColumnDescriptor.java:46) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.org.apache.hive.service.cli.TableSchema.(TableSchema.java:46) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.org.apache.hive.jdbc.HiveQueryResultSet.retrieveSchema(HiveQueryResultSet.java:264) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.org.apache.hive.jdbc.HiveQueryResultSet.(HiveQueryResultSet.java:198) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.org.apache.hive.jdbc.HiveQueryResultSet$Builder.build(HiveQueryResultSet.java:179) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.org.apache.hive.jdbc.HiveDatabaseMetaData.getColumns(HiveDatabaseMetaData.java:278) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.hive.ddl.JDBCExecutor.getTableSchema(JDBCExecutor.java:129) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.hive.HoodieHiveClient.getTableSchema(HoodieHiveClient.java:225) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.hive.HiveSyncTool.syncSchema(HiveSyncTool.java:248) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:184) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.hive.HiveSyncTool.doSync(HiveSyncTool.java:129) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.hive.HiveSyncTool.syncHoodieTable(HiveSyncTool.java:115) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.sink.StreamWriteOperatorCoordinator.syncHive(StreamWriteOperatorCoordinator.java:302) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at org.apache.hudi.sink.utils.NonThrownExecutor.lambda$execute$0(NonThrownExecutor.java:93) ~[hudi-flink-bundle_2.11-0.10.1.jar:0.10.1]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_202]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_202]
> 	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
> 2022-04-21 14:03:12,629 INFO  org.apache.hudi.client.AbstractHoodieClient                  [] - Stopping Timeline service !!
> 2022-04-21 14:03:12,629 INFO  org.apache.hudi.client.embedded.EmbeddedTimelineService      [] - Closing Timeline server
> 2022-04-21 14:03:12,630 INFO  org.apache.hudi.timeline.service.TimelineService             [] - Closing Timeline Service {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)