hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shane Kumpf (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-8228) Docker does not support hostnames greater than 64 characters
Date Tue, 01 May 2018 12:23:00 GMT

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

Shane Kumpf commented on YARN-8228:
-----------------------------------

Thanks for the review and commit, [~eyang]!

> Docker does not support hostnames greater than 64 characters
> ------------------------------------------------------------
>
>                 Key: YARN-8228
>                 URL: https://issues.apache.org/jira/browse/YARN-8228
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: yarn-native-services
>    Affects Versions: 3.1.0
>            Reporter: Yesha Vora
>            Assignee: Shane Kumpf
>            Priority: Critical
>             Fix For: 3.2.0, 3.1.1
>
>         Attachments: YARN-8228.001.patch
>
>
> If containers name is greater than 64 characters, docker containers stays in Created
state only And app fails with below error
>  
> {code:java}
> /usr/bin/docker-current: Error response from daemon: oci runtime error: container_linux.go:247:
starting container process caused "process_linux.go:364: container init caused \"invalid argument\"".
> Could not invoke docker /usr/bin/docker run --name='container_1524681858728_0001_01_000004'
--user='99:99' -d --workdir='/grid/0/hadoop/yarn/local/usercache/hrt_qa/appcache/application_1524681858728_0001/container_1524681858728_0001_01_000004'
--net='hadoop' -v '/grid/0/hadoop/yarn/local/filecache:/grid/0/hadoop/yarn/local/filecache:ro'
-v '/grid/0/hadoop/yarn/local/usercache/hrt_qa/filecache:/grid/0/hadoop/yarn/local/usercache/hrt_qa/filecache:ro'
-v '/grid/0/hadoop/yarn/local/usercache/hrt_qa/appcache/application_1524681858728_0001/filecache/195/httpd-proxy.conf:/etc/httpd/conf.d/httpd-proxy.conf:ro'
-v '/grid/0/hadoop/yarn/log/application_1524681858728_0001/container_1524681858728_0001_01_000004:/grid/0/hadoop/yarn/log/application_1524681858728_0001/container_1524681858728_0001_01_000004'
-v '/grid/0/hadoop/yarn/local/usercache/hrt_qa/appcache/application_1524681858728_0001:/grid/0/hadoop/yarn/local/usercache/hrt_qa/appcache/application_1524681858728_0001'
--cgroup-parent='/hadoop-yarn-tmp-xxx/container_1524681858728_0001_01_000004' --cap-drop='ALL'
--cap-add='SYS_CHROOT' --cap-add='MKNOD' --cap-add='SETFCAP' --cap-add='SETPCAP' --cap-add='DAC_READ_SEARCH'
--cap-add='FSETID' --cap-add='SYS_PTRACE' --cap-add='CHOWN' --cap-add='SYS_ADMIN' --cap-add='AUDIT_WRITE'
--cap-add='SETGID' --cap-add='NET_RAW' --cap-add='FOWNER' --cap-add='SETUID' --cap-add='DAC_OVERRIDE'
--cap-add='KILL' --cap-add='NET_BIND_SERVICE' --hostname='httpd-proxy-0.fault-test-component-kill-httpd-docker.hrt-qa.test.com'
--group-add '99' 'centos/httpd-24-centos7:latest' 'bash' '/grid/0/hadoop/yarn/local/usercache/hrt_qa/appcache/application_1524681858728_0001/container_1524681858728_0001_01_000004/launch_container.sh'
.
> Shell output: main : command provided 4
> main : run as user is nobody
> main : requested yarn user is hrt_qa
> Creating script paths...
> Creating local dirs...
> Getting exit code file...
> Changing effective user to root...
> Launching docker container...
> Docker run command: /usr/bin/docker run --name='container_1524681858728_0001_01_000004'
--user='99:99' -d --workdir='/grid/0/hadoop/yarn/local/usercache/hrt_qa/appcache/application_1524681858728_0001/container_1524681858728_0001_01_000004'
--net='hadoop' -v '/grid/0/hadoop/yarn/local/filecache:/grid/0/hadoop/yarn/local/filecache:ro'
-v '/grid/0/hadoop/yarn/local/usercache/hrt_qa/filecache:/grid/0/hadoop/yarn/local/usercache/hrt_qa/filecache:ro'
-v '/grid/0/hadoop/yarn/local/usercache/hrt_qa/appcache/application_1524681858728_0001/filecache/195/httpd-proxy.conf:/etc/httpd/conf.d/httpd-proxy.conf:ro'
-v '/grid/0/hadoop/yarn/log/application_1524681858728_0001/container_1524681858728_0001_01_000004:/grid/0/hadoop/yarn/log/application_1524681858728_0001/container_1524681858728_0001_01_000004'
-v '/grid/0/hadoop/yarn/local/usercache/hrt_qa/appcache/application_1524681858728_0001:/grid/0/hadoop/yarn/local/usercache/hrt_qa/appcache/application_1524681858728_0001'
--cgroup-parent='/hadoop-yarn-tmp-xxx/container_1524681858728_0001_01_000004' --cap-drop='ALL'
--cap-add='SYS_CHROOT' --cap-add='MKNOD' --cap-add='SETFCAP' --cap-add='SETPCAP' --cap-add='DAC_READ_SEARCH'
--cap-add='FSETID' --cap-add='SYS_PTRACE' --cap-add='CHOWN' --cap-add='SYS_ADMIN' --cap-add='AUDIT_WRITE'
--cap-add='SETGID' --cap-add='NET_RAW' --cap-add='FOWNER' --cap-add='SETUID' --cap-add='DAC_OVERRIDE'
--cap-add='KILL' --cap-add='NET_BIND_SERVICE' --hostname='httpd-proxy-0.fault-test-component-kill-httpd-docker.hrt-qa.test.com'
--group-add '99' 'centos/httpd-24-centos7:latest' 'bash' '/grid/0/hadoop/yarn/local/usercache/hrt_qa/appcache/application_1524681858728_0001/container_1524681858728_0001_01_000004/launch_container.sh'
> Wrote the exit code 7 to /grid/0/hadoop/yarn/local/nmPrivate/application_1524681858728_0001/container_1524681858728_0001_01_000004/container_1524681858728_0001_01_000004.pid.exitcode
> [2018-04-27 01:09:15.564]Diagnostic message from attempt :
> [2018-04-27 01:09:15.565]Container exited with a non-zero exit code 7{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message