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 43863200BB3 for ; Wed, 2 Nov 2016 19:06:58 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4223F160AFB; Wed, 2 Nov 2016 18:06:58 +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 87DC1160AF0 for ; Wed, 2 Nov 2016 19:06:57 +0100 (CET) Received: (qmail 5512 invoked by uid 500); 2 Nov 2016 18:06:56 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 5498 invoked by uid 99); 2 Nov 2016 18:06:55 -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; Wed, 02 Nov 2016 18:06:55 +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 7F162180481 for ; Wed, 2 Nov 2016 18:06:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.089 X-Spam-Level: *** X-Spam-Status: No, score=3.089 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_IMAGE_ONLY_20=0.7, 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, T_REMOTE_IMAGE=0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 680Kw8SSSAvC for ; Wed, 2 Nov 2016 18:06:53 +0000 (UTC) Received: from mail-yb0-f182.google.com (mail-yb0-f182.google.com [209.85.213.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 517665F4EB for ; Wed, 2 Nov 2016 18:06:53 +0000 (UTC) Received: by mail-yb0-f182.google.com with SMTP id d128so8163550ybh.2 for ; Wed, 02 Nov 2016 11:06:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=VGETKHcREG9/1CsoRVCuuMQPqFk1iVcwd4yXkqalGRQ=; b=v4JbqvuwGUtbTjNlBSeYgP1HXUZeACI3XtKjMj1aDCHabXVtvpWwQ7PeHCc0dBJukV dzjzqWc7Xq4+2gk4/Rjily7V5Y2zmjH19D8HHPSxE6X78D/h5aZhwzBnpv28xCP9BowG B57lEnuAKQiDX3gEGg4BOaJGLj4V+qOFG8it3aunlIhKdRUNGndRtONsLsh9yM8OH3V+ jKCWXG1WVrdM9psE6u+Vm3cS+IyD9OmUrKBy1OKoQzYvbfPyNxGA3IWH+yOrxULIJERr jHYr66RnMh1A4dT9210KIiSybw3Z1N7106JvKnAs0arXTL9uWYmvKn5mv4gprB2Ga19s C8vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=VGETKHcREG9/1CsoRVCuuMQPqFk1iVcwd4yXkqalGRQ=; b=OnQIvx5Q9N/y/s2Q+SCwqBWXCvxATk9dlIeJcRLCq/rPQZk/6PgY5jhBhwQdkdGtMM T2Oj7gnLcHowEMIYb1AeQlWikYNT6b/1yt1P3qV1vs03ruM75iS+wnYqpftZN/9qpmWi T2/VXr61AJQisEv4XI5bCOcO/yz/8nxVXEHlnJ/rRMuTtPZUVUooufcIkTqRaHARP6u1 RvKtwJ38tkCuwAlUmP53IW4yJYFQsKM2gd4hiqpKGFWToCwp0tMvHAo9PN3pqrtO+jqt oeaL5AuiLztLVTzRmlD83TG9yOb6aVs1bF+K4qzQ8a9pIq0+2nMPRutV2jkyjyypAp8S HSDg== X-Gm-Message-State: ABUngvfPBn4FFCEkZAPGMGkutjMqitJNYX2FCAxCJeiN35dDbnz2yOwBIPk+QO+XNoyZkz/frrBgXhzsZ3C8vA== X-Received: by 10.37.170.193 with SMTP id t59mr3611790ybi.86.1478110012441; Wed, 02 Nov 2016 11:06:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.15.7 with HTTP; Wed, 2 Nov 2016 11:06:51 -0700 (PDT) In-Reply-To: References: From: Ted Yu Date: Wed, 2 Nov 2016 11:06:51 -0700 Message-ID: Subject: Re: How can I achieve HBase row level atomicity? To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a1148180a3b0d420540554ef0 archived-at: Wed, 02 Nov 2016 18:06:58 -0000 --001a1148180a3b0d420540554ef0 Content-Type: text/plain; charset=UTF-8 Were you including code in the image (which didn't come through) ? MultiVersionConcurrencyControl is involved in answering your question. See http://hbase.apache.org/book.html#hregion.scans Cheers On Wed, Nov 2, 2016 at 10:57 AM, Manjeet Singh wrote: > Hi All > > I have ETL process for inserting data into hbase for this I have spark > jobs which are responsible for reading data from kafka topics. so my > question is if I have some rowkey already exist in hbase and I have 3 spark > job running and they all try to update on same rowkey how hbase deal for > atomicity? > > for more understanding i have 3 rowkey coming from 3 seprate spark job and > all trying to update same rowkey which is already exist in hbase table. > > [image: Inline image 1] > > -- > luv all > --001a1148180a3b0d420540554ef0--