hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Somogyi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-19968) MapReduce test fails with NoClassDefFoundError against hadoop3
Date Mon, 12 Feb 2018 16:28:00 GMT

    [ https://issues.apache.org/jira/browse/HBASE-19968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16361011#comment-16361011
] 

Peter Somogyi commented on HBASE-19968:
---------------------------------------

+1

Thanks [~yuzhihong@gmail.com]! The -Phadoop.profile=3.0 was the problem for me. I got that
from main pom:

<!--
 profile for building against Hadoop 3.0.0. Activate using:
 mvn -Dhadoop.profile=3.0
 -->

Shall I file an issue to fix the comment?

> MapReduce test fails with NoClassDefFoundError against hadoop3
> --------------------------------------------------------------
>
>                 Key: HBASE-19968
>                 URL: https://issues.apache.org/jira/browse/HBASE-19968
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>            Priority: Major
>         Attachments: 19968.v1.txt
>
>
> When running mapreduce tests against hadoop3, I observed the following:
> {code}
> [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)
> {code}
> This was due to lack of dependency on hadoop-hdfs module in the hadoop-3.0 profile of
hbase-mapreduce/pom.xml



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message