monkeyboy123 opened a new issue, #2407: URL: https://github.com/apache/incubator-paimon/issues/2407
### Search before asking - [X] I searched in the [issues](https://github.com/apache/incubator-paimon/issues) and found nothing similar. ### Motivation In Spark, when we set metastore to hive, code like blow: ``` spark-sql --jars /root/ljh/paimon-spark-3.3-0.6-20231122.093342-69.jar,/root/ljh/paimon-oss-0.6-20231122.093342-76.jar \ --conf spark.sql.catalog.paimon=org.apache.paimon.spark.SparkCatalog \ --conf spark.sql.extensions=org.apache.paimon.spark.extensions.PaimonSparkSessionExtensions \ --verbose \ --conf spark.sql.catalog.paimon.metastore=hive \ --conf spark.sql.catalog.paimon.warehouse=xxx \ --conf spark.sql.catalog.paimon.uri=xxx \ --conf spark.sql.catalog.paimon.fs.oss.endpoint=xxx \ ``` We must set spark.sql.catalog.paimon.warehouse=xxx, but in hive catalog we do not need warehouse, it make confused. But if warehouse not been set, Error: Paimon warehouse path must be set' will be thrown. ### Solution We need warehouse, because we need FileIO accordingly. So we can just get warehouse from hive metastore, so we can get FileIO accordingly,such as OSSFileIO,S3FileIO. ### Anything else? _No response_ ### Are you willing to submit a PR? - [X] I'm willing to submit a PR! -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
