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 050D9200BE3 for ; Wed, 7 Dec 2016 10:55:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 029E3160B0A; Wed, 7 Dec 2016 09:55:02 +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 5357C160B26 for ; Wed, 7 Dec 2016 10:55:01 +0100 (CET) Received: (qmail 46431 invoked by uid 500); 7 Dec 2016 09:55:00 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 46234 invoked by uid 99); 7 Dec 2016 09:55:00 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2016 09:55:00 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 190952C03E7 for ; Wed, 7 Dec 2016 09:55:00 +0000 (UTC) Date: Wed, 7 Dec 2016 09:55:00 +0000 (UTC) From: "Anoop Sam John (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-16189) [Rolling Upgrade] 2.0 hfiles cannot be opened by 1.x servers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 07 Dec 2016 09:55:02 -0000 [ https://issues.apache.org/jira/browse/HBASE-16189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15728315#comment-15728315 ] Anoop Sam John commented on HBASE-16189: ---------------------------------------- This issue came up again in the dev@ discussion thread. We fixed this in later versions of 1.x means when rolling upgrade done to 2.0, first users have to upgrade to some 1.x versions which is having this fix and then to 2.0.. What do you guys think? Whether we should avoid this kind of indirection? cc [~enis], [~saint.ack@gmail.com], [~tedyu], [~mbertozzi] > [Rolling Upgrade] 2.0 hfiles cannot be opened by 1.x servers > ------------------------------------------------------------ > > Key: HBASE-16189 > URL: https://issues.apache.org/jira/browse/HBASE-16189 > Project: HBase > Issue Type: Sub-task > Components: migration > Reporter: Enis Soztutar > Assignee: ramkrishna.s.vasudevan > Priority: Critical > Fix For: 1.3.0, 1.4.0, 1.1.6, 1.2.3 > > Attachments: HBASE-16189.branch-1.patch, HBASE-16189.patch, HBASE-16189_branch-1.patch > > > HBASE-10800 added MetaCellComparator, which gets written to the HFile. 1.x code does not have the new class, hence fails to open the regions. I did not check whether this is only for meta or for regular tables as well. > {code} > Caused by: org.apache.hadoop.hbase.io.hfile.CorruptHFileException: Problem reading HFile Trailer from file hdfs://cn017.l42scl.hortonworks.com:8020/apps/hbase/data/data/hbase/meta/1588230740/info/aa96e4ef463b4a82956330b236440437 > at org.apache.hadoop.hbase.io.hfile.HFile.pickReaderVersion(HFile.java:483) > at org.apache.hadoop.hbase.io.hfile.HFile.createReader(HFile.java:511) > at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.(StoreFile.java:1123) > at org.apache.hadoop.hbase.regionserver.StoreFileInfo.open(StoreFileInfo.java:267) > at org.apache.hadoop.hbase.regionserver.StoreFile.open(StoreFile.java:409) > at org.apache.hadoop.hbase.regionserver.StoreFile.createReader(StoreFile.java:512) > at org.apache.hadoop.hbase.regionserver.HStore.createStoreFileAndReader(HStore.java:687) > at org.apache.hadoop.hbase.regionserver.HStore.access$000(HStore.java:130) > at org.apache.hadoop.hbase.regionserver.HStore$1.call(HStore.java:554) > at org.apache.hadoop.hbase.regionserver.HStore$1.call(HStore.java:551) > ... 6 more > Caused by: java.io.IOException: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.CellComparator$MetaCellComparator > at org.apache.hadoop.hbase.io.hfile.FixedFileTrailer.getComparatorClass(FixedFileTrailer.java:581) > at org.apache.hadoop.hbase.io.hfile.FixedFileTrailer.deserializeFromPB(FixedFileTrailer.java:300) > at org.apache.hadoop.hbase.io.hfile.FixedFileTrailer.deserialize(FixedFileTrailer.java:242) > at org.apache.hadoop.hbase.io.hfile.FixedFileTrailer.readFromStream(FixedFileTrailer.java:407) > at org.apache.hadoop.hbase.io.hfile.HFile.pickReaderVersion(HFile.java:468) > ... 15 more > Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.CellComparator$MetaCellComparator > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:264) > at org.apache.hadoop.hbase.io.hfile.FixedFileTrailer.getComparatorClass(FixedFileTrailer.java:579) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)