wallacms opened a new issue, #11994:
URL: https://github.com/apache/iceberg/issues/11994
### Apache Iceberg version
1.7.1 (latest release)
### Query engine
None
### Please describe the bug 🐞
If I have a Maven project that declares a single dependency like this:
```
<dependency>
<groupId>org.apache.iceberg</groupId>
<artifactId>iceberg-hive-metastore</artifactId>
<version>1.7.1</version>
</dependency>
```
and I create a Java class that contains:
```
import org.apache.iceberg.hive.HiveCatalog;
public class TestHiveMetastore {
public static void main(String[] args) {
new HiveCatalog();
}
}
```
This class compiles fine, but if you try to run it, it will get a
ClassNotFoundException. This is because the iceberg-hive-metastore module
needs to depend on org.apache.hive:hive-metastore and
org.apache.hadoop:hadoop-client but these dependencies are not declared when
the module gets published to maven central (see
https://central.sonatype.com/artifact/org.apache.iceberg/iceberg-hive-metastore/dependencies).
I'm fairly sure that the root of the issue here is that libs.hive2.metastore
is declared as a compileOnly dependency. Since the libraries in hive are
actually needed at runtime by the iceberg-hive-metastore, I think it would be
more appropriate to declare this as an implementation dependency.
### Willingness to contribute
- [ ] I can contribute a fix for this bug independently
- [x] I would be willing to contribute a fix for this bug with guidance from
the Iceberg community
- [ ] I cannot contribute a fix for this bug at this time
--
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]