Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9522B1836E for ; Mon, 15 Feb 2016 01:03:57 +0000 (UTC) Received: (qmail 16412 invoked by uid 500); 15 Feb 2016 01:03:51 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 16339 invoked by uid 500); 15 Feb 2016 01:03:51 -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 16327 invoked by uid 99); 15 Feb 2016 01:03:51 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Feb 2016 01:03:51 +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 E714E1A06C3 for ; Mon, 15 Feb 2016 01:03:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 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_H2=-0.001, 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-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id QnitzO9aZz9X for ; Mon, 15 Feb 2016 01:03:49 +0000 (UTC) Received: from mail-yk0-f172.google.com (mail-yk0-f172.google.com [209.85.160.172]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A0E4B5FAF2 for ; Mon, 15 Feb 2016 01:03:49 +0000 (UTC) Received: by mail-yk0-f172.google.com with SMTP id z7so54715544yka.3 for ; Sun, 14 Feb 2016 17:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=X2LNEuc5Hfqtv9fWyIwd5pZu9MWOpNDU0O6+J22YIBs=; b=al3bJa8k01guaPdYek9YkFLb61GjWK6ecTO9h60isG0HtoX2DH3WrVUubcTe3JFuNe HJ9wsZPqKcWIdr2GmwUkc3heLuyYYliKSTVlA1w2MXiZ74QAah5ei4tqEomZa7BYFJW7 nC5yv0G1DNYI3a0prD9hBiYRz4Io/2+SENLPyhWkgjmgxcNMZMl5cudhNuxbWAMGjupb faLP5jRN3Dge4wGkFM01WToMGGP2YQejkFBaG6aRXh415dK/6KuI/l+dWp7+UIhFEg2z 1A/PpppzTU48oGoalTJRDvTQK+x9HKdx8ip37gh2GIhi+9XXquGhEdAkpnDjBHYTieRg 7hzA== 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:date :message-id:subject:from:to:content-type; bh=X2LNEuc5Hfqtv9fWyIwd5pZu9MWOpNDU0O6+J22YIBs=; b=L7nVQAF9pe0M/fU5rg2yI47EMY/BrfcBfUP6LF8NbhWlWPBTYRZlOiwaIxz0oMMolI wO9ki4Bk9LmqrtvbCubGaMP6MQhZ5HIlhDSa8Jn9zglY7/ohQOvTDAuPRT5+WqxXsl84 lYVbA0ti4Z2BNkhwPGjt2PMWng65wJpFjnY/NvPZySKqYUnmamKXnJnH+x524uY5ecS5 C62qVyji+Lth/d1X4byMLANws0bre5toseucqmJGZUNpLVL3xGC8BPyqzdb+H9UPNStZ mKaoS9BHxKzcyrwW0+lnwvOe056hPfwcO1FLyWhNYlUO9efrGaw2LTOllv3mnjHlhHNV VutQ== X-Gm-Message-State: AG10YOQS49TwuZtXFQs1YIOxjs+40dMUUcpEsxSo9f9yyDH0wztnclZIR0syGbMlpASKO6KiQbI5XxLWO1Iudw== MIME-Version: 1.0 X-Received: by 10.37.230.197 with SMTP id d188mr8094426ybh.74.1455498223018; Sun, 14 Feb 2016 17:03:43 -0800 (PST) Received: by 10.37.215.81 with HTTP; Sun, 14 Feb 2016 17:03:42 -0800 (PST) In-Reply-To: <0E901D7F-04C1-42D1-A63B-788307FDDB83@occamsmachete.com> References: <0E901D7F-04C1-42D1-A63B-788307FDDB83@occamsmachete.com> Date: Sun, 14 Feb 2016 17:03:42 -0800 Message-ID: Subject: Re: Rename tables or swap alias From: Ted Yu To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=94eb2c0afb0a8dec4f052bc49639 --94eb2c0afb0a8dec4f052bc49639 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable There is currently no native support for renaming two tables in one atomic action. FYI On Sun, Feb 14, 2016 at 4:18 PM, Pat Ferrel wrote: > I use Spark to take an old table, clean it up to create an RDD of cleaned > data. What I=E2=80=99d like to do is write all of the data to a new table= in HBase, > then rename the table to the old name. If possible it could be done by > changing an alias to point to the new table as long as all external code > uses the alias, or by a 2 table rename operation. But I don=E2=80=99t see= how to do > this for HBase. I am dealing with a lot of data so don=E2=80=99t want to = do table > modifications with deletes and upserts, this would be incredibly slow. > Furthermore I don=E2=80=99t want to disable the table for more than a tin= y span of > time. > > Is it possible to have 2 tables and rename both in an atomic action, or > change some alias to point to the new table in an atomic action. If not > what is the quickest way to achieve this to minimize time disabled. --94eb2c0afb0a8dec4f052bc49639--