Repository: hbase Updated Branches: refs/heads/master 084e324fb -> 4d71f4e32
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/4d71f4e3 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/4d71f4e3 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/4d71f4e3 Branch: refs/heads/master Commit: 4d71f4e32fe55fe84e69e745150edd8f6d14c87f Parents: 084e324 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:06 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/4d71f4e3/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
