Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Incomplete
-
2.0.0
-
None
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.