You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/06/03 22:22:58 UTC

[GitHub] [flink] krasinski commented on a change in pull request #12462: [FLINK-18045] Fix Kerberos credentials checking

krasinski commented on a change in pull request #12462:
URL: https://github.com/apache/flink/pull/12462#discussion_r434890724



##########
File path: flink-filesystems/flink-hadoop-fs/src/main/java/org/apache/flink/runtime/util/HadoopUtils.java
##########
@@ -113,7 +113,8 @@ public static Configuration getHadoopConfiguration(org.apache.flink.configuratio
 	}
 
 	public static boolean isCredentialsConfigured(UserGroupInformation ugi, boolean useTicketCache) throws Exception {
-		if (UserGroupInformation.isSecurityEnabled()) {
+		if (UserGroupInformation.isSecurityEnabled()
+			&& ugi.getAuthenticationMethod() == UserGroupInformation.AuthenticationMethod.KERBEROS) {

Review comment:
       done, please let me know if you decide that changing that public method signature can be a problem - I'll bring back the old method name




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