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 1F48B113C2 for ; Wed, 23 Jul 2014 02:34:39 +0000 (UTC) Received: (qmail 59791 invoked by uid 500); 23 Jul 2014 02:34:37 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 59718 invoked by uid 500); 23 Jul 2014 02:34:36 -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 59705 invoked by uid 99); 23 Jul 2014 02:34:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 02:34:36 +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 (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.213.54 as permitted sender) Received: from [209.85.213.54] (HELO mail-yh0-f54.google.com) (209.85.213.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 02:34:33 +0000 Received: by mail-yh0-f54.google.com with SMTP id v1so389966yhn.27 for ; Tue, 22 Jul 2014 19:34:08 -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=zy89hEjBr6g/cLx1xzggBtJeKL/d8x2VBpDF3WtZCtc=; b=rJpvVUHW+QUHuVGC4uwP0wEqiPZ3SKUcu7uV3L+5GqJzVl5xP95aNSCpuGVFRoXPrq 4ndK7erFd9j2qhdCNQk3QzL8DZtY9w6yVMWyxYyCBrIuGr2F2V834oN0M9AwsTuJD72s /O+2fba2f0bnBXaufm+yenARvXdBq3/Tn1qgIW4sxxJtunI/8bVgEgBGYJvhJEQUQn6c NAmTqF4pyUCEIpAF3FSSV3m00R/6CkTUxvd0F5V3o97z+a/9Q1BUl5urj7Jr/KuHnq0q 7uIkA0pPJONfZDoe5onLcTlB22BlRcspp9JMQ8UGv2sYr+tZ+SZs6OAHS2l+qSfp8khm nnrw== MIME-Version: 1.0 X-Received: by 10.236.8.103 with SMTP id 67mr57975026yhq.29.1406082846830; Tue, 22 Jul 2014 19:34:06 -0700 (PDT) Received: by 10.170.136.14 with HTTP; Tue, 22 Jul 2014 19:34:06 -0700 (PDT) In-Reply-To: References: Date: Tue, 22 Jul 2014 19:34:06 -0700 Message-ID: Subject: Re: hfile 9.4 to 9.6 From: Ted Yu To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=089e01633c629c377204fed32c96 X-Virus-Checked: Checked by ClamAV on apache.org --089e01633c629c377204fed32c96 Content-Type: text/plain; charset=UTF-8 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 > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --089e01633c629c377204fed32c96--