Skip to content

Commit

Permalink
clean hive.metastore.uris
Browse files Browse the repository at this point in the history
  • Loading branch information
yaooqinn committed Jun 15, 2020
1 parent 03fcf59 commit 7908d62
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -93,6 +93,7 @@ trait SharedThriftServer extends SharedSparkSession {
val sqlContext = spark.newSession().sqlContext
sqlContext.setConf(ConfVars.METASTORECONNECTURLKEY.varname,
s"jdbc:derby:;databaseName=$metastorePath;create=true")
sqlContext.setConf(ConfVars.METASTOREURIS.varname, "")
// Set the HIVE_SERVER2_THRIFT_PORT and HIVE_SERVER2_THRIFT_HTTP_PORT to 0, so it could
// randomly pick any free port to use.
// It's much more robust than set a random port generated by ourselves ahead
Expand Down

0 comments on commit 7908d62

Please sign in to comment.