kevinjqliu commented on issue #12878:
URL: https://github.com/apache/iceberg/issues/12878#issuecomment-3084883100

   I spent some time trying to get hive 4.0.1 working with spark 3.5.6 and 
iceberg 1.9, heres what I found.
   
   Officially [spark 
3.5.6](https://spark.apache.org/docs/3.5.6/sql-data-sources-hive-tables.html#interacting-with-different-versions-of-hive-metastore)
 only supports "Version of the Hive metastore. Available options are 0.12.0 
through 2.3.9 and 3.0.0 through 3.1.3."
   And [spark 
4.0.1](https://spark.apache.org/docs/4.0.0/sql-data-sources-hive-tables.html#interacting-with-different-versions-of-hive-metastore)
 supports "Version of the Hive metastore. Available options are 2.0.0 through 
2.3.10, 3.0.0 through 3.1.3, and 4.0.0 through 4.0.1.    "
   
   I tried to override the spark hive jars by setting 
`spark.sql.hive.metastore.jars` to point to the downloaded 4.0.1 hive jars. 
   But it seems like hive 4.x made a backwards incompatible change for 
`HiveConf.ConfVars.METASTOREURIS` used by [iceberg's 
HiveCatalog](https://github.com/apache/iceberg/blob/41c0b17a20c522e4df519bcc429f413e6a2855e5/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveCatalog.java#L107).
 It was [`HiveConf.ConfVars.METASTOREURIS` in hive 
3.1.3](https://github.com/apache/hive/blob/rel/release-3.1.3/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java#L218)
 but now [`HiveConf.ConfVars.METASTORE_URIS` in hive 
4.0.0](https://github.com/apache/hive/blob/rel/release-4.0.0/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java#L270).
   
   So i think the only way forward is to change the HiveCatalog implementation
   
   


-- 
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: issues-unsubscr...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to