miaozi2008 opened a new issue, #18781: URL: https://github.com/apache/doris/issues/18781
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no similar issues. ### Version apache-doris-fe-1.2.2 apache-doris-be-1.2.2 ### What's Wrong? CREATE CATALOG hive。在hive创建表,相关元数据不能自动同步到doris中。 CREATE RESOURCE hms_resource PROPERTIES ( 'type'='hms', 'hive.metastore.uris' = 'thrift://xxx:9083,thrift://xxx:9083,thrift://xxx:9083', 'hive.version' = '3.1.2', 'hadoop.username' = 'hadoop', 'dfs.nameservices'='hadoopcluster', 'dfs.ha.namenodes.hadoopcluster'='nn1,nn2', 'dfs.namenode.rpc-address.hadoopcluster.nn1'='xxx:8082', 'dfs.namenode.rpc-address.hadoopcluster.nn2'='xxx:8082', 'dfs.client.failover.proxy.provider.hadoopcluster'='org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider', 'dfs.encryption.key.provider.uri' = 'kms://http@xxx:9292/kms' ); CREATE CATALOG hive WITH RESOURCE hms_resource; 在hive中创建表:create table test99(id int,name string); doris fe 日志: 023-04-18 17:10:03,051 INFO (Thread-80|127) [ReportHandler.taskReport():376] finished to handle task report from backend 10003, diff task num: 0. cost: 0 ms 2023-04-18 17:10:03,052 INFO (thrift-server-pool-1|195) [ReportHandler.handleReport():179] receive report from be 10003. type: TASK, current queue size: 1 2023-04-18 17:10:07,156 WARN (org.apache.doris.datasource.hive.event.MetastoreEventsProcessor|22) [PooledHiveMetaStoreClient.getNextNotification():170] Failed to get next notification based on last event id 0 java.lang.IllegalStateException: Notification events are missing in the meta store. at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.getNextNotification(HiveMetaStoreClient.java:2947) ~[doris-fe.jar:3.1.3] at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_291] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_291] at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:208) ~[hive-standalone-metastore-3.1.3.jar:3.1.3] at com.sun.proxy.$Proxy35.getNextNotification(Unknown Source) ~[?:?] at org.apache.doris.datasource.hive.PooledHiveMetaStoreClient.getNextNotification(PooledHiveMetaStoreClient.java:168) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.datasource.HMSExternalCatalog.getNextEventResponse(HMSExternalCatalog.java:194) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.datasource.hive.event.MetastoreEventsProcessor.getNextHMSEvents(MetastoreEventsProcessor.java:80) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.datasource.hive.event.MetastoreEventsProcessor.realRun(MetastoreEventsProcessor.java:132) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.datasource.hive.event.MetastoreEventsProcessor.runAfterCatalogReady(MetastoreEventsProcessor.java:117) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.common.util.MasterDaemon.runOneCycle(MasterDaemon.java:58) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.common.util.Daemon.run(Daemon.java:116) ~[doris-fe.jar:1.2-SNAPSHOT] 2023-04-18 17:10:07,159 WARN (org.apache.doris.datasource.hive.event.MetastoreEventsProcessor|22) [MetastoreEventsProcessor.realRun():139] Failed to fetch hms events on hive. msg: org.apache.doris.datasource.hive.event.MetastoreNotificationFetchException: Failed to get next notification based on last event id: 0. msg: Notification events are missing in the meta store. at org.apache.doris.datasource.hive.PooledHiveMetaStoreClient.getNextNotification(PooledHiveMetaStoreClient.java:173) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.datasource.HMSExternalCatalog.getNextEventResponse(HMSExternalCatalog.java:194) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.datasource.hive.event.MetastoreEventsProcessor.getNextHMSEvents(MetastoreEventsProcessor.java:80) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.datasource.hive.event.MetastoreEventsProcessor.realRun(MetastoreEventsProcessor.java:132) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.datasource.hive.event.MetastoreEventsProcessor.runAfterCatalogReady(MetastoreEventsProcessor.java:117) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.common.util.MasterDaemon.runOneCycle(MasterDaemon.java:58) ~[doris-fe.jar:1.2-SNAPSHOT] at org.apache.doris.common.util.Daemon.run(Daemon.java:116) ~[doris-fe.jar:1.2-SNAPSHOT] 2023-04-18 17:10:12,792 INFO (tablet checker|30) [TabletChecker.checkTablets():331] finished to check tablets. unhealth/total/added/in_sched/not_ready: 0/22/0/0/0, cost: 0 ms 2023-04-18 17:10:16,052 INFO (Thread-80|127) [ReportHandler.taskReport():376] finished to handle task report from backend 10003, diff task num: 0. cost: 0 ms 2023-04-18 17:10:16,052 INFO (thrift-server-pool-1|195) [ReportHandler.handleReport():179] receive report from be 10003. type: TASK, current queue size: 1 ### What You Expected? 在hive中创建表,相关元数据可以自动同步到doris ### How to Reproduce? _No response_ ### Anything Else? _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
