Open anthonysgro opened 2 months ago
ended up fixing this by just resetting the config right before reading from the table:
sparkSession.sparkContext.setConf(s"spark.sql.catalog.${CATALOG}.http-client.type", "apache")
still weird, not sure why it would do this. Might be a spark issue.
@anthonysgro which Iceberg / AWS dependencies are you using? For 1.5.0 you should only need spark-sql --packages org.apache.iceberg:iceberg-spark-runtime-3.4_2.12:1.5.0,org.apache.iceberg:iceberg-aws-bundle:1.5.0
Apache Iceberg version
1.5.0
Query engine
Spark
Please describe the bug 🐞
Receiving this stack trace when reading from cross-account iceberg glue table:
My SparkSession configuration:
Happens after I run a simple read:
Really not sure why this is happening. The only thing I can think of is that I am using two Spark Sessions (though I am using the one I provided specifically to read from the cross-account table). This works with another entrypoint in my Spark project, so I can only assume there is something weird going on with Iceberg.
I saw https://github.com/apache/iceberg/blob/main/aws/src/main/java/org/apache/iceberg/aws/AwsClientFactories.java#L166 that the only way I can be requesting the URLConnectionHttpClient is if
clientType === HttpClientProperties.CLIENT_TYPE_URLCONNECTION
, but I have explicitly set it to "apache" in my config.Additionally, I tried adding the UrlConnectionHttpClient and just dealing with it, but that leads to other NoMethodFound issues so I am back to square one.
Willingness to contribute