Github user LantaoJin commented on a diff in the pull request: https://github.com/apache/spark/pull/21396#discussion_r190113497 --- Diff: core/src/main/scala/org/apache/spark/deploy/security/HiveDelegationTokenProvider.scala --- @@ -85,7 +85,10 @@ private[spark] class HiveDelegationTokenProvider val principal = conf.getTrimmed(principalKey, "") require(principal.nonEmpty, s"Hive principal $principalKey undefined") val metastoreUri = conf.getTrimmed("hive.metastore.uris", "") - require(metastoreUri.nonEmpty, "Hive metastore uri undefined") + if (metastoreUri.isEmpty) { --- End diff -- Oh, my fault, `delegationTokensRequired` has been checked in `SparkSQLCLIDriver.scala`.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org