zhangdove commented on pull request #1850:
URL: https://github.com/apache/iceberg/pull/1850#issuecomment-742267085


   When creating tables and writing data using HiveCatalog, the associated 
properties need to be added to SparkSession, otherwise the Hive client read no 
data. 
   ```scala
       val spark = SparkSession
         .builder()
         .master("local[2]")
         .appName("IcebergAPI")
         .config("spark.sql.catalog.hive_prod", 
"org.apache.iceberg.spark.SparkCatalog")
         .config("spark.sql.catalog.hive_prod.type", "hive")
         .config("spark.sql.catalog.hive_prod.uri", "thrift://localhost:9083")
         .config("iceberg.engine.hive.enabled", "true")
         .enableHiveSupport()
         .getOrCreate()
   ```
   
   Close this 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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to