Github user harishreedharan commented on a diff in the pull request:
https://github.com/apache/spark/pull/9168#discussion_r42420896
--- Diff: core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala
---
@@ -130,6 +132,20 @@ class SparkHadoopUtil extends Logging {
UserGroupInformation.loginUserFromKeytab(principalName, keytabFilename)
}
+ def updateCurrentUserHDFSDelegationToken(): Unit = {
+ val conf = new Configuration()
+ val nsId = DFSUtil.getNamenodeNameServiceId(conf)
+ val isHaEnabled = HAUtil.isHAEnabled(conf, nsId)
+
+ if(isHaEnabled){
+ val ugi = UserGroupInformation.getCurrentUser
+ val uri = FileSystem.getDefaultUri(conf)
+ val map = DFSUtil.getHaNnRpcAddresses(conf)
--- End diff --
@steveloughran If this is not a good option, is there another way of doing
this? Maybe look up a specific configuration? Considering the fact that the
configuration params are not likely to change (since it would break compat), we
could just directly use those?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]