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 94B6E11A9F for ; Wed, 9 Jul 2014 21:26:30 +0000 (UTC) Received: (qmail 1692 invoked by uid 500); 9 Jul 2014 21:26:28 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 1613 invoked by uid 500); 9 Jul 2014 21:26:28 -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 1599 invoked by uid 99); 9 Jul 2014 21:26:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 21:26:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lhofhansl@yahoo.com designates 98.138.91.23 as permitted sender) Received: from [98.138.91.23] (HELO nm8-vm0.bullet.mail.ne1.yahoo.com) (98.138.91.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2014 21:26:24 +0000 Received: from [98.138.100.115] by nm8.bullet.mail.ne1.yahoo.com with NNFMP; 09 Jul 2014 21:25:58 -0000 Received: from [98.139.212.246] by tm106.bullet.mail.ne1.yahoo.com with NNFMP; 09 Jul 2014 21:25:58 -0000 Received: from [127.0.0.1] by omp1055.mail.bf1.yahoo.com with NNFMP; 09 Jul 2014 21:25:58 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 684936.62643.bm@omp1055.mail.bf1.yahoo.com Received: (qmail 813 invoked by uid 60001); 9 Jul 2014 21:25:58 -0000 X-YMail-OSG: C4W1PrsVM1mokDrfhXV460jY.SIKZo2a_hM82ii0kOlJTyI exKUvnprS4RHQ_FnssZJmjNOrp3v8ej2duqGE4qbLX2WibJG_4X435bZZUpp kP3gceO__z0gn07Vl7.vCsWf39EO7cYzfQxLVV8ox1HjciSxen6pIDwbALgo PoSrTyrGtd9WOcZ3Du1Yx6Bj0OYlt7L05s0_.yMO8sPHCFncrbe76ZKr1B9m wxvhRGTY60zk774nwRN1TN9vlQu4ACeWairua1D4w8e38A0_I5Hanf1.sGKp zLvqmYND2ZgNvKDy_d2TyWswiX4egEKcrFrcHmW9FiFRCvQCO29vD_qzWcD0 ssNWmSpm35TO71dWsyAAI.pCttqJnE2MwsDBq8TOt1AiZFgDz86G8Ffofchf RlXhEtM3EEn919ptH73VV3S7PUYf5P2Z3Agc1W1skmphW8e3Eg6.ZmvH28bq OzJD77y7aq25gLQDrg2MoNPui6qdj5m2soaGVUNPowuzkia0WxB6KJ37fLBt fVusidAqs.9G.0pCVvLcv2Xd2bjOFq6UKpxiKsob1bEwcHaRyhA-- Received: from [93.213.24.43] by web140602.mail.bf1.yahoo.com via HTTP; Wed, 09 Jul 2014 14:25:58 PDT X-Rocket-MIMEInfo: 002.001,Tm90IHN1cmUgbWFueSBwZW9wbGUgaGF2ZSB0cmllZCB0aGF0IGhlcmUuIFNvdW5kcyBsaWtlIGl0IHNob3VsZCB3b3JrLCB0aG91Z2guCgoKQW55IGNoYW5jZSB5b3UgY291bGQgc2V0IHVwIGEgc2luZ2xlIG5vZGUgY2x1c3RlciAoaS5lLiBydW4gYSBzaW5nbGUgbm9kZSBIREZTIGFuZCBIQmFzZSBvbiB0aGUgc2FtZSBtYWNoaW5lKSBhbmQgdHJ5PwpTaG91bGQgbm90IGJlIGhhcmQgdG8gc2V0dXAsIGFuZCB3b3VsZCBiZSB2YWx1YWJsZSBmb3IgZm9sa3MgaGVyZSB0byBrbm93LgoKCi0tIExhcnMKCgoKX18BMAEBAQE- X-RocketYMMF: lhofhansl X-Mailer: YahooMailWebService/0.8.191.1 References: <75E9B3D687D9BA43A99B7097A074C5B5297566D1@szxeml501-mbx.china.huawei.com> Message-ID: <1404941158.26841.YahooMailNeo@web140602.mail.bf1.yahoo.com> Date: Wed, 9 Jul 2014 14:25:58 -0700 From: lars hofhansl Reply-To: lars hofhansl Subject: Re: HBase Upgrade from 0.94.x to 0.98.x: How to do rollback? To: "user@hbase.apache.org" In-Reply-To: <75E9B3D687D9BA43A99B7097A074C5B5297566D1@szxeml501-mbx.china.huawei.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-118416272-763417271-1404941158=:26841" X-Virus-Checked: Checked by ClamAV on apache.org ---118416272-763417271-1404941158=:26841 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Not sure many people have tried that here. Sounds like it should work, thou= gh.=0A=0A=0AAny chance you could set up a single node cluster (i.e. run a s= ingle node HDFS and HBase on the same machine) and try?=0AShould not be har= d to setup, and would be valuable for folks here to know.=0A=0A=0A-- Lars= =0A=0A=0A=0A________________________________=0A From: Kiran Kumar.M.R =0ATo: "user@hbase.apache.org" =0ASent: Wednesday, July 9, 2014 1:42 PM=0ASubject: HBase Upgrade from 0.= 94.x to 0.98.x: How to do rollback?=0A =0A=0AHi,=0AWe are proposing upgrade= solution to one of our customers.=0A=0ACurrent Version:=A0 Hadoop 2.0.1+Hb= ase 0.94.11+ ZK=0AUpgrade Version: Hadoop 2.3+HBase 0.98 +ZK=0A=0ACurrent C= luster Setup:=A0 =A0 with 50+ nodes storing 300TB of HBase data=0AAll compo= nents are installed under $HADOOP_V1.=0ANN, DN and ZK directories are exter= nal.=0A=0AMain requirement is that customer wants to rollback to old versio= n in case of any failures during the upgrade.=0AHDFS provides rollback opti= on. HBase has no rollback option. To overcome this, I am thinking of runnin= g HBase upgrade under hdfs -upgrade step.=0A=0ADetailed steps are given bel= ow:=0A=0A1.=A0 =A0 =A0 Shutdown $HADOOP_V1 cluster=0A=0A2.=A0 =A0 =A0 Take = backup of $NN_DR and $ZK_DIR=0A=0A3.=A0 =A0 =A0 Install new version (Hadoop= 2.3+HBase 0.98 +ZK) under new directory on same nodes i.e $HADOOP_V2=0A=0A= 4.=A0 =A0 =A0 Configure it to use existing folders $NN_DIR, $DN_DIR, $ZK_DI= R=0A=0A5.=A0 =A0 =A0 Start Zk=0A=0A6.=A0 =A0 =A0 Start hdfs with -upgrade o= ption=0A=0A7.=A0 =A0 =A0 Start hbase upgrade tool=A0 "$ bin/hbase upgrade -= execute"=0A=0A8.=A0 =A0 =A0 In case of any failure do rollback=0A=0Aa.=A0 = =A0 =A0 HDFS rollback=0A=0Ab.=A0 =A0 =A0 Stop ZK and recover old ZK data ba= ckup to ZK_DIR=0A=0Ac.=A0 =A0 =A0 Start old version $HA DOOP_V1 (HBase 0.94= should work as HDFS rollback should revert namespace and other changes don= e by meta data tool)=0A=0A9.=A0 =A0 =A0 If HBase upgrade is fine, finalize = upgrade=0A=0Aa.=A0 =A0 =A0 HDFS finalizeUpgrade=0A=0Ab.=A0 =A0 =A0 Delete o= ld version=0A=0AI am mainly concerned about step 8, is this rollback expect= ed to work?=0AAre there any better alternatives to do HBase rollback.=0A=0A= Regards,=0AKiran ---118416272-763417271-1404941158=:26841--