You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Svetozar (JIRA)" <ji...@apache.org> on 2014/06/12 22:53:02 UTC
[jira] [Created] (YARN-2156)
ApplicationMasterService#serviceStart() method has hardcoded
AuthMethod.TOKEN as security configuration
Svetozar created YARN-2156:
------------------------------
Summary: ApplicationMasterService#serviceStart() method has hardcoded AuthMethod.TOKEN as security configuration
Key: YARN-2156
URL: https://issues.apache.org/jira/browse/YARN-2156
Project: Hadoop YARN
Issue Type: Bug
Reporter: Svetozar
org.apache.hadoop.yarn.server.resourcemanager.ApplicationMasterService#serviceStart() method has mistakenly hardcoded AuthMethod.TOKEN as Hadoop security authentication.
It looks like that:
{code}
@Override
protected void serviceStart() throws Exception {
Configuration conf = getConfig();
YarnRPC rpc = YarnRPC.create(conf);
InetSocketAddress masterServiceAddress = conf.getSocketAddr(
YarnConfiguration.RM_SCHEDULER_ADDRESS,
YarnConfiguration.DEFAULT_RM_SCHEDULER_ADDRESS,
YarnConfiguration.DEFAULT_RM_SCHEDULER_PORT);
Configuration serverConf = conf;
// If the auth is not-simple, enforce it to be token-based.
serverConf = new Configuration(conf);
serverConf.set(
CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHENTICATION,
SaslRpcServer.AuthMethod.TOKEN.toString());
...
}
{code}
Obviously such code makes sense only if CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHENTICATION config setting is missing.
--
This message was sent by Atlassian JIRA
(v6.2#6252)