You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2020/12/10 06:15:36 UTC

[GitHub] [iceberg] zhangdove commented on pull request #1850: Hive: fix hiveCatalog create/write table and hive client read no data

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:
users@infra.apache.org



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