You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "D M Murali Krishna Reddy (Jira)" <ji...@apache.org> on 2020/09/16 19:37:00 UTC
[jira] [Created] (YARN-10439) Yarn Service AM listens on all IP's
on the machine
D M Murali Krishna Reddy created YARN-10439:
-----------------------------------------------
Summary: Yarn Service AM listens on all IP's on the machine
Key: YARN-10439
URL: https://issues.apache.org/jira/browse/YARN-10439
Project: Hadoop YARN
Issue Type: Bug
Components: security, yarn-native-services
Reporter: D M Murali Krishna Reddy
Assignee: D M Murali Krishna Reddy
In ClientAMService.java, rpc server is created without passing hostname, due to which the client listens on 0.0.0.0, which is a bad practise.
{{InetSocketAddress address = {color:#cc7832}new {color}InetSocketAddress({color:#6897bb}0{color}){color:#cc7832};
{color}{color:#9876aa}server {color}= rpc.getServer(ClientAMProtocol.{color:#cc7832}class, this, {color}address{color:#cc7832}, {color}conf{color:#cc7832},
{color} {color:#9876aa}context{color}.{color:#9876aa}secretManager{color}{color:#cc7832}, {color}{color:#6897bb}1{color}){color:#cc7832};{color}}}
Also, a new configuration must be added similar to "yarn.app.mapreduce.am.job.client.port-range", so that client can configure port range for yarn service AM to bind.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org