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 EBE132009F4 for ; Thu, 26 May 2016 08:28:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EAA78160A10; Thu, 26 May 2016 06:28:55 +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 16701160939 for ; Thu, 26 May 2016 08:28:54 +0200 (CEST) Received: (qmail 10648 invoked by uid 500); 26 May 2016 06:28:53 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 10617 invoked by uid 99); 26 May 2016 06:28:53 -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; Thu, 26 May 2016 06:28:53 +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 010FAC0E56 for ; Thu, 26 May 2016 06:28:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.179 X-Spam-Level: ***** X-Spam-Status: No, score=5.179 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, SPF_PASS=-0.001, URIBL_BLACK=4] 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 fU3jvDNbkRJ4 for ; Thu, 26 May 2016 06:28:50 +0000 (UTC) Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 3E69A5F39B for ; Thu, 26 May 2016 06:28:50 +0000 (UTC) Received: by mail-vk0-f45.google.com with SMTP id r140so90340744vkf.0 for ; Wed, 25 May 2016 23:28:50 -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=BAnlqn536d3/LPqS/0tZfjTVdJExDzvYEGFGMRWaTd8=; b=ENshYSOkBY3Rd/42A5sbDGv0B8yZpD8xhtcCxmGTLtzzmka2/zPujX6QewYueMcV92 Hz7WZYSwoEBOAMlbShghh9O8n4cGf1TPiY3OUmNwlJMppgUI5czt1YWUTWErGjg3KP7S wbn9OE9RI4tNt1ELLn1ce6YzrNI1YLCqlLxfxnnGIVKYvo1lb+RSH+xXN3Aid0w7J5AR bVqTXyIaYfSxxkBz1PmyiALmCuNGqlw/rBvtvlmfZpajuWKYutXaOafW8mdFScpNDLIT flKKesNObedjSgbL5RwdQJ5V2XGc0qHP4F6is5d83ek6XLCMDA3D3nDjBrwT+1B/Kkg7 kGJw== 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=BAnlqn536d3/LPqS/0tZfjTVdJExDzvYEGFGMRWaTd8=; b=M22yzXFq7quIvqx1NfeCyea3R7ZgRxkgSTSKo7UwkbCOV2Ywfuqnk748Av6swwrT8Z LL6U7LPE29GogaZpJAC+3YAveHwCmTQAI5s2atzaIW3gOoKf/XnGxX+9yKMWE3kTA30F s/0YDZCymXcIGhU9EhWWrKBGU/aMdqlRymx3bflZTf5KkaLz8CgWdkWGyb2t3AGTSN3D eJdlYvaRVRcYDre2Qs9bnkW9Pup0/qhxZ5dEGrSBxYcFrJljxqlSeJ1Wbhaz076FCqSC PA6gN2mPw6DM+egfcaoDWUJ54AkjwPndaU96WAfGXMPSsPXlzZRjXrRakuWjqGAR3mnE 0ukQ== X-Gm-Message-State: ALyK8tI/84RzcW8lwhAYRUrH9HN+Rte2nidR8PiZyyKrPKEk3ajxhDi897X+uhOpKSMW0R7X7yccfvi1HP1ndQ== X-Received: by 10.176.4.102 with SMTP id 93mr4678875uav.125.1464244129247; Wed, 25 May 2016 23:28:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.128.148 with HTTP; Wed, 25 May 2016 23:28:29 -0700 (PDT) In-Reply-To: <2025950601.3106319.1460154291292.JavaMail.yahoo@mail.yahoo.com> References: <2025950601.3106319.1460154291292.JavaMail.yahoo.ref@mail.yahoo.com> <2025950601.3106319.1460154291292.JavaMail.yahoo@mail.yahoo.com> From: Elliot West Date: Thu, 26 May 2016 07:28:29 +0100 Message-ID: Subject: Re: Copying all Hive tables from Prod to UAT To: "user@hive.apache.org" , Ashok Kumar Content-Type: multipart/alternative; boundary=94eb2c000bec303a050533b8e730 archived-at: Thu, 26 May 2016 06:28:56 -0000 --94eb2c000bec303a050533b8e730 Content-Type: text/plain; charset=UTF-8 Hello, I've been looking at this recently for moving Hive tables from on-premise clusters to the cloud, but the principle should be the same for your use-case. If you wish to do this in an automated way, some tools worth considering are: - Hive's built in replication framework: https://cwiki.apache.org/confluence/display/Hive/Replication - Hive's IMPORT/EXPORT primitives: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+ImportExport - AirBnB's ReAir replication tool: https://medium.com/airbnb-engineering/reair-easy-to-use-tools-for-migrating-and-replicating-petabyte-scale-data-warehouses-5153f8a433da Elliot. On 8 April 2016 at 23:24, Ashok Kumar wrote: > Hi, > > Anyone has suggestions how to create and copy Hive and Spark tables from > Production to UAT. > > One way would be to copy table data to external files and then move the > external files to a local target directory and populate the tables in > target Hive with data. > > Is there an easier way of doing so? > > thanks > > > --94eb2c000bec303a050533b8e730 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I've been looking at this re= cently for moving Hive tables from on-premise clusters to the cloud, but th= e principle should be the same for your use-case. If you wish to do this in= an automated way, some tools worth considering are:

On 8 April 2016 at 23:24, Ashok Kumar <ashok34668@yahoo.co= m> wrote:
Hi,

An= yone has suggestions how to create and copy Hive and Spark tables from Prod= uction to UAT.

One way wou= ld be to copy table data to external files and then move the external files= to a local target directory and populate the tables in target Hive with da= ta.

Is there an easier way= of doing so?

thanks
=



--94eb2c000bec303a050533b8e730--