Uploaded image for project: 'Apache Blur'
  1. Apache Blur
  2. BLUR-279

Compile Error building Blur-mapred class BlurOutputFormat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3.0, 0.2.1
    • 0.3.0, 0.2.1
    • None
    • None

    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() {
      };
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            gbarton Garrett Barton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: