Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A2BED1BA for ; Sat, 27 Oct 2012 05:23:42 +0000 (UTC) Received: (qmail 97007 invoked by uid 500); 27 Oct 2012 05:23:35 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 95761 invoked by uid 500); 27 Oct 2012 05:23:33 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 95693 invoked by uid 99); 27 Oct 2012 05:23:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Oct 2012 05:23:30 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Oct 2012 05:23:22 +0000 Received: by mail-ob0-f176.google.com with SMTP id x4so3845080obh.35 for ; Fri, 26 Oct 2012 22:23:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=0wHKsNAYXircwsafYrqJ1kh9mI+mB6RTqOEPKURHQvk=; b=pwN5TdCTM6vpxIXJBqHVik+pLYiCcFniY8UZ8joPn9ydXoBhbBFsp+v6JYjJf6PV/1 RAiVW0KjN6PD8lUyBcEdatA/h91Zk0sIw2oOTf7KyMOcIQjmffDYIPXM8jigY0bc+PS9 wofItjrEBA/P4I7RFRYBlwFFGNlqZG/Puwv1fhO8HygWhqWAtYh9TF8y9FKYNjhQztw8 IV0yTEHg689lDLr1bsQN/56tEG6gjGBHy9InCRqVpX9h1cfaVhOM/Bk5b+qBht8djYpe WkyWwCNOx7NVO4sMZyi5Gc1m6lky/e2zhVazVqjIopoT9yQjrUJ1Ig9byiESJoBEUcEo m+QQ== Received: by 10.182.192.74 with SMTP id he10mr20434534obc.87.1351315381175; Fri, 26 Oct 2012 22:23:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.251.74 with HTTP; Fri, 26 Oct 2012 22:22:40 -0700 (PDT) In-Reply-To: <022201cdb3f0$2d5fd2f0$881f78d0$@yahoo.com> References: <022201cdb3f0$2d5fd2f0$881f78d0$@yahoo.com> From: Ted Dunning Date: Sat, 27 Oct 2012 01:22:40 -0400 Message-ID: Subject: Re: Cluster wide atomic operations To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=14dae9399da74644b704cd03a108 X-Gm-Message-State: ALoCoQnQVRvB29q9WNSd2Z40yDlj5reJH7+msXTXhYVk9e6kD3fLuGpmf5JltePgWwG2mOVdaFGJ X-Virus-Checked: Checked by ClamAV on apache.org --14dae9399da74644b704cd03a108 Content-Type: text/plain; charset=ISO-8859-1 This is better asked on the Zookeeper lists. The first answer is that global atomic operations are a generally bad idea. The second answer is that if you an batch these operations up then you can cut the evilness of global atomicity by a substantial factor. Are you sure you need a global counter? On Fri, Oct 26, 2012 at 11:07 PM, David Parks wrote: > How can we manage cluster-wide atomic operations? Such as maintaining an > auto-increment counter. > > Does Hadoop provide native support for these kinds of operations? > > An in case ultimate answer involves zookeeper, I'd love to work out doing > this in AWS/EMR. > > --14dae9399da74644b704cd03a108 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This is better asked on the Zookeeper lists.

The first a= nswer is that global atomic operations are a generally bad idea.
=
The second answer is that if you an batch these operations u= p then you can cut the evilness of global atomicity by a substantial factor= .

Are you sure you need a global counter?

On Fri, Oct 26, 2012 at 11:07 PM, David Parks <da= vidparks21@yahoo.com> wrote:
How can we manage cluster-wide atomic operat= ions? Such as maintaining an
auto-increment counter.

Does Hadoop provide native support for these kinds of operations?

An in case ultimate answer involves zookeeper, I'd love to work out doi= ng
this in AWS/EMR.


--14dae9399da74644b704cd03a108--