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 E255A200B9F for ; Tue, 11 Oct 2016 09:51:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E1107160AE6; Tue, 11 Oct 2016 07:51:56 +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 F3457160AD2 for ; Tue, 11 Oct 2016 09:51:55 +0200 (CEST) Received: (qmail 20681 invoked by uid 500); 11 Oct 2016 07:51:55 -0000 Mailing-List: contact dev-help@asterixdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@asterixdb.apache.org Delivered-To: mailing list dev@asterixdb.apache.org Received: (qmail 20665 invoked by uid 99); 11 Oct 2016 07:51:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2016 07:51:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 655AEC0E19 for ; Tue, 11 Oct 2016 07:51:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 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, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id k8_M941anXlM for ; Tue, 11 Oct 2016 07:51:52 +0000 (UTC) Received: from mail-oi0-f41.google.com (mail-oi0-f41.google.com [209.85.218.41]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 0A9845FB39 for ; Tue, 11 Oct 2016 07:51:52 +0000 (UTC) Received: by mail-oi0-f41.google.com with SMTP id t73so14949257oie.1 for ; Tue, 11 Oct 2016 00:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=YSqM2+pQNwhc4x2kGKrjcfdw/xkAOICqlmTs+g98WaQ=; b=YnDTUDx8U7tm5gosLgmsJJowDicmPIVp0jyNwELOR2Kf928Yh9i2Rd3XSdMp7Gi2S8 a3nSU874M+fNU+0Kw63M76gkMvCLAY4E6Q2wr9y+kp3W0X1MNb6sOI4HzU6BsbsrNYTh u/4F1rzC8Ij8CgASea/BsCMDZ2pVrR2Zs8WdmrwO07agvvEvpcGuieHgcrz2omLv/YFG 2Q7D1b5k8o1sAVwWykfmPORKlYsyRTVmCW2Ey5HeFORIu/k2XatiMnBefWghAv2UGs6N fuOX4Eo1tQriN1sUO2d4+laVfp7pFy4RoYJW3SoeD198JEchuIBBBsoXfmpDEEkErQx6 NqGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=YSqM2+pQNwhc4x2kGKrjcfdw/xkAOICqlmTs+g98WaQ=; b=mV3rq7uJ6EqR5E+dRzvfzD2q2L0qmwvtEP4g/7S+WOjbnN8Tc0A9TZmCiCJaWhuyjv yDtpLTRd5kwv0SpOTvN4jp85mScM6g4nLz3YWOxDQMFq42PpIveih+bV4bGr9OipubZ7 sSxOWssGUZqk163T1EHPj4rCKEbLGjXkyNP+ndg2XspACIvfDTLkQvsIP5/UGEt6eTa0 oTdrPh61d8TYWc6N+oirXabW1XmIOQKLuGYakipskAlSqBMt8f2F7EWFYVJLO+lNJ1Dq C8R6bWYEDKzo696bQY6py3wK0VAwvlwZOi6GkbWDqChtDxHQzS9kBXPHJ5l3isu/6eyZ pTPw== X-Gm-Message-State: AA6/9RmMW9rOw5EwmONgDZENXTe6RcEB1TMJPAyPmz0TqGNbdOC1b5gARDg/lZFumOrnSA== X-Received: by 10.157.38.220 with SMTP id i28mr1106293otd.19.1476172310629; Tue, 11 Oct 2016 00:51:50 -0700 (PDT) Received: from mikejcarey.local ([2600:8802:4500:fc:10b4:7291:1f84:634d]) by smtp.googlemail.com with ESMTPSA id e192sm769898oic.22.2016.10.11.00.51.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Oct 2016 00:51:49 -0700 (PDT) Subject: Re: Let one Operator finished the job before another one begin in Hyracks To: dev@asterixdb.apache.org References: From: Mike Carey Message-ID: <46e2f9df-ea12-a880-ff83-052d3c8d4656@gmail.com> Date: Tue, 11 Oct 2016 00:51:48 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------B34735148FBAA5DC9777B3CF" archived-at: Tue, 11 Oct 2016 07:51:57 -0000 --------------B34735148FBAA5DC9777B3CF Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit And both Wenhai and Preston have examples of doing the fan-in-and-compute/fan-back-out pattern with blocking until the latter part is done - Wenhai for finding range split points for parallel sorting and Preston for similar things that arise in interval joins. Can you guys chime in when you have a chance? (Preston may be busy from what I saw on Skype on Friday :-), with congrats being due!) On 10/11/16 12:22 AM, Jianfeng Jia wrote: > Based on the described example, it seems possible to implement it in one job by using MToNPartitioningConnectorDescriptor. > You can force that merge-BF-operator only runs in one partition by using PartitionConstraintHelper.addAbsoluteLocationConstraint() function. > >> On Oct 10, 2016, at 11:43 PM, mingda li wrote: >> >> Yeah, that will be easier. But for example, we have N nodes and in each >> node, it will generate a Bloom Filter(BF) for its own data. We need to send >> these BFs to one node for constructing a complete BF and then send the BF >> back to each node. I am not sure we can use multiple stage job for this, >> because there should be a 1->N and a N->1 connecter among nodes. If in one >> job, there may be no way to transfer data among nodes. >> This is my idea. If this can be implemented by one multiple stage job, that >> will decrease a lot of my work :-) >> >> Bests, >> Mingda >> >> On Mon, Oct 10, 2016 at 8:59 PM, Mike Carey wrote: >> >>> Is there a reason for wanting two jobs? I would think that one multiple >>> stage job would be preferable. >>> >>> On Oct 10, 2016 1:21 PM, "mingda li" wrote: >>> >>>> Oh, thanks Kim~ >>>> >>>> On Mon, Oct 10, 2016 at 12:55 PM, Taewoo Kim wrote: >>>> >>>>> Forwarded to dev. >>>>> >>>>> Best, >>>>> Taewoo >>>>> >>>>> ---------- Forwarded message ---------- >>>>> From: mingda li >>>>> Date: Mon, Oct 10, 2016 at 11:21 AM >>>>> Subject: Let one Operator finished the job before another one begin in >>>>> Hyracks >>>>> To: users@asterixdb.apache.org >>>>> >>>>> >>>>> Hi, >>>>> >>>>> Now,I am trying to build a Bloom Filter(BF) before join. The BF is >>> build >>>> in >>>>> each node and sent to one node to combine. I want to set a stop sign >>>> there >>>>> before sending the BF in each node. The stop sign means it can only >>> send >>>>> the BF after it is build. >>>>> The class HyracksConnection.waitForCompletion may help this. But I am >>>> not >>>>> sure how to use it. >>>>> Should I build two jobs: hcc.waitForCompletion(jobBuildBF); >>>>> jobidSendBF=hcc.startJob(); ? >>>>> Has anyone ever used the HyracksConnection.waitForCompletion? >>>>> >>>>> Thanks, >>>>> Mingda >>>>> --------------B34735148FBAA5DC9777B3CF--