j1wonpark opened a new pull request, #4069:
URL: https://github.com/apache/amoro/pull/4069

   ## Why are the changes needed?
   
   When initializing a Hive Metastore-based Iceberg catalog in amoro-ams, a 
`NoClassDefFoundError: com/google/common/collect/ImmutableMap` is thrown at 
runtime.
   
   Hive 3.1.3's `HiveConf` directly references the original Guava class 
`com.google.common.collect.ImmutableMap`, but the Guava dependency in 
`amoro-ams/pom.xml` is declared with `<scope>test</scope>`, so it is excluded 
from the runtime classpath. All other Guava artifacts in the project are shaded 
(e.g., `amoro-shade-guava-32`, `iceberg-bundled-guava`, `flink-shaded-guava`) 
and do not provide classes under the original `com.google.common.*` package. 
Additionally, the Hive dependency explicitly excludes Guava via `<exclusion>`, 
preventing transitive resolution.
   
   This issue also affects the official distribution and Docker images.
   
   ## Brief change log
   
   - Removed `<scope>test</scope>` from the Guava dependency in 
`amoro-ams/pom.xml` so that it defaults to `compile` scope and is included in 
the runtime classpath.
   
   ## How was this patch tested?
   
   - [x] Run test locally before making a pull request
   - Verified that amoro-ams starts successfully and initializes a Hive 
Metastore-based Iceberg catalog without `NoClassDefFoundError`.
   
   ## Documentation
   
   - Does this pull request introduce a new feature? no
   


-- 
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