Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-3797

Fix the mismatched dependency versions in submodule hadoop-ozone-filesystem-hadoop2

    XMLWordPrintableJSON

Details

    Description

      when I compiled the whole project, I found the following error

      [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ hadoop-ozone-filesystem-hadoop2 ---
      [INFO] Compiling 5 source files to /Users/huangtao6/IDEA/apache/hadoop-ozone/hadoop-ozone/ozonefs-hadoop2/target/classes
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] cannot access org.apache.hadoop.classification.InterfaceAudience.Public
        class file for org.apache.hadoop.classification.InterfaceAudience$Public not found
      [INFO] 1 error
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  3.077 s
      [INFO] Finished at: 2020-06-14T14:37:22+08:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project hadoop-ozone-filesystem-hadoop2: Compilation failure
      [ERROR] cannot access org.apache.hadoop.classification.InterfaceAudience.Public
      [ERROR]   class file for org.apache.hadoop.classification.InterfaceAudience$Public not found
      

      I can reproduce that with `mvn -pl "hadoop-ozone/ozonefs-hadoop2" clean install`

      Attachments

        Issue Links

          Activity

            People

              marvelrock HuangTao
              marvelrock HuangTao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: