You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "venkata91 (via GitHub)" <gi...@apache.org> on 2023/02/24 15:48:49 UTC

[GitHub] [flink] venkata91 commented on a diff in pull request #22009: [FLINK-31109][yarn] Support Hadoop proxy user when delegation token f…

venkata91 commented on code in PR #22009:
URL: https://github.com/apache/flink/pull/22009#discussion_r1117217398


##########
flink-runtime/src/main/java/org/apache/flink/runtime/security/modules/HadoopModule.java:
##########
@@ -70,10 +71,22 @@ public void install() throws SecurityInstallException {
 
         try {
             KerberosLoginProvider kerberosLoginProvider = new KerberosLoginProvider(securityConfig);
-            if (kerberosLoginProvider.isLoginPossible()) {
-                kerberosLoginProvider.doLogin();
+            if (kerberosLoginProvider.isLoginPossible(true)) {
+                kerberosLoginProvider.doLogin(true);
                 loginUser = UserGroupInformation.getLoginUser();
 
+                if (HadoopUserUtils.isProxyUser((loginUser))

Review Comment:
   Just wanted to confirm that we no need any change right now? Rather you comment is more for future, handling proxy user support w/ non-hadoop DT like S3. I thought about this case as well. Good point!



-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org