Github user yaooqinn commented on a diff in the pull request:
https://github.com/apache/spark/pull/20784#discussion_r177610275
--- Diff:
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkSQLCLIDriver.scala
---
@@ -121,6 +123,11 @@ private[hive] object SparkSQLCLIDriver extends Logging
{
}
}
+ Option(new HiveDelegationTokenProvider)
+ .filter(_.delegationTokensRequired(sparkConf, hadoopConf))
+ .foreach(_.obtainDelegationTokens(
+ hadoopConf, sparkConf,
UserGroupInformation.getCurrentUser.getCredentials))
--- End diff --
OKï¼i got it
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]