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 2016/05/14 04:19:12 UTC

[jira] [Created] (SPARK-15320) Spark-SQL Cli Ignores Parameter hive.metastore.warehouse.dir

Xiao Li created SPARK-15320:
-------------------------------

             Summary: Spark-SQL Cli Ignores Parameter hive.metastore.warehouse.dir 
                 Key: SPARK-15320
                 URL: https://issues.apache.org/jira/browse/SPARK-15320
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 2.0.0
            Reporter: Xiao Li


When overriding {hive.metastore.warehouse.dir} in the spark-sql command line, it does not work. This is a regression. It works in the previous release.

For example, 
{noformat}
./spark-sql --hiveconf hive.metastore.warehouse.dir=/Users/xiaoli/a/b
{noformat}

However, the log shows the value is overridden by the default value of "spark.sql.warehouse.dir". 
{noformat}
16/05/13 13:43:35 INFO HiveClientImpl: Warehouse location for Hive client (version 1.2.1) is /Users/xiaoli/IdeaProjects/sparkDelivery/bin/spark-warehouse
{noformat}

We also can see the same usage in the CliSuite:
https://github.com/apache/spark/blob/890abd1279014d692548c9f3b557483644a0ee32/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala#L92




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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