-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while creating Hudi format from source Iceberg table using Hive Catalog . #443
Comments
@amnchauhan can you try adding the iceberg-hive-runtime jar to your classpath? https://mvnrepository.com/artifact/org.apache.iceberg/iceberg-hive-runtime/1.4.2 |
@the-other-tim-brown after adding iceberg-hive-runtime-1.4.2.jar as 1. java -cp ./path/to/iceberg-hive-runtime-1.4.2.jar mainClass --icebergCatalogConfig icebergCatalog.yaml and 2. java -cp ./path/to/iceberg-hive-runtime-1.4.2.jar -jar xtable-utilities/target/xtable-utilities-0.1.0-SNAPSHOT-bundled.jar --icebergCatalogConfig icebergCatalog.yaml issue is still not resolved and getting same error . Also tried adding Class-Path attribute in manifest file but still same error . Please let me know if I'm missing anything. |
@amnchauhan I think I was looking at the wrong module, can you try this one instead? https://mvnrepository.com/artifact/org.apache.iceberg/iceberg-hive-metastore/1.4.2 to the classpath |
@the-other-tim-brown i have tried with iceberg-hive-metastore jar still getting the same error. |
Can you paste the stacktraces so they are easier to inspect and copy locally? The class in the screenshot looks like the one in the iceberg jars. |
@the-other-tim-brown my_hadoop_conf.yaml configured as -
icebergCatalogConfig.yaml configured as- |
@amnchauhan it looks like |
@the-other-tim-brown i have created bundled jar with by adding dependencies in pom.xml and also tried adding all dependencies in my classpath as below but still issue persist.
|
@amnchauhan I will create a sample fork this weekend that you can use, apologies for the delay |
@amnchauhan check out this branch #456 |
Hi @the-other-tim-brown thanks for your update , after testing with #456 i think there's some dependency error attaching stacktrace file for your reference. |
This isn't exactly the same. I'm using xtable to convert Hudi to Iceberg but you should able to adopt it. #459 and https://github.com/alberttwong/incubator-xtable/tree/main/demo-s3 I use |
@amnchauhan running |
hi @the-other-tim-brown i have tested and getting exactly same error attaching stacktrace file for your reference. |
@amnchauhan I am unable to reproduce this error locally. I am running the docker demo in the repo to spin up HMS and then running with the shaded jar built off of my branch. I am not sure how to trigger this |
hi @the-other-tim-brown can you please share your metastore-site.xml or hive-site.xml if possible ? |
@amnchauhan you can find the demo here: https://github.com/apache/incubator-xtable/blob/main/demo/docker-compose.yaml - I am not sure where to find the other information but it must be some defaults |
I am also facing this exact same issue, @the-other-tim-brown in the above docker-compose file, the hive metastore version seems to be 4.0.0, is there some chance that the hive metstore version could be causing some mismatch? I am using 3.1.0 |
@lordicecream or @amnchauhan do you have any details for how I can setup a local version of HMS to simulate your environments? I am not well versed in the Iceberg and Hive code so I will need to iterate a lot to try to solve this. |
@the-other-tim-brown I am using the standard apache hive metastore docker image with v 3.1.0 backed by postgres and added some certs for connecting to my S3 compatible storage. |
@the-other-tim-brown do you need any more details? Please let me know |
@lordicecream can you provide your local docker setup or some build file? Anything that can speed up setup will help. Also let me know what you have tried with respect to the packaging within your projects so I am not going down a path that has already been tried. |
HMS-setup.txt |
|
@the-other-tim-brown I am able to resolve above issue by adding following Jars into classpath as |
Thanks for the update @amnchauhan, there is another issue with querying from Trino since querying the Hudi table requires the Hudi Metadata Table (MDT) on the read side and that is not working: #460 |
Search before asking
Please describe the bug 🐞
Hi all Iam trying to convert my iceberg table which is using hive catalog to hudi format as target but I am getting below error while configuring catalog as --icebergCatalogConfig option. catalog config file is:
catalogImpl: org.apache.iceberg.hive.HiveCatalog
catalogName: prod_iceberg
catalogOptions:
uri: thrift metastore uri
warehouse: s3a://prod_iceberg/warehouse
But if i use hadoopCatalog and pass catalogImpl as org.apache.iceberg.hadoop.HadoopCatalog iam getting no such error , if there anything we need to configure for hive Catalog.
Attaching Screenshot for your reference.
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: