aljoscha commented on a change in pull request #10891:
[FLINK-15561][Security][hotfix] Add Delegation Token checker in
YarnClusterDescriptor
URL: https://github.com/apache/flink/pull/10891#discussion_r376279727
##########
File path:
flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/util/HadoopUtils.java
##########
@@ -112,6 +112,27 @@ public static Configuration
getHadoopConfiguration(org.apache.flink.configuratio
return result;
}
+ public static boolean isCredentialsConfigured(boolean useTicketCache)
throws Exception {
+ UserGroupInformation loginUser =
UserGroupInformation.getCurrentUser();
Review comment:
The previous code used `getLoginUser()` (in `HadoopModule`) and
`getCurrentUser()` (in `YarnClusterDescriptor), is it ok to only use
`getCurrentUser()` now or should we maybe add the UGI as a parameter?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services