flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mxm <...@git.apache.org>
Subject [GitHub] flink pull request #2275: FLINK-3929 Support for Kerberos Authentication wit...
Date Wed, 27 Jul 2016 15:03:04 GMT
Github user mxm commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2275#discussion_r72456655
  
    --- Diff: flink-yarn/src/main/java/org/apache/flink/yarn/YarnTaskManagerRunner.java ---
    @@ -75,34 +84,47 @@ public static void runYarnTaskManager(String[] args, final Class<?
extends YarnT
     				"specified in the Flink config: " + flinkTempDirs);
     		}
     
    -		LOG.info("YARN daemon runs as '" + UserGroupInformation.getCurrentUser().getShortUserName()
+
    -			"' setting user to execute Flink TaskManager to '" + yarnClientUsername + "'");
    -
     		// tell akka to die in case of an error
     		configuration.setBoolean(ConfigConstants.AKKA_JVM_EXIT_ON_FATAL_ERROR, true);
     
    -		UserGroupInformation ugi = UserGroupInformation.createRemoteUser(yarnClientUsername);
    -		for (Token<? extends TokenIdentifier> toks : UserGroupInformation.getCurrentUser().getTokens())
{
    -			ugi.addToken(toks);
    +		String keytabPath = null;
    +		if(remoteKeytabPath != null) {
    +			File f = new File(currDir, ConfigConstants.KEYTAB_FILE_NAME);
    --- End diff --
    
    We should choose an internal unique name for the keytab file. We can transfer the name
via the Yarn environment variables.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message