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 2019/09/03 07:26:12 UTC

[GitHub] [incubator-iceberg] waterlx commented on a change in pull request #440: Add guide about how to set hive.metastore.warehouse.dir

waterlx commented on a change in pull request #440: Add guide about how to set hive.metastore.warehouse.dir
URL: https://github.com/apache/incubator-iceberg/pull/440#discussion_r320124302
 
 

 ##########
 File path: site/docs/api-quickstart.md
 ##########
 @@ -11,6 +11,9 @@ The Hive catalog connects to a Hive MetaStore to keep track of Iceberg tables. T
 ```scala
 import org.apache.iceberg.hive.HiveCatalog
 
+// Set Hive warehouse location here to make it available to Spark
+spark.conf.set("hive.metastore.warehouse.dir", "s3://bucket/path/to/warehouse")
 
 Review comment:
   Jerry, thanks very much for your review and comment!
   It seems not work if setting it in hive-site.xml and putting hive-site.xml in Spark conf dir. I currently have no idea about the reason, but it seems have something to do with that SparkContext#hadoopConfiguration() does not take hive-site.xml into account, while it only cares the followings:
   - core-default.xml
   - core-site.xml
   - mapred-default.xml
   - mapred-site.xml
   - yarn-default.xml
   - yarn-site.xml
   - hdfs-default.xml
   - hdfs-site.xml
   
   if I get it correctly.

----------------------------------------------------------------
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


With regards,
Apache Git Services

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