xiaozhch5 opened a new pull request #4870: URL: https://github.com/apache/hudi/pull/4870
## *Tips* - *Thank you very much for contributing to Apache Hudi.* - *Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.* ## What is the purpose of the pull request Solve the problem of "Caused by: java.lang.ClassNotFoundException: org.apache.hudi.org.apache.hadoop.hive.metastore.api.NoSuchObjectException " in hive 3. ## Brief change log add dependency ```xml <dependency> <groupId>org.apache.hive</groupId> <artifactId>hive-standalone-metastore</artifactId> <version>${hive.version}</version> <scope>${flink.bundle.hive.scope}</scope> </dependency> ``` to hudi-flink-bundle module ## Verify this pull request *(Please pick either of the following options)* This pull request is already covered by existing tests, such as *(please describe tests)*. I compile the source code of hudi with hive 3, and succeed in synchronizing the data to hive; The test tutorial: ```sql CREATE TABLE sourceT ( uuid varchar(20), name varchar(10), age int, ts timestamp(3), `partition` varchar(20) ) WITH ( 'connector' = 'datagen', 'rows-per-second' = '1' ); create table t2( uuid varchar(20), name varchar(10), age int, ts timestamp(3), `partition` varchar(20) ) with ( 'connector' = 'hudi', 'path' = 'hdfs://host146:8020/hudi/t4', -- $HUDI_DEMO 替换成的绝对路径 'table.type' = 'MERGE_ON_READ', 'write.bucket_assign.tasks' = '2', 'write.tasks' = '2', 'hive_sync.enable' = 'true', 'hive_sync.mode' = 'hms', 'hive_sync.metastore.uris' = 'thrift://host145:9083' -- ip 替换成 HMS 的地址 ); insert into t2 select * from sourceT; ``` Test result:  ## Committer checklist - [ ] Has a corresponding JIRA in PR title & commit - [✔ ] Commit message is descriptive of the change - [ ] CI is green - [ ] Necessary doc changes done or have another open PR - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. -- 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]
