hadonchen opened a new pull request, #5417:
URL: https://github.com/apache/hudi/pull/5417

   This pull request add <include>org.apache.hive:hive-exec</include>  to fix 
the problem that could not find Class 
org.apache.hudi.org.apache.hadoop.hive.ql.metadata.Hive
   
   When I use the profile flink-bundle-shade-hive to install Hudi to get 
hudi-flink-bundle_2.11-0.x.jar , follow  
https://hudi.apache.org/docs/syncing_metastore#flink-setup. After build the 
project , I use hive sync mode that jdbc. hms and get the 
ClassNotFoundException :
   
        java.lang.NoClassDefFoundError: 
org/apache/hudi/org/apache/hadoop/hive/ql/metadata/Hive
        at 
org.apache.hudi.hive.HoodieHiveClient.<init>(HoodieHiveClient.java:90) 
~[blob_p-0951bf12da72a889217ad35a2081c3630b972965-a3df0e22aa1074568a0afdd661880a9d:0.10.1]
        at org.apache.hudi.hive.HiveSyncTool.<init>(HiveSyncTool.java:78) 
~[blob_p-0951bf12da72a889217ad35a2081c3630b972965-a3df0e22aa1074568a0afdd661880a9d:0.10.1]
        at 
org.apache.hudi.sink.utils.HiveSyncContext.hiveSyncTool(HiveSyncContext.java:51)
 
~[blob_p-0951bf12da72a889217ad35a2081c3630b972965-a3df0e22aa1074568a0afdd661880a9d:0.10.1]
        at 
org.apache.hudi.sink.StreamWriteOperatorCoordinator.syncHive(StreamWriteOperatorCoordinator.java:302)
 
~[blob_p-0951bf12da72a889217ad35a2081c3630b972965-a3df0e22aa1074568a0afdd661880a9d:0.10.1]
        at 
org.apache.hudi.sink.utils.NonThrownExecutor.lambda$execute$0(NonThrownExecutor.java:93)
 
~[blob_p-0951bf12da72a889217ad35a2081c3630b972965-a3df0e22aa1074568a0afdd661880a9d:0.10.1]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
[?:1.8.0_144]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
[?:1.8.0_144]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_144]
   
   
   **I found 
https://github.com/apache/hudi/blob/cc3896be2a023f8819883d745178503286ac2ab1/packaging/hudi-utilities-bundle/pom.xml
 missing the <include>org.apache.hive:hive-exec</include>.**
   
   
   ## Brief change log
   
   *(for example:)*
     - *Modify AnnotationLocation checkstyle rule in checkstyle.xml*
   
   ## Verify this pull request
   
   *(Please pick either of the following options)*
   
   This pull request is a trivial rework / code cleanup without any test 
coverage.
   
   *(or)*
   
   This pull request is already covered by existing tests, such as *(please 
describe tests)*.
   
   (or)
   
   This change added tests and can be verified as follows:
   
   *(example:)*
   
     - *Added integration tests for end-to-end.*
     - *Added HoodieClientWriteTest to verify the change.*
     - *Manually verified the change by running a job locally.*
   
   ## 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]

Reply via email to