You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2017/08/06 00:33:02 UTC

[jira] [Commented] (SPARK-21637) `hive.metastore.warehouse` in --hiveconf is not respected

    [ https://issues.apache.org/jira/browse/SPARK-21637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16115558#comment-16115558 ] 

Xiao Li commented on SPARK-21637:
---------------------------------

https://github.com/apache/spark/pull/18668

> `hive.metastore.warehouse` in --hiveconf is not respected
> ---------------------------------------------------------
>
>                 Key: SPARK-21637
>                 URL: https://issues.apache.org/jira/browse/SPARK-21637
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Kent Yao
>            Priority: Minor
>
> In CliSuite `hive.metastore.warehouse`  at line https://github.com/apache/spark/blob/master/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala#L92 since this commit:https://github.com/apache/spark/commit/8f33731e796750e6f60dc9e2fc33a94d29d198b4 . 
> ` bin/spark-sql --master local --hiveconf hive.metastore.warehouse.dir=/some/dir` will not take affect, because now we respect this property in hadoopconf only but in SparkSQLCliDriver, but we do not add --hiveconf s to hadoopconf.
> {code:java}
> 17/08/04 15:46:53 INFO HiveClientImpl: Warehouse location for Hive client (version 1.2.1) is file:/home/hadoop/hzyaoqin/spark-2.2.0-bin-hadoop2.7/spark-warehouse
> spark-sql> set hive.metastore.warehouse.dir;
> 17/08/04 15:46:57 INFO SparkSqlParser: Parsing command: set hive.metastore.warehouse.dir
> 17/08/04 15:47:00 INFO CodeGenerator: Code generated in 166.354926 ms
> hive.metastore.warehouse.dir	/some/dir
> Time taken: 2.154 seconds, Fetched 1 row(s)
> 17/08/04 15:47:00 INFO CliDriver: Time taken: 2.154 seconds, Fetched 1 row(s)
> spark-sql> set spark.sql.warehouse.dir;
> 17/08/04 15:47:13 INFO SparkSqlParser: Parsing command: set spark.sql.warehouse.dir
> spark.sql.warehouse.dir	file:/home/hadoop/hzyaoqin/spark-2.2.0-bin-hadoop2.7/spark-warehouse
> Time taken: 0.024 seconds, Fetched 1 row(s)
> 17/08/04 15:47:13 INFO CliDriver: Time taken: 0.024 seconds, Fetched 1 row(s) 
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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