Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11123 Fix Java 9 incompatibilies in Hadoop
  3. HADOOP-15895

[JDK9+] Add missing javax.annotation-api dependency to hadoop-yarn-csi

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: build
    • Labels:
      None

      Description

      Javadoc build fails in hadoop-yarn-csi due to missing javax.annotation.

      $ mvn javadoc:javadoc --projects hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi
      ...
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (module-javadocs) on project hadoop-yarn-csi: MavenReportException: Error while generating Javadoc:
      [ERROR] Exit code: 1 - /hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/target/generated-sources/protobuf/grpc-java/csi/v0/IdentityGrpc.java:20: error: cannot find symbol
      [ERROR] @javax.annotation.Generated(
      [ERROR]                  ^
      [ERROR]   symbol:   class Generated
      [ERROR]   location: package javax.annotation
      [ERROR] /hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/target/generated-sources/protobuf/grpc-java/csi/v0/ControllerGrpc.java:20: error: cannot find symbol
      [ERROR] @javax.annotation.Generated(
      [ERROR]                  ^
      [ERROR]   symbol:   class Generated
      [ERROR]   location: package javax.annotation
      [ERROR] /hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/target/generated-sources/protobuf/grpc-java/csi/v0/NodeGrpc.java:20: error: cannot find symbol
      [ERROR] @javax.annotation.Generated(
      [ERROR]                  ^
      [ERROR]   symbol:   class Generated
      [ERROR]   location: package javax.annotation
      [ERROR]
      [ERROR] Command line was: /usr/java/jdk-9.0.4/bin/javadoc @options @packages
      

        Attachments

        1. HADOOP-15895.1.patch
          1 kB
          Takanobu Asanuma

          Issue Links

            Activity

              People

              • Assignee:
                tasanuma Takanobu Asanuma
                Reporter:
                tasanuma Takanobu Asanuma
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: