[ https://issues.apache.org/jira/browse/YARN-8675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16592142#comment-16592142 ]
Jim Brennan commented on YARN-8675: ----------------------------------- [~suma.shivaprasad] Thanks for working on this. I am still not clear on whether there exists any case in which we should be setting hostname when net=host? As coded, if the YARN_CONTAINER_RUNTIME_DOCKER_CONTAINER_HOSTNAME environment variable is set we will use it for hostname even if net=host. Is this comment in DockerLinuxContainerRuntime.java still accurate? {noformat} * YARN_CONTAINER_RUNTIME_DOCKER_CONTAINER_HOSTNAME} sets the * hostname to be used by the Docker container. If not specified, a * hostname will be derived from the container ID. This variable is * ignored if the network is 'host' and Registry DNS is not enabled. {noformat} > Setting hostname of docker container breaks with "host" networking mode for > Apps which do not run as a YARN service > ------------------------------------------------------------------------------------------------------------------- > > Key: YARN-8675 > URL: https://issues.apache.org/jira/browse/YARN-8675 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Yesha Vora > Assignee: Suma Shivaprasad > Priority: Major > Labels: Docker > Attachments: YARN-8675.1.patch, YARN-8675.2.patch > > > Applications like the Spark AM currently do not run as a YARN service and > setting hostname breaks driver/executor communication if docker version > >=1.13.1 , especially with wire-encryption turned on. > YARN-8027 sets the hostname if YARN DNS is enabled. But the cluster could > have a mix of YARN service/native Applications. > The proposal is to not set the hostname when "host" networking mode is > enabled. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org