[ https://issues.apache.org/jira/browse/MAPREDUCE-6402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15363123#comment-15363123 ]
Brahma Reddy Battula commented on MAPREDUCE-6402: ------------------------------------------------- any update on this issue..? I think, as per peter suggestion can we make use of nodemanger address..?? there are three places which we need consider for {{yarn.app.mapreduce.am.job.client.port-range}}. 1) {{appContext.getNMHostname()}} can be passed in MRClientService#serviceStart() for following two cases. a ) {{InetSocketAddress address = new InetSocketAddress(0);}} b) {code} webApp = WebApps.$for("mapreduce", AppContext.class, appContext, "ws") .withHttpPolicy(conf, Policy.HTTP_ONLY).start(new AMWebApp()); {code} 3) "0.0.0.0" can be replace with {{context.getNMHostname()}} in {{TaskAttempListenerImpl#startRpcServer()}} {code} server = new RPC.Builder(conf).setProtocol(TaskUmbilicalProtocol.class) .setInstance(this).setBindAddress("0.0.0.0") .setPort(0).setNumHandlers( conf.getInt(MRJobConfig.MR_AM_TASK_LISTENER_THREAD_COUNT, MRJobConfig.DEFAULT_MR_AM_TASK_LISTENER_THREAD_COUNT)) .setVerbose(false).setSecretManager(jobTokenSecretManager) .build(); {code} Please correct me if I am wrong.. > Application Master listens on all IPs > ------------------------------------- > > Key: MAPREDUCE-6402 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-6402 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: applicationmaster > Affects Versions: 2.7.0 > Reporter: Peter Shi > Assignee: Varun Saxena > > The application master listening on all IPs, which may cause security > problems. Similar issue: MAPREDUCE-5938 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: mapreduce-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: mapreduce-issues-h...@hadoop.apache.org