Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.3.0, 0.2.1
-
None
-
None
-
gman@gman-minty ~/workspace/incubator-blur $ mvn -version
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.6.0_45, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.8.0-19-generic", arch: "amd64", family: "unix"
gman@gman-minty ~/workspace/incubator-blur $gman@gman-minty ~/workspace/incubator-blur $ mvn -version Apache Maven 3.0.4 Maven home: /usr/share/maven Java version: 1.6.0_45, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-6-oracle/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "3.8.0-19-generic", arch: "amd64", family: "unix" gman@gman-minty ~/workspace/incubator-blur $
Description
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project blur-mapred: Compilation failure
[ERROR] /home/gman/workspace/incubator-blur/blur-mapred/src/main/java/org/apache/blur/mapreduce/lib/BlurOutputFormat.java:[421,27] <anonymous org.apache.blur.mapreduce.lib.BlurOutputFormat$BlurRecordWriter$1> is not abstract and does not override abstract method getUnderlyingCounter() in org.apache.hadoop.mapreduce.Counter
Caused because of this anonymous implementation of the Counter does not have getUnderlyingCounter() implemented. Seems to only happen on some compiler versions, I can cause it on 1.6.0_45 yet seems to pass on 1.6.0_31.
Suggest implementing the method even if it does nothing.
private Counter emptyCounter() {
return new Counter() {
};
}