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

MapReduce test fails with NoClassDefFoundError against hadoop3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-beta-2, 2.0.0
    • None
    • None
    • Reviewed

    Description

      When running mapreduce tests against hadoop3, I observed the following:

      [ERROR] testWithMockedMapReduceSingleRegion(org.apache.hadoop.hbase.mapred.TestTableSnapshotInputFormat)  Time elapsed: 0.024 s  <<< ERROR!
      java.lang.NoClassDefFoundError: org/apache/hadoop/hdfs/server/blockmanagement/BlockInfo
        at org.apache.hadoop.hbase.mapred.TestTableSnapshotInputFormat.testWithMockedMapReduce(TestTableSnapshotInputFormat.java:178)
      Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo
        at org.apache.hadoop.hbase.mapred.TestTableSnapshotInputFormat.testWithMockedMapReduce(TestTableSnapshotInputFormat.java:178)
      

      This was due to lack of dependency on hadoop-hdfs module in the hadoop-3.0 profile of hbase-mapreduce/pom.xml

      Attachments

        1. 19968.v1.txt
          0.6 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: