rahul-ghiware commented on issue #409:
URL: 
https://github.com/apache/incubator-xtable/issues/409#issuecomment-2037750496

   > @rahul-ghiware - Can you try setting this 
`'spark.sql.catalog.test_catalog.io-impl', 
'org.apache.iceberg.aws.s3.S3FileIO'`. Since you are using a Hadoop catalog 
with Iceberg & reading/writing data in a S3/cloud storage, it could be looking 
for that class.
   
   Adding above mentioned setting did not help. Still getting same exception.
   Latest Java spark code
   ```
   SparkSession.Builder sessionBuilder = 
sessionBuilder.config("spark.hadoop.fs.s3a.endpoint", 
"s3.us-east-1.amazonaws.com");
   sessionBuilder = sessionBuilder.config("spark.hadoop.fs.s3a.impl", 
"org.apache.hadoop.fs.s3a.S3AFileSystem");
   SparkSession spark = sessionBuilder.appName("test iceberg read")
                   .config("spark.sql.extensions", 
"org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions")
                   .config("spark.sql.catalog.spark_catalog", 
"org.apache.iceberg.spark.SparkSessionCatalog")
                   .config("spark.sql.catalog.spark_catalog.type", "hive")
                   .config("spark.sql.catalog.test_iceberg", 
"org.apache.iceberg.spark.SparkCatalog")
                   .config("spark.sql.catalog.test_iceberg.type","hadoop")
                   .config("spark.sql.defaultCatalog","test_iceberg")
                   .config("spark.sql.catalog.test_catalog.io-impl", 
"org.apache.iceberg.aws.s3.S3FileIO")
                   
.config("spark.sql.catalog.test_iceberg.warehouse","s3a://mq-de-qa/TEST_DATA/hudi-warehouse/").getOrCreate();
   Dataset<Row> dataFrame = spark.read().format("iceberg").load("people");
   dataFrame.printSchema();
   dataFrame.show(false);
   ```


-- 
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: commits-unsubscr...@xtable.apache.org

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

Reply via email to