Closed ambaricloud closed 4 months ago
Hi @ambaricloud
You are missing AWS jars
Missing org.apache.iceberg.aws.glue.GlueCatalog [java.lang.ClassNotFoundException: org.apache.iceberg.aws.glue.GlueCatalog]
Can you add iceberg-aws-x.x.x.jar and a compatible bundle-x.x.x.jar and sync again? Here's the article I wrote in the past which does a similar thing https://medium.com/@sagarlakshmipathy/using-onetable-to-translate-a-hudi-table-to-iceberg-format-and-sync-with-glue-catalog-8c3071f08877
Look at this comment for links of the jars: https://github.com/apache/incubator-xtable/issues/473#issuecomment-2181142552
@ambaricloud - Let us know if this has helped resolve the issue.
Thank you. Now I can convert Glue Iceberg to Delta.
couple of comments.
java -cp "utilities-0.1.0-beta1-bundled.jar:iceberg-aws-1.3.1.jar:bundle-2.23.9.jar" io.onetable.utilities.RunSync --datasetConfig ice_to_delta_orders_config.yaml --icebergCatalogConfig ice_to_delta_orders_catalog.yam
Regards,
"This email is completely written by a human (Satya Kondapalli)" Satya Kondapalli
Cell: 630-340-9704* | @.** | ambaricloud.com http://ambaricloud.com * YouTube: @.***/videos
On Wed, Jul 10, 2024 at 12:19 PM Sagar Lakshmipathy < @.***> wrote:
Hi @ambaricloud https://github.com/ambaricloud
You are missing AWS jars
Missing org.apache.iceberg.aws.glue.GlueCatalog [java.lang.ClassNotFoundException: org.apache.iceberg.aws.glue.GlueCatalog]
Can you add iceberg-aws-x.x.x.jar and a compatible bundle-x.x.x.jar and sync again? Here's the article I wrote in the past which does a similar thing @.***/using-onetable-to-translate-a-hudi-table-to-iceberg-format-and-sync-with-glue-catalog-8c3071f08877
Look at this comment for links of the jars: #473 (comment) https://github.com/apache/incubator-xtable/issues/473#issuecomment-2181142552
— Reply to this email directly, view it on GitHub https://github.com/apache/incubator-xtable/issues/488#issuecomment-2221062642, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASKQRFN44IWDMIKG6D623W3ZLVUINAVCNFSM6AAAAABKVJ3762VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRRGA3DENRUGI . You are receiving this because you were mentioned.Message ID: @.***>
Now, I am able to test incremental conversion too. Thank you.
Now, I am able to test incremental conversion too. Thank you.
Nice! Thanks for confirming.
Search before asking
Please describe the bug 🐞
Created glue table from spark
spark = SparkSession.builder \ .config('spark.jars.packages', 'org.apache.hadoop:hadoop-aws:3.3.4,org.apache.iceberg:iceberg-spark-runtime-3.3_2.12:1.4.3,software.amazon.awssdk:bundle:2.17.178,software.amazon.awssdk:url-connection-client:2.17.178')\ .config("spark.sql.extensions", "org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions") \ .config( "spark.sql.catalog.glue","org.apache.iceberg.spark.SparkCatalog") \ .config( "spark.sql.catalog.glue.warehouse",warehouse_path) \ .config( "spark.sql.catalog.glue.catalog-impl","org.apache.iceberg.aws.glue.GlueCatalog") \ .config( "spark.sql.catalog.glue.io-impl","org.apache.iceberg.aws.s3.S3FileIO") \ .getOrCreate()
spark.sql("CREATE TABLE glue.prod.orders \ (order_id BIGINT, customer_id BIGINT, order_amount DECIMAL(10, 2), Order_hr int) \ ") %%sparksql insert into glue.prod.orders values(1171,2,100.00,19)
cat glue_catalog.yaml catalogImpl: org.apache.iceberg.aws.glue.GlueCatalog catalogName: onetable catalogOptions: io-impl: org.apache.iceberg.aws.s3.S3FileIO warehouse: s3://<>/prod.db/orders
--Conversion java -jar /Users/satyak/iceberg/demo/xtable/xtable-utilities-0.1.0-SNAPSHOT-bundled.jar --datasetConfig /Users/satyak/iceberg/youtube/iceberg_test_cases/s3_orders_ice_delta.yaml --icebergCatalogConfig /Users/satyak/iceberg/youtube/iceberg_test_cases/glue_catalog.yaml
Are you willing to submit PR?
Code of Conduct