Repository: hbase Updated Branches: refs/heads/branch-2 4fad3d96c -> 0887cdf1d
HBASE-19567 ClassNotFoundException: org.apache.hadoop.hbase.KeyValue$RawBytesComparator starting 2.0.0 over a 0.98.25 data. Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/0887cdf1 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/0887cdf1 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/0887cdf1 Branch: refs/heads/branch-2 Commit: 0887cdf1daa983dea6ce9a6feb75b63e3fc6df94 Parents: 4fad3d9 Author: Michael Stack <[email protected]> Authored: Wed Dec 20 11:21:06 2017 -0800 Committer: Michael Stack <[email protected]> Committed: Wed Dec 20 11:21:56 2017 -0800 ---------------------------------------------------------------------- .../java/org/apache/hadoop/hbase/io/hfile/FixedFileTrailer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/0887cdf1/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/FixedFileTrailer.java ---------------------------------------------------------------------- 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 672919d..1a22cd6 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
