walterddr 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_r377198538
 
 

 ##########
 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:
   It's a bit tricky after a second look. sometimes Flink expects the actual 
"logged in" user with valid keytab/web-auth so that it can generate additional 
DT. I am thinking of opening another JIRA to address it as a separate issue; 
meanwhile I will keep this PR solely fixing the DT error check. what do you 
think?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to