You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/11/11 03:14:52 UTC

[GitHub] [flink-table-store] LadyForest commented on pull request #373: [FLINK-29983] Fix Table Store with Hive3 lacking hive-standalone-metastore dependency

LadyForest commented on PR #373:
URL: https://github.com/apache/flink-table-store/pull/373#issuecomment-1311178286

   > Where is the problem? In Flink? Or in Hive?
   
   For all use case where `HiveCatalog` engaged
   
   1. `HiveCatalog` depends on `org.apache.hadoop.hive.metastore.api` 
   ![image](https://user-images.githubusercontent.com/55568005/201254634-f3ca1bac-05ee-41b0-877c-c1683e6b66a9.png)
   
   2. During the shading phase, all the package pattern `org.apache.hadoop.hive` is shaded as `org.apache.flink.table.store.shaded.org.apache.hadoop.hive`
   ![image](https://user-images.githubusercontent.com/55568005/201254755-4865da6e-848f-4bd6-85bd-1546b6c5dd9e.png)
   
   Well for `org.apache.hadoop.hive.metastore.api`, they exists in `org.apache.hive:hive-metastore` for Hive2, but is moved to `org.apache.hive:hive-standalone-mteastore` for Hive3.
   
   This will cause `NoClassDefFoundError` for  `org.apache.flink.table.store.shaded.org.apache.hadoop.hive.metastore.api.XXX`
   
   Attach the stacktrace
   ![image](https://user-images.githubusercontent.com/55568005/201255089-09f0c778-c3e4-4276-a633-066b1c4026f0.png)
   


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org