aljoscha commented on a change in pull request #7702: 
[FLINK-11088][Security][YARN] Allow YARN to discover pre-installed keytab files
URL: https://github.com/apache/flink/pull/7702#discussion_r390329586
 
 

 ##########
 File path: 
flink-yarn/src/main/java/org/apache/flink/yarn/YarnClusterDescriptor.java
 ##########
 @@ -941,10 +950,13 @@ private ApplicationReport startAppMaster(
                // 
https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/YarnApplicationSecurity.md#identity-on-an-insecure-cluster-hadoop_user_name
                appMasterEnv.put(YarnConfigKeys.ENV_HADOOP_USER_NAME, 
UserGroupInformation.getCurrentUser().getUserName());
 
-               if (remotePathKeytab != null) {
-                       appMasterEnv.put(YarnConfigKeys.KEYTAB_PATH, 
remotePathKeytab.toString());
+               if (localizedKeytabPath != null) {
 
 Review comment:
   I think we wouldn't have to do this if we simply used the Flink 
configuration for getting the config values. I think we don't need the 
environment variables at all and can thus simplify this.

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

Reply via email to