Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21525

java.io.IOException: java.lang.ClassNotFoundException: clone_snapshot from hbase2.0.0 to hbase1.2.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.2.0, 2.0.0
    • None
    • snapshots
    • None

    Description

      When I use 

      hbase org.apache.hadoop.hbase.snapshot.ExportSnapshot -snapshot "wh_scan_issue_monitor_on_snap_1" -copy-from hdfs://xxxx:8020/hbase  -copy-to hdfs://xxx:8020/hbase
      

      to copy snapshot from hbase2.0.0 to hbase 1.2.0 and then use

      clone_snapshot 'wh_scan_issue_monitor_on_snap_1',"wh_scan_issue_monitor_table"

      to restore the table;

      There are no errors on client and hbase master.

      but I can not scan any data in this new table.

      So when I search the log in regionserver which that region running on .I find the below error log

       

      2018-11-29 13:39:45,826 ERROR org.apache.hadoop.hbase.regionserver.StoreFile$Reader: Error reading bloom filter meta for GENERAL_BLOOM_META -- proceeding without
      java.io.IOException: java.lang.ClassNotFoundException:
      at org.apache.hadoop.hbase.io.hfile.FixedFileTrailer.getComparatorClass(FixedFileTrailer.java:581)
      at org.apache.hadoop.hbase.io.hfile.FixedFileTrailer.createComparator(FixedFileTrailer.java:588)
      at org.apache.hadoop.hbase.util.CompoundBloomFilter.<init>(CompoundBloomFilter.java:73)
      at org.apache.hadoop.hbase.util.BloomFilterFactory.createFromMeta(BloomFilterFactory.java:109)
      at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.loadBloomfilter(StoreFile.java:1469)
      at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.access$000(StoreFile.java:1088)
      at org.apache.hadoop.hbase.regionserver.StoreFile.open(StoreFile.java:465)
      at org.apache.hadoop.hbase.regionserver.StoreFile.createReader(StoreFile.java:509)
      at org.apache.hadoop.hbase.regionserver.StoreFile.createReader(StoreFile.java:499)
      at org.apache.hadoop.hbase.regionserver.HStore.createStoreFileAndReader(HStore.java:676)
      at org.apache.hadoop.hbase.regionserver.HStore.access$000(HStore.java:119)
      at org.apache.hadoop.hbase.regionserver.HStore$1.call(HStore.java:543)
      at org.apache.hadoop.hbase.regionserver.HStore$1.call(HStore.java:540)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.ClassNotFoundException:
      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:578)
      ... 18 more
      
      

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rebornHuan huan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: