Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/20784#discussion_r177522848
--- 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 --
This will not insert the tokens into the current UGI, because
`getCredentials` returns a copy.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]