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 F2E991102D for ; Thu, 24 Jul 2014 01:04:17 +0000 (UTC) Received: (qmail 42400 invoked by uid 500); 24 Jul 2014 01:04:15 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 42338 invoked by uid 500); 24 Jul 2014 01:04:15 -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 42326 invoked by uid 99); 24 Jul 2014 01:04:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 01:04:14 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yuzhihong@gmail.com designates 209.85.213.50 as permitted sender) Received: from [209.85.213.50] (HELO mail-yh0-f50.google.com) (209.85.213.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2014 01:04:09 +0000 Received: by mail-yh0-f50.google.com with SMTP id v1so1386054yhn.23 for ; Wed, 23 Jul 2014 18:03:48 -0700 (PDT) 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=9meblx9qEtF5Rlui05ddmwxlYse5W1vg+0HzFVK1Sko=; b=KMfgeL4g9OojlzrxFtCaaeGa5FMqUf//sYa5Oge90akm5zSIpjVeET0VvpgpyMk0AP 21noMM7vpyq5N87m+ZH4VMYqVrX/N3nAW0IrwRRPrWaJ0dFxjcxVJWEy5/ek8hUnTmfm B/gRxgGMiyajjJ92u4/cc6tayvgj3Lm4EEDoxI5ii7hYvOWDU+Eo+N3dur1RT94nL9A9 a4vAbSWR1ERus/T8vh4oi7IX4kGjKjhgUtHRBOsQnsHxW1cqn/sPxOZLNCxmqhVRye3D 0RKF6Cf+WrP/lx+3BPnC0wZCH/sMjmVycTCCcZ/SDja9uflJk6MREg4Ei3zyGsw8ZNtc 3zWA== MIME-Version: 1.0 X-Received: by 10.236.69.193 with SMTP id n41mr6875498yhd.73.1406163828729; Wed, 23 Jul 2014 18:03:48 -0700 (PDT) Received: by 10.170.136.14 with HTTP; Wed, 23 Jul 2014 18:03:48 -0700 (PDT) In-Reply-To: References: Date: Wed, 23 Jul 2014 18:03:48 -0700 Message-ID: Subject: Re: hfile 9.4 to 9.6 From: Ted Yu To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=047d7b5d61e481f0d404fee6070e X-Virus-Checked: Checked by ClamAV on apache.org --047d7b5d61e481f0d404fee6070e Content-Type: text/plain; charset=UTF-8 Please take a look at: HBASE-9360 Enable 0.94 -> 0.96 replication to minimize upgrade down time Cheers On Wed, Jul 23, 2014 at 10:12 AM, Guangle Fan wrote: > Not as described in the instruction page shutting down the cluster and do > in-place upgrading. Yes, the process is to migrate table to another cluster > without service downtime. The other cluster is already 0.96. How is the > process of doing migration ? > > > On Tue, Jul 22, 2014 at 7:34 PM, Ted Yu wrote: > > > You mean the snapshot(s) taken by the 0.94.x release ? > > 0.98 release is fully compatible in snapshot directory structure with > that > > of 0.94 > > > > Cheers > > > > > > On Tue, Jul 22, 2014 at 7:01 PM, Qiang Tian wrote: > > > > > what about snapshot? > > > > > > > > > On Wed, Jul 23, 2014 at 7:49 AM, Guangle Fan > > wrote: > > > > > > > Hi, Ted you are right, hfiles on 0.94 cluster are v2 by default. I > > > > actually don't need the convert tool. > > > > > > > > To migrate that data to another 0.96 cluster, does it work by copying > > > over > > > > hfiles ? How to handle the meta data of the table in the new cluster > ? > > > > > > > > > > > > On Tue, Jul 22, 2014 at 3:46 PM, Ted Yu wrote: > > > > > > > > > The subject of this thread says '9.4' - I assume you meant '0.94' > > > > release. > > > > > If so, please make correction in the subject. > > > > > > > > > > Looking at hbase-default.xml from 0.94 branch: > > > > > > > > > > > > > > > hfile.format.version > > > > > 2 > > > > > > > > > > The HFile format version to use for new files. Set this > to > > 1 > > > to > > > > > test > > > > > backwards-compatibility. The default value of this option > > > > should > > > > > be > > > > > consistent with FixedFileTrailer.MAX_VERSION. > > > > > > > > > > > > > > > > > > > > Are you running 0.94 cluster with the above config value being 1 ? > > > > > > > > > > Cheers > > > > > > > > > > On Tue, Jul 22, 2014 at 3:27 PM, Guangle Fan > > > > > wrote: > > > > > > > > > > > Ted Thanks for your answer! > > > > > > > > > > > > Actually that wouldn't convert automatically. The problem is 0.94 > > is > > > > > using > > > > > > hfileV1, and that is online cluster that I can't shut down and do > > > hbase > > > > > > upgrade/check file, thus I can't convert the file to v2. The idea > > is > > > > copy > > > > > > over the hfilleV1 to another 0.96 cluster and convert to hfileV2. > > Any > > > > > handy > > > > > > tool there I can use to do the convert and hfile loading in the > new > > > > > > cluster, or you guys have another way to handle this case ? > > > Converting > > > > to > > > > > > sequence files ? > > > > > > > > > > > > > > > > > > On Tue, Jul 22, 2014 at 3:00 PM, Ted Yu > > wrote: > > > > > > > > > > > > > Guangle: > > > > > > > For 0.94 cluster, you can perform major compaction after which > > your > > > > > > HFiles > > > > > > > would be converted to HFileV2. > > > > > > > > > > > > > > Cheers > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 22, 2014 at 1:54 PM, Guangle Fan < > > fanguangle@gmail.com > > > > > > > > > > wrote: > > > > > > > > > > > > > > > Thanks Nick! > > > > > > > > For some reason, I can't do a in-place upgrading for the > > cluster. > > > > Is > > > > > > > there > > > > > > > > a tool there I can use to convert hfileV1 to hfileV2 ? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 22, 2014 at 1:43 PM, Nick Dimiduk < > > > ndimiduk@gmail.com> > > > > > > > wrote: > > > > > > > > > > > > > > > > > Hi Guangle, > > > > > > > > > > > > > > > > > > Please have a look at the online book, there's a section on > > > > > upgrades. > > > > > > > > Also, > > > > > > > > > please consider upgrading to 0.98. The 0.96 line is in > > minimum > > > > > > > > maintenance > > > > > > > > > mode and 0.98 is considered the stable/production line. > > > > > > > > > > > > > > > > > > http://hbase.apache.org/book.html#upgrading > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > Nick > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Jul 22, 2014 at 1:24 PM, Guangle Fan < > > > > fanguangle@gmail.com > > > > > > > > > > > > > > wrote: > > > > > > > > > > > > > > > > > > > Hi, All > > > > > > > > > > > > > > > > > > > > I have hfiles in HBase 9.4 cluster that I want to migrate > > to > > > > > HBase > > > > > > > 9.6 > > > > > > > > > > cluster. > > > > > > > > > > > > > > > > > > > > What's the proper process to handle this ? > > > > > > > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > > > > > > > > > Guangle > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --047d7b5d61e481f0d404fee6070e--