[ 
https://issues.apache.org/jira/browse/YARN-5430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15408798#comment-15408798
 ] 

Jian He commented on YARN-5430:
-------------------------------

bq.  Similarly we should change getIpAndHost and split them up into getIps and 
getHost calls.
Separating this means we need to make two separate calls into 
container-executor binary and invoke the docker command which is additional 
cost. I'd like to keep this as a single call.
bq. Instead of this, we should just use NetUtils.getLocalHostname() and 
NetUtils.getIPs
This method will return all internal-facing IPs, including loopback ip which 
will be meaningless to the user. I think we can return the localhost ip for 
now, as the ip info is anyways not much useful for non-docker container 
currently.
bq. Change log level to debug?
I'd like to keep as info which is useful for debugging. This is only a single 
line output.

> Get container's ip and host from NM
> -----------------------------------
>
>                 Key: YARN-5430
>                 URL: https://issues.apache.org/jira/browse/YARN-5430
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Jian He
>            Assignee: Jian He
>         Attachments: YARN-5430.1.patch, YARN-5430.2.patch, YARN-5430.3.patch, 
> YARN-5430.4.patch
>
>
> In YARN-4757, we introduced a DNS mechanism for containers. That's based on 
> the assumption  that we can get the container's ip and host information and 
> store it in the registry-service. This jira aims to get the container's ip 
> and host from the NM, primarily docker container



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to