Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6CA4D200B36 for ; Wed, 6 Jul 2016 21:21:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6B11E160A64; Wed, 6 Jul 2016 19:21:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8CC8C160A55 for ; Wed, 6 Jul 2016 21:21:27 +0200 (CEST) Received: (qmail 32206 invoked by uid 500); 6 Jul 2016 19:21:26 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 32196 invoked by uid 99); 6 Jul 2016 19:21:26 -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, 06 Jul 2016 19:21:26 +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 05B1A1A6051 for ; Wed, 6 Jul 2016 19:21:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-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 yV8yjWVNjR4u for ; Wed, 6 Jul 2016 19:21:24 +0000 (UTC) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 5D5015F4E5 for ; Wed, 6 Jul 2016 19:21:24 +0000 (UTC) Received: by mail-lf0-f49.google.com with SMTP id h129so161174894lfh.1 for ; Wed, 06 Jul 2016 12:21:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=Wsdji9XGoXq40sVzrJMjxNDTAIdtsiKRcvitKUzFe6Q=; b=hZSIEkxzGvR8PGgEXZDpFislyYlwUtAA4KpNQi6qEoHcTn6FAqKT0hsLqeA/w801uN BB41fUBmKfgz3B3nbZ8tkOmucEPgiRgyaCxYZESPR7kB15Kf+jP+3HO1e0NzWaaDmhXq e400NRPf1SolrbVy58OFCaNGTLgGIFAPgtIy3oEOS7e1RnvNF7gNzxAeEGHvIwT5n8N1 WpRpsuIwnhJeL97G1OFhgdnR+iwSJFvjj+zqmZYeEBMi6TrghKUM038YXNc4pg9MrLz8 krENs+dlYN2PyTGWMPBM6U6zV40lhMCnIlRTm3kwAUhjLb2/ZFaft4hLaZzfOUXWmlzt THuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Wsdji9XGoXq40sVzrJMjxNDTAIdtsiKRcvitKUzFe6Q=; b=VipfhIbuon6OYcwrFro9X/1H25coqj+v365rAPduPpDv7KSiqf1gr560p+ti7+V8sY NSUEB3e0ZieiRtYT+tovEApoYxWYAL9Cv3+R4YdGrN8XpbG9e4qAbInOBNbe7HD9hN67 xOocbfCBhlJ/NQUmqkt1v/OpyESgJT8bdwZxU0LONL9I3eaXTyIuz5Snj4k68xcvtawS AmpfLiqfBml3Gg3/JRC7gtIL+t+EBQlL7xhMkYTOLeIWhhVKCeIbGcYsdYgkyszek82w dzzTQSMhobbCBupyjr6x3TiZW/DrOqMo/432exerI+8VXwT3KH26FVctxg36pVk9ll/9 +YXA== X-Gm-Message-State: ALyK8tItjT/EQZz2ZgEfKkgfsoQYTcdzXSebJcnZsL43We4WIjQ8bKDvPYi8xvbTT253F/1p9nmkonIKIujInA== X-Received: by 10.25.209.71 with SMTP id i68mr7003771lfg.20.1467832883326; Wed, 06 Jul 2016 12:21:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.35.150 with HTTP; Wed, 6 Jul 2016 12:20:43 -0700 (PDT) From: Paolo Di Tommaso Date: Wed, 6 Jul 2016 15:20:43 -0400 Message-ID: Subject: [Spark-Ignite] How to run exactly one Ignite worker in each Spark cluster node. To: user@ignite.apache.org Content-Type: multipart/alternative; boundary=001a11412ba899b9f00536fc79a6 archived-at: Wed, 06 Jul 2016 19:21:28 -0000 --001a11412ba899b9f00536fc79a6 Content-Type: text/plain; charset=UTF-8 Hi, I'm using the Ignite embedded deployment to run an Ignite workload in a Spark cluster. In my use case it's required to deploy exactly an Ignite worker for each node in the Spark cluster. However I haven't found a way to do that. Take in consideration this scenario: I'm running a 3 nodes Spark cluster on AWS (1 driver, 2 workers, each node with 3 cores). I would run 2 Ignite workers, one for each Spark worker. I'm using the following script: https://gist.github.com/pditommaso/660cbee09755b2b880099ab3bf2c609a I've set `spark.executor.instances = 2` in order to deploy two Ignite workers, indeed in the main log I can read the following: 16/07/06 18:58:02 INFO spark.IgniteContext: Will start Ignite nodes on 2 workers However what happens is that Ignite is launched only in one Spark node. Looking in the same log, the following line seems to suggest the reason: 16/07/06 18:58:05 INFO scheduler.TaskSetManager: Starting task 0.0 in stage 0.0 (TID 0, *ip-10-37-175-68*.eu-west-1.compute.internal, partition 0,PROCESS_LOCAL, 2137 bytes) 16/07/06 18:58:05 INFO scheduler.TaskSetManager: Starting task 1.0 in stage 0.0 (TID 1, *ip-10-37-175-68*.eu-west-1.compute.internal, partition 1,PROCESS_LOCAL, 2194 bytes) Spark is running two tasks to deploy the Ignite workers, but both of them in the same node (*ip-10-37-175-68*). Is there any workaround to avoid this? or more in general, is it possible to deploy exactly one Ignite worker for each node in the Spark cluster ? Thanks a lot. Cheers, Paolo --001a11412ba899b9f00536fc79a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,=C2=A0

I'm using the Ignite embe= dded deployment to run an Ignite workload in a Spark cluster.=C2=A0

In my use case it's required to deploy exactly an Ign= ite worker for each node in the Spark cluster. However I haven't found = a way to do that.=C2=A0


Take in con= sideration this scenario: I'm running a 3 nodes Spark cluster on AWS (1= driver, 2 workers, each node with 3 cores). I would run 2 Ignite workers, = one for each Spark worker.=C2=A0

I'm using the= following script: =C2=A0



I've set `spark.executor.instances =3D 2` in orde= r to deploy two Ignite workers, indeed in the main log I can read the follo= wing:=C2=A0


= 16/07/06 18:58:02 INFO spark.IgniteCont= ext: Will start Ignite nodes on 2 workers

=C2=A0However what happens is that Ignite is lau= nched only in one Spark node.=C2=A0


Looking in the same log, the following line seems to suggest the reason:

16/07/06 18:58:05 INFO scheduler.TaskSetManager: Starting task 0= .0 in stage 0.0 (TID 0, ip-10-37-175-68.eu-west-1.compute.internal, = partition 0,PROCESS_LOCAL, 2137 bytes)

16/07/06 18:58:0= 5 INFO scheduler.TaskSetManager: Starting task 1.0 in stage 0.0 (TID 1, = ip-10-37-175-68.eu-west-1.compute.internal, partition 1,PROCESS_LOCAL, = 2194 bytes)


Spark i= s running two tasks to deploy the Ignite workers, but both of them in the s= ame node (ip-10-37-175-68)= .=C2=A0

Is there any workaround to avoid this? or = more in general, is it possible to deploy exactly one Ignite worker for eac= h node in the Spark cluster ?


Thanks a lo= t.=C2=A0

Cheers,
Paolo
=C2=A0<= /div>
--001a11412ba899b9f00536fc79a6--