From yarn-issues-return-144169-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri May 4 00:27:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0766A180625 for ; Fri, 4 May 2018 00:27:04 +0200 (CEST) Received: (qmail 6536 invoked by uid 500); 3 May 2018 22:27:04 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 6523 invoked by uid 99); 3 May 2018 22:27:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2018 22:27:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 95C291A2545 for ; Thu, 3 May 2018 22:27:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id dPKG45BD6n3j for ; Thu, 3 May 2018 22:27:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A0B2C5FB92 for ; Thu, 3 May 2018 22:27:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DFF3DE12CD for ; Thu, 3 May 2018 22:27:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5070C2129D for ; Thu, 3 May 2018 22:27:00 +0000 (UTC) Date: Thu, 3 May 2018 22:27:00 +0000 (UTC) From: "Shane Kumpf (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-7818) Remove privileged operation warnings during container launch for DefaultLinuxContainerRuntime MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-7818?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16463= 145#comment-16463145 ]=20 Shane Kumpf commented on YARN-7818: ----------------------------------- Thanks for the review, [~billie.rinaldi]. I agree that these should be cons= istent. I've attached a new patch=C2=A0to address that change. > Remove privileged operation warnings during container launch for DefaultL= inuxContainerRuntime > -------------------------------------------------------------------------= -------------------- > > Key: YARN-7818 > URL: https://issues.apache.org/jira/browse/YARN-7818 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Yesha Vora > Assignee: Shane Kumpf > Priority: Major > Attachments: YARN-7818.001.patch, YARN-7818.002.patch > > > steps: > 1) Run Dshell Application > {code:java} > yarn org.apache.hadoop.yarn.applications.distributedshell.Client -jar /u= sr/hdp/3.0.0.0-751/hadoop-yarn/hadoop-yarn-applications-distributedshell-*.= jar -keep_containers_across_application_attempts -timeout 900000 -shell_com= mand "sleep 110" -num_containers 4{code} > 2) Find out host where AM is running.=20 > 3) Find Containers launched by application > 4) Restart NM where AM is running > 5) Validate that new attempt is not started and containers launched befo= re restart are in RUNNING state. > In this test, step#5 fails because containers failed to launch with error= 143 > {code:java} > 2018-01-24 09:48:30,547 INFO container.ContainerImpl (ContainerImpl.java= :handle(2108)) - Container container_e04_1516787230461_0001_01_000003 trans= itioned from RUNNING to KILLING > 2018-01-24 09:48:30,547 INFO launcher.ContainerLaunch (ContainerLaunch.j= ava:cleanupContainer(668)) - Cleaning up container container_e04_1516787230= 461_0001_01_000003 > 2018-01-24 09:48:30,552 WARN privileged.PrivilegedOperationExecutor (Pri= vilegedOperationExecutor.java:executePrivilegedOperation(174)) - Shell exec= ution returned exit code: 143. Privileged Execution Operation Stderr: > Stdout: main : command provided 1 > main : run as user is hrt_qa > main : requested yarn user is hrt_qa > Getting exit code file... > Creating script paths... > Writing pid file... > Writing to tmp file /grid/0/hadoop/yarn/local/nmPrivate/application_15167= 87230461_0001/container_e04_1516787230461_0001_01_000003/container_e04_1516= 787230461_0001_01_000003.pid.tmp > Writing to cgroup task files... > Creating local dirs... > Launching container... > Getting exit code file... > Creating script paths... > Full command array for failed execution: > [/usr/hdp/3.0.0.0-751/hadoop-yarn/bin/container-executor, hrt_qa, hrt_qa,= 1, application_1516787230461_0001, container_e04_1516787230461_0001_01_000= 003, /grid/0/hadoop/yarn/local/usercache/hrt_qa/appcache/application_151678= 7230461_0001/container_e04_1516787230461_0001_01_000003, /grid/0/hadoop/yar= n/local/nmPrivate/application_1516787230461_0001/container_e04_151678723046= 1_0001_01_000003/launch_container.sh, /grid/0/hadoop/yarn/local/nmPrivate/a= pplication_1516787230461_0001/container_e04_1516787230461_0001_01_000003/co= ntainer_e04_1516787230461_0001_01_000003.tokens, /grid/0/hadoop/yarn/local/= nmPrivate/application_1516787230461_0001/container_e04_1516787230461_0001_0= 1_000003/container_e04_1516787230461_0001_01_000003.pid, /grid/0/hadoop/yar= n/local, /grid/0/hadoop/yarn/log, cgroups=3Dnone] > 2018-01-24 09:48:30,553 WARN runtime.DefaultLinuxContainerRuntime (Defau= ltLinuxContainerRuntime.java:launchContainer(127)) - Launch container faile= d. Exception: > org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.privileg= ed.PrivilegedOperationException: ExitCodeException exitCode=3D143: > at org.apache.hadoop.yarn.server.nodemanager.containermanager.lin= ux.privileged.PrivilegedOperationExecutor.executePrivilegedOperation(Privil= egedOperationExecutor.java:180) > at org.apache.hadoop.yarn.server.nodemanager.containermanager.lin= ux.runtime.DefaultLinuxContainerRuntime.launchContainer(DefaultLinuxContain= erRuntime.java:124) > at org.apache.hadoop.yarn.server.nodemanager.containermanager.lin= ux.runtime.DelegatingLinuxContainerRuntime.launchContainer(DelegatingLinuxC= ontainerRuntime.java:152) > at org.apache.hadoop.yarn.server.nodemanager.LinuxContainerExecut= or.launchContainer(LinuxContainerExecutor.java:549) > at org.apache.hadoop.yarn.server.nodemanager.containermanager.lau= ncher.ContainerLaunch.launchContainer(ContainerLaunch.java:465) > at org.apache.hadoop.yarn.server.nodemanager.containermanager.lau= ncher.ContainerLaunch.call(ContainerLaunch.java:285) > at org.apache.hadoop.yarn.server.nodemanager.containermanager.lau= ncher.ContainerLaunch.call(ContainerLaunch.java:95) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx= ecutor.java:1149) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > Caused by: ExitCodeException exitCode=3D143: > at org.apache.hadoop.util.Shell.runCommand(Shell.java:1009) > at org.apache.hadoop.util.Shell.run(Shell.java:902) > at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shel= l.java:1227) > at org.apache.hadoop.yarn.server.nodemanager.containermanager.lin= ux.privileged.PrivilegedOperationExecutor.executePrivilegedOperation(Privil= egedOperationExecutor.java:152) > ... 10 more > 2018-01-24 09:48:30,553 WARN nodemanager.LinuxContainerExecutor (LinuxCo= ntainerExecutor.java:launchContainer(557)) - Exit code from container conta= iner_e04_1516787230461_0001_01_000003 is : 143 > 2018-01-24 09:48:30,582 INFO containermanager.ContainerManagerImpl (Cont= ainerManagerImpl.java:stopContainerInternal(1365)) - Stopping container wit= h container Id: container_e04_1516787230461_0001_01_000005 > 2018-01-24 09:48:31,093 INFO impl.TimelineV2ClientImpl (TimelineV2Client= Impl.java:setTimelineCollectorInfo(172)) - Updated timeline service address= to xxxxxx:40757 > 2018-01-24 09:48:32,675 INFO container.ContainerImpl (ContainerImpl.java= :handle(2108)) - Container container_e04_1516787230461_0001_01_000003 trans= itioned from KILLING to CONTAINER_CLEANEDUP_AFTER_KILL{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