From 4d71f4e32fe55fe84e69e745150edd8f6d14c87f Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Wed, 20 Dec 2017 11:21:06 -0800 Subject: [PATCH] HBASE-19567 ClassNotFoundException: org.apache.hadoop.hbase.KeyValue$RawBytesComparator starting 2.0.0 over a 0.98.25 data. --- .../java/org/apache/hadoop/hbase/io/hfile/FixedFileTrailer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/FixedFileTrailer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/FixedFileTrailer.java index 672919dc71b..1a22cd6ae77 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/FixedFileTrailer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/FixedFileTrailer.java @@ -570,7 +570,7 @@ public class FixedFileTrailer { || (comparatorClassName .equals("org.apache.hadoop.hbase.CellComparator$MetaCellComparator"))) { comparatorKlass = MetaCellComparator.class; - } else if (comparatorClassName.equals("org.apache.hadoop.hbase.KeyValue.RawBytesComparator") + } else if (comparatorClassName.equals("org.apache.hadoop.hbase.KeyValue$RawBytesComparator") || comparatorClassName.equals("org.apache.hadoop.hbase.util.Bytes$ByteArrayComparator")) { // When the comparator to be used is Bytes.BYTES_RAWCOMPARATOR, we just return null from here // Bytes.BYTES_RAWCOMPARATOR is not a CellComparator