Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-21637

`hive.metastore.warehouse` in --hiveconf is not respected

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: SQL
    • Labels:
      None

      Description

      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.

      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) 
      
      

        Attachments

          Activity

            People

            • Assignee:
              Qin Yao Kent Yao
              Reporter:
              Qin Yao Kent Yao
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: