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

Issue Exceptions from Thrift Server and Spark-SQL Cli when Users Inputting hive.metastore.warehouse.dir

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:

      Description

      Multiple test suites are still using hive.metastore.warehouse.dir as the input parameters to the Thrift Server or Spark-SQL Cli. Before this PR, this parameter is simply ignored without any message. However, these parameters took effect to change the default location of database in warehouse until Spark 2.0.0.

      To ensure users correctly use the new parameter, this PR is to issue an exception if users specify the parm: hive.metastore.warehouse.dir in Thrift-Server and Spark SQL CLI:

      Exception in thread "main" java.lang.Error: hive.metastore.warehouse.dir is deprecated. Instead, use spark.sql.warehouse.dir to specify the default location of database.
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              smilegator Xiao Li
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: