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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.0.0
    • None
    • SQL

    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

            Unassigned Unassigned
            smilegator Xiao Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: