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 ACF43200D57 for ; Mon, 27 Nov 2017 06:54:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AB593160C00; Mon, 27 Nov 2017 05:54:16 +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 F0A09160BFF for ; Mon, 27 Nov 2017 06:54:15 +0100 (CET) Received: (qmail 98689 invoked by uid 500); 27 Nov 2017 05:54:14 -0000 Mailing-List: contact user-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@giraph.apache.org Delivered-To: mailing list user@giraph.apache.org Received: (qmail 98677 invoked by uid 99); 27 Nov 2017 05:54:14 -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; Mon, 27 Nov 2017 05:54:14 +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 7369F1A0830 for ; Mon, 27 Nov 2017 05:54:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 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_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, 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 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 jwW0olsUfMEQ for ; Mon, 27 Nov 2017 05:54:12 +0000 (UTC) Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B4F595F1ED for ; Mon, 27 Nov 2017 05:54:11 +0000 (UTC) Received: by mail-wm0-f42.google.com with SMTP id x63so32174471wmf.4 for ; Sun, 26 Nov 2017 21:54:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kBf3sJKK8r/QhZlIZ2bc00z6rP5tMtQ16rkM883oEQA=; b=MAKbyzlk/wHGT6nmXmMez9x5EVZi+G5gCacP2bifWByqG9FpH1AxEYUOQCZLF6mGgN M72K6ezKSjqEFj0YHT1Bc0RVxS8C6fpr715YqVv2EHnDAmZcgMizzIyoqzd1i1q1wO7N kC1B31HKwZqUDw26fejZHVCsbqgvxMzes+oLdCzp47tJYwwXR0pn+kr9+IozXLwGKazC SYGbTktquN1EkqsiLZeeWFCuUHLM0Pzy7VkGgfRnjrOhC9eA+6loXwYFXEBIFmGV+gU0 vrGqWi2STuCILNL127w9xSDVCMLneu+0SOgSmUZ5wGgL8CbiWgtamwU5dMxm8JZ57c1N nD7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=kBf3sJKK8r/QhZlIZ2bc00z6rP5tMtQ16rkM883oEQA=; b=fnfm/XZteqzDLyVSJPUucsxbJVIbFQXG9bT6c+SpH7kZcAM8PJGVnAnnrkqypXNTLM j1xwMk+R8FLAKhuPCgM8VI2nBrb8Wl5AOrnvDFkxHDDzrsKvyo8WbCBiY1Z0OF66FJoA Yfs1peOfB1N+lpEOJ+07Pi7TMTqNO2DQoAHZGXy0o1KU8WlfsLLtaebQlvB1ACqAvzOp mML1CPhBQbML+X0ty9H/Mrl32lSn6iBXuete0drGVtmXQWC2UJuW8tPMlNT/zl48aAJ/ RVePtVSQ9FkqoOwcYDeDITK3xi5fjAX92Gq7P/ur41C0uVZjBcyX7BtZCZ3Az2AAjL/T a7cg== X-Gm-Message-State: AJaThX5nakWCyOhgPWlP82Cau8aWvpLioOHsWqaUc2OE6/CXAXYUIsBD jemCJxVIjehpMvvjwdzN1APuP2N29lsEFCrDP3Q= X-Google-Smtp-Source: AGs4zMbQWEcmEQxnDncxsf7dgDsithlgXPuXsllsuPqHNyC9FYh+VJGAtgcTbPiy0zRM4Cx4DnIi0FckqX0HKZFNaQA= X-Received: by 10.80.145.98 with SMTP id f31mr50111317eda.168.1511762051301; Sun, 26 Nov 2017 21:54:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.245.7 with HTTP; Sun, 26 Nov 2017 21:54:10 -0800 (PST) From: Ravikant Dindokar Date: Mon, 27 Nov 2017 11:24:10 +0530 Message-ID: Subject: Worker to task id mapping in giraph To: giraph-users@googlegroups.com, user@giraph.apache.org Content-Type: multipart/alternative; boundary="94eb2c0e420a0d85c8055ef088bd" archived-at: Mon, 27 Nov 2017 05:54:16 -0000 --94eb2c0e420a0d85c8055ef088bd Content-Type: text/plain; charset="UTF-8" Hi, I am trying to change the mapping of partitions to workers in createInitialPartitionOwners(Collection availableWorkerInfos, int maxWorkers) defined in org.apache.giraph.partition.MasterGraphPartitionerImpl.java. The first argument to this method is the list of available workers and each worker has a task id associated with it. When I am specifying the number of workers as 40, the task id are 1 to 40. I have removed one node from the yarn-cluster by following this answer https://stackoverflow.com/questions/41820759/how-to-separately-specify-a-set-of-nodes-for-hdfs-and-others-for-mapreduce-jobs . After this change, the task ids assigned to the workers are no longer consecutive (e.g. for 40 workers the range of task id is 1- 43). Some task-ids are excluded. Is there any way to get these task ids strictly consecutive? Thanks Ravikant --94eb2c0e420a0d85c8055ef088bd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I am trying to change the mapping o= f partitions to workers in=C2=A0

createInitialPart= itionOwners(Collection<WorkerInfo> availableWorkerInfos, int maxWorke= rs) defined in=C2=A0org.apache.giraph.partition.MasterGraphPartitionerImpl.= java.

The first argument to this method is the= list of available workers and each worker has a task id associated with it= .

When I am specifying the number of workers as 40= , the task id are 1 to 40.


After this change, the task id= s assigned to the workers are no longer consecutive (e.g. for 40 workers th= e range of task id is 1- 43). Some task-ids are excluded.=C2=A0
<= br>
Is there any way to get these task ids strictly consecutive?= =C2=A0

Thanks
Ravikant=C2=A0
--94eb2c0e420a0d85c8055ef088bd--