GitHub user windpiger opened a pull request: https://github.com/apache/spark/pull/16996
[SPARK-19664][SQL]put hive.metastore.warehouse.dir in hadoopconf to verwrite its original value ## What changes were proposed in this pull request? In [SPARK-15959](https://issues.apache.org/jira/browse/SPARK-15959), we bring back the `hive.metastore.warehouse.dir` , while in the logic, when use the value of `spark.sql.warehouse.dir` to overwrite `hive.metastore.warehouse.dir` , it set it to `sparkContext.conf` which does not overwrite the value is hadoopConf, I think it should put in `sparkContext.hadoopConfiguration` and overwrite the original value of hadoopConf https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/internal/SharedState.scala#L64 ## How was this patch tested? N/A You can merge this pull request into a Git repository by running: $ git pull https://github.com/windpiger/spark hivemetawarehouseConf Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/16996.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #16996 ---- commit 92c1452da5f994a96f1bf5cf90df75492e742746 Author: windpiger <song...@outlook.com> Date: 2017-02-20T05:04:17Z [SPARK-19664][SQL]put hive.metastore.warehouse.dir in hadoopconf to overwrite its original value ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org