From yarn-issues-return-155568-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Thu Oct 18 00:38: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 85BF618061A for ; Thu, 18 Oct 2018 00:38:04 +0200 (CEST) Received: (qmail 98348 invoked by uid 500); 17 Oct 2018 22:38:03 -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 98337 invoked by uid 99); 17 Oct 2018 22:38:03 -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; Wed, 17 Oct 2018 22:38:03 +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 307801A1672 for ; Wed, 17 Oct 2018 22:38:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id e03cKQXdsw91 for ; Wed, 17 Oct 2018 22:38:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 2CD335F3AD for ; Wed, 17 Oct 2018 22:38: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 63243E0360 for ; Wed, 17 Oct 2018 22:38: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 1097E2124D for ; Wed, 17 Oct 2018 22:38:00 +0000 (UTC) Date: Wed, 17 Oct 2018 22:38:00 +0000 (UTC) From: "Suma Shivaprasad (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (YARN-8901) Restart "NEVER" policy does not work with component dependency MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-8901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Suma Shivaprasad reassigned YARN-8901: -------------------------------------- Assignee: Suma Shivaprasad > Restart "NEVER" policy does not work with component dependency > -------------------------------------------------------------- > > Key: YARN-8901 > URL: https://issues.apache.org/jira/browse/YARN-8901 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Yesha Vora > Assignee: Suma Shivaprasad > Priority: Critical > > Scenario: > 1) Launch an application with two components. master and worker. Here, worker is dependent on master. ( Worker should be launched only after master is launched ) > 2) Set restart_policy = NEVER for both master and worker. > {code:title=sample launch.json} > { > "name": "mawo-hadoop-ut", > "artifact": { > "type": "DOCKER", > "id": "xxx" > }, > "configuration": { > "env": { > "YARN_CONTAINER_RUNTIME_DOCKER_CONTAINER_NETWORK": "hadoop" > }, > "properties": { > "docker.network": "hadoop" > } > }, > "components": [{ > "dependencies": [], > "resource": { > "memory": "2048", > "cpus": "1" > }, > "name": "master", > "run_privileged_container": true, > "number_of_containers": 1, > "launch_command": "start master", > "restart_policy": "NEVER", > }, { > "dependencies": ["master"], > "resource": { > "memory": "8072", > "cpus": "1" > }, > "name": "worker", > "run_privileged_container": true, > "number_of_containers": 10, > "launch_command": "start worker", > "restart_policy": "NEVER", > }], > "lifetime": -1, > "version": 1.0 > }{code} > When restart policy is selected to NEVER, AM never launches Worker component. It get stuck with below message. > {code} > 2018-10-17 15:11:58,560 [Component dispatcher] INFO component.Component - [COMPONENT master] Transitioned from FLEXING to STABLE on CHECK_STABLE event. > 2018-10-17 15:11:58,560 [pool-7-thread-1] INFO instance.ComponentInstance - [COMPINSTANCE master-0 : container_e41_1539027682947_0020_01_000002] Transitioned from STARTED to READY on BECOME_READY event > 2018-10-17 15:11:58,560 [pool-7-thread-1] INFO component.Component - [COMPONENT worker]: Dependency master not satisfied, only 1 of 1 instances are ready or the dependent component has not completed > 2018-10-17 15:12:28,556 [pool-7-thread-1] INFO component.Component - [COMPONENT worker]: Dependency master not satisfied, only 1 of 1 instances are ready or the dependent component has not completed > 2018-10-17 15:12:58,556 [pool-7-thread-1] INFO component.Component - [COMPONENT worker]: Dependency master not satisfied, only 1 of 1 instances are ready or the dependent component has not completed > 2018-10-17 15:13:28,556 [pool-7-thread-1] INFO component.Component - [COMPONENT worker]: Dependency master not satisfied, only 1 of 1 instances are ready or the dependent component has not completed > 2018-10-17 15:13:58,556 [pool-7-thread-1] INFO component.Component - [COMPONENT worker]: Dependency master not satisfied, only 1 of 1 instances are ready or the dependent component has not completed > 2018-10-17 15:14:28,556 [pool-7-thread-1] INFO component.Component - [COMPONENT worker]: Dependency master not satisfied, only 1 of 1 instances are ready or the dependent component has not completed {code} > 'NEVER' restart policy expects master component to be finished before starting workers. Master component can not finish the job without workers. Thus, it create a deadlock. > The logic for 'NEVER' restart policy should be fixed to allow worker components to be launched as soon as master component is in READY state. -- 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