Uploaded image for project: 'Hama'
  1. Hama
  2. HAMA-1002

Add junit dependency to commons to compile with Hadoop 2.8+

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.1
    • Fix Version/s: 0.7.2
    • Component/s: build
    • Labels:
      None

      Description

      Compilation with Hadoop 2.8+ does not work because transitive dependencies for Hadoop have been changed:

      $ mvn clean package -Phadoop2 -Dhadoop.version=2.8.1 -DskipTests
      (snip)
      
      [INFO] Apache Hama parent POM ............................. SUCCESS [ 23.797 s]
      [INFO] pipes .............................................. SUCCESS [ 22.680 s]
      [INFO] commons ............................................ FAILURE [  6.662 s]
      [INFO] core ............................................... SKIPPED
      [INFO] graph .............................................. SKIPPED
      [INFO] machine learning ................................... SKIPPED
      [INFO] examples ........................................... SKIPPED
      [INFO] mesos .............................................. SKIPPED
      [INFO] yarn ............................................... SKIPPED
      [INFO] hama-dist .......................................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 53.544 s
      [INFO] Finished at: 2017-12-26T14:55:24+09:00
      [INFO] Final Memory: 62M/568M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project hama-commons: Compilation failure: Compilation failure: 
      [ERROR] /Users/ywkim/workspace/hama/commons/src/test/java/org/apache/hama/commons/math/TestDenseDoubleVector.java:[20,23] error: package org.junit does not exist
      [ERROR] /Users/ywkim/workspace/hama/commons/src/test/java/org/apache/hama/commons/math/TestDenseDoubleVector.java:[20,0] error: static import only from classes and interfaces
      [ERROR] /Users/ywkim/workspace/hama/commons/src/test/java/org/apache/hama/commons/math/TestDenseDoubleVector.java:[21,23] error: package org.junit does not exist
      
      (snip)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                warwithin YoungWoo Kim
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: