From issues-return-187695-archive-asf-public=cust-asf.ponee.io@spark.apache.org Fri Mar 23 18:51:06 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 4F17C18067E for ; Fri, 23 Mar 2018 18:51:05 +0100 (CET) Received: (qmail 65126 invoked by uid 500); 23 Mar 2018 17:51:04 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 65115 invoked by uid 99); 23 Mar 2018 17:51:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2018 17:51:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id EB77918045C for ; Fri, 23 Mar 2018 17:51:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id mUN_gPSdmzim for ; Fri, 23 Mar 2018 17:51:01 +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 7EF725F126 for ; Fri, 23 Mar 2018 17:51: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 DE399E0DBD for ; Fri, 23 Mar 2018 17:51: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 361B1214E5 for ; Fri, 23 Mar 2018 17:51:00 +0000 (UTC) Date: Fri, 23 Mar 2018 17:51:00 +0000 (UTC) From: "Susan X. Huynh (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-22342) refactor schedulerDriver registration 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/SPARK-22342?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D164= 11780#comment-16411780 ]=20 Susan X. Huynh commented on SPARK-22342: ---------------------------------------- The=C2=A0multiple re-registration issue can lead to blacklisting and starva= tion when there are multiple executors per host. For example, suppose I hav= e a host with 8 cpu, and I specify spark.executor.cores=3D4. Then 2 Executo= rs could potentially get allocated on that host. If they both receive a TAS= K_LOST, that host will get blacklisted (since MAX_SLAVE_FAILURES=3D2). If t= his happens on every host, the app will be starved. I have hit this bug a l= ot when running on large machines (16-64 cpus) and specifying a small execu= tor size, spark.executor.cores=3D4. > refactor schedulerDriver registration > ------------------------------------- > > Key: SPARK-22342 > URL: https://issues.apache.org/jira/browse/SPARK-22342 > Project: Spark > Issue Type: Improvement > Components: Mesos > Affects Versions: 2.2.0 > Reporter: Stavros Kontopoulos > Priority: Major > > This is an umbrella issue for working on: > https://github.com/apache/spark/pull/13143 > and handle the multiple re-registration issue which invalidates an offer. > To test: > dcos spark run --verbose --name=3Dspark-nohive --submit-args=3D"--drive= r-cores 1 --conf spark.cores.max=3D1 --driver-memory 512M --class org.apach= e.spark.examples.SparkPi http://.../spark-examples_2.11-2.2.0.jar" > master log: > I1020 13:49:05.000000 3087 master.cpp:6618] Updating info for framework = 9764beab-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 > I1020 13:49:05.000000 3085 hierarchical.cpp:303] Added framework 9764bea= b-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 > I1020 13:49:05.000000 3085 hierarchical.cpp:412] Deactivated framework 9= 764beab-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 > I1020 13:49:05.000000 3090 hierarchical.cpp:380] Activated framework 976= 4beab-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 > I1020 13:49:05.000000 3087 master.cpp:2974] Subscribing framework Spark = Pi with checkpointing disabled and capabilities [ ] > I1020 13:49:05.000000 3087 master.cpp:6618] Updating info for framework = 9764beab-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 > I1020 13:49:05.000000 3087 master.cpp:3083] Framework 9764beab-c90a-4b4f= -b0ff-44c187851b34-0004-driver-20171020134857-0003 (Spark Pi) at scheduler-= 73f79027-b262-40d2-b751-05d8a6b60146@10.0.2.97:40697 failed over > I1020 13:49:05.000000 3087 master.cpp:2894] Received SUBSCRIBE call for = framework 'Spark Pi' at scheduler-73f79027-b262-40d2-b751-05d8a6b60146@10.0= .2.97:40697 > I1020 13:49:05.000000 3087 master.cpp:2894] Received SUBSCRIBE call for = framework 'Spark Pi' at scheduler-73f79027-b262-40d2-b751-05d8a6b60146@10.0= .2.97:40697 > I1020 13:49:05.000000 3087 master.cpp:2894] Received SUBSCRIBE call for f= ramework 'Spark Pi' at scheduler-73f79027-b262-40d2-b751-05d8a6b60146@10.0.= 2.97:40697 > I1020 13:49:05.000000 3087 master.cpp:2894] Received SUBSCRIBE call for f= ramework 'Spark Pi' at scheduler-73f79027-b262-40d2-b751-05d8a6b60146@10.0.= 2.97:40697 > I1020 13:49:05.000000 3087 master.cpp:2974] Subscribing framework Spark P= i with checkpointing disabled and capabilities [ ] > I1020 13:49:05.000000 3087 master.cpp:6618] Updating info for framework 9= 764beab-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 > I1020 13:49:05.000000 3087 master.cpp:3083] Framework 9764beab-c90a-4b4f-= b0ff-44c187851b34-0004-driver-20171020134857-0003 (Spark Pi) at scheduler-7= 3f79027-b262-40d2-b751-05d8a6b60146@10.0.2.97:40697 failed over > I1020 13:49:05.000000 3087 master.cpp:7662] Sending 6 offers to framework= 9764beab-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 (Spar= k Pi) at scheduler-73f79027-b262-40d2-b751-05d8a6b60146@10.0.2.97:40697 > I1020 13:49:05.000000 3087 master.cpp:2974] Subscribing framework Spark P= i with checkpointing disabled and capabilities [ ] > I1020 13:49:05.000000 3087 master.cpp:6618] Updating info for framework 9= 764beab-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 > I1020 13:49:05.000000 3087 master.cpp:3083] Framework 9764beab-c90a-4b4f-= b0ff-44c187851b34-0004-driver-20171020134857-0003 (Spark Pi) at scheduler-7= 3f79027-b262-40d2-b751-05d8a6b60146@10.0.2.97:40697 failed over > I1020 13:49:05.000000 3087 master.cpp:9159] Removing offer 9764beab-c90a-= 4b4f-b0ff-44c187851b34-O10039 > I1020 13:49:05.000000 3087 master.cpp:9159] Removing offer 9764beab-c90a-= 4b4f-b0ff-44c187851b34-O10038 > I1020 13:49:05.000000 3087 master.cpp:9159] Removing offer 9764beab-c90a-= 4b4f-b0ff-44c187851b34-O10037 > I1020 13:49:05.000000 3087 master.cpp:9159] Removing offer 9764beab-c90a-= 4b4f-b0ff-44c187851b34-O10036 > I1020 13:49:05.000000 3087 master.cpp:9159] Removing offer 9764beab-c90a-= 4b4f-b0ff-44c187851b34-O10035 > I1020 13:49:05.000000 3087 master.cpp:9159] Removing offer 9764beab-c90a-= 4b4f-b0ff-44c187851b34-O10034 > I1020 13:49:05.000000 3087 master.cpp:2894] Received SUBSCRIBE call for f= ramework 'Spark Pi' at scheduler-73f79027-b262-40d2-b751-05d8a6b60146@10.0.= 2.97:40697 > I1020 13:49:05.000000 3087 master.cpp:2974] Subscribing framework Spark P= i with checkpointing disabled and capabilities [ ] > I1020 13:49:05.000000 3087 master.cpp:6618] Updating info for framework 9= 764beab-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 > I1020 13:49:05.000000 3087 master.cpp:3083] Framework 9764beab-c90a-4b4f-= b0ff-44c187851b34-0004-driver-20171020134857-0003 (Spark Pi) at scheduler-7= 3f79027-b262-40d2-b751-05d8a6b60146@10.0.2.97:40697 failed over > I1020 13:49:05.000000 3087 master.cpp:2974] Subscribing framework Spark P= i with checkpointing disabled and capabilities [ ] > I1020 13:49:05.000000 3087 master.cpp:6618] Updating info for framework 9= 764beab-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 > I1020 13:49:05.000000 3087 master.cpp:3083] Framework 9764beab-c90a-4b4f-= b0ff-44c187851b34-0004-driver-20171020134857-0003 (Spark Pi) at scheduler-7= 3f79027-b262-40d2-b751-05d8a6b60146@10.0.2.97:40697 failed over > I1020 13:49:05.000000 3087 master.cpp:2974] Subscribing framework Spark P= i with checkpointing disabled and capabilities [ ] > I1020 13:49:05.000000 3087 master.cpp:6618] Updating info for framework 9= 764beab-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 > I1020 13:49:05.000000 3087 master.cpp:3083] Framework 9764beab-c90a-4b4f-= b0ff-44c187851b34-0004-driver-20171020134857-0003 (Spark Pi) at scheduler-7= 3f79027-b262-40d2-b751-05d8a6b60146@10.0.2.97:40697 failed over > I1020 13:49:06.000000 3084 master.cpp:7662] Sending 6 offers to framework= 9764beab-c90a-4b4f-b0ff-44c187851b34-0004-driver-20171020134857-0003 (Spar= k Pi) at scheduler-73f79027-b262-40d2-b751-05d8a6b60146@10.0.2.97:40697 > I1020 13:49:06.000000 3089 http.cpp:1166] HTTP GET for /master/slaves fro= m 10.0.4.84:37398 with User-Agent=3D'Go-http-client/1.1' > driver log: > 17/10/20 13:49:07 INFO MesosCoarseGrainedSchedulerBackend: SchedulerBacke= nd is ready for scheduling beginning after reached minRegisteredResourcesRa= tio: 0.0 > 17/10/20 13:49:07 DEBUG SparkContext: Adding shutdown hook > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Cannot launch= a task for offer with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10035 on s= lave with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-S2. Requirements were no= t met for this offer. > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Cannot launch= a task for offer with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10036 on s= lave with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-S3. Requirements were no= t met for this offer. > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Cannot launch= a task for offer with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10037 on s= lave with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-S0. Requirements were no= t met for this offer. > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Cannot launch= a task for offer with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10038 on s= lave with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-S1. Requirements were no= t met for this offer. > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Cannot launch= a task for offer with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10039 on s= lave with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-S6. Requirements were no= t met for this offer. > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Cannot launch= a task for offer with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10034 on s= lave with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-S5. Requirements were no= t met for this offer. > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Cannot launch= a task for offer with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10035 on s= lave with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-S2. Requirements were no= t met for this offer. > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Cannot launch= a task for offer with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10036 on s= lave with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-S3. Requirements were no= t met for this offer. > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Cannot launch= a task for offer with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10037 on s= lave with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-S0. Requirements were no= t met for this offer. > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Cannot launch= a task for offer with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10038 on s= lave with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-S1. Requirements were no= t met for this offer. > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Cannot launch= a task for offer with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10039 on s= lave with id: 9764beab-c90a-4b4f-b0ff-44c187851b34-S6. Requirements were no= t met for this offer. > 17/10/20 13:49:07 DEBUG MesosCoarseGrainedSchedulerBackend: Accepting off= er: 9764beab-c90a-4b4f-b0ff-44c187851b34-O10034 with attributes: Map() allo= cation info: role: "*" > ... > 17/10/20 13:49:08 INFO MesosCoarseGrainedSchedulerBackend: Mesos task 0 i= s now TASK_LOST > 17/10/20 13:49:08 INFO MesosCoarseGrainedSchedulerBackend: taskId has exe= cutorId: > 17/10/20 13:49:08 INFO MesosCoarseGrainedSchedulerBackend: taskId has mes= sage:Task launched with invalid offers: Offer 9764beab-c90a-4b4f-b0ff-44c18= 7851b34-O10034 is no longer valid -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org