Hadoop Common
  1. Hadoop Common
  2. HADOOP-8370

Native build failure: javah: class file for org.apache.hadoop.classification.InterfaceAudience not found

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.1
    • Fix Version/s: 0.23.3, 2.0.2-alpha
    • Component/s: native
    • Labels:
      None
    • Environment:

      Description

      [INFO] — native-maven-plugin:1.0-alpha-7:javah (default) @ hadoop-common —
      [INFO] /bin/sh -c cd /build/hadoop-common/hadoop-common-project/hadoop-common && /usr/lib/jvm/jdk1.7.0_02/bin/javah -d /build/hadoop-common/hadoop-common-project/hadoop-common/target/native/javah -classpath <...> org.apache.hadoop.io.compress.zlib.ZlibDecompressor org.apache.hadoop.security.JniBasedUnixGroupsMapping org.apache.hadoop.io.nativeio.NativeIO org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping org.apache.hadoop.io.compress.snappy.SnappyCompressor org.apache.hadoop.io.compress.snappy.SnappyDecompressor org.apache.hadoop.io.compress.lz4.Lz4Compressor org.apache.hadoop.io.compress.lz4.Lz4Decompressor org.apache.hadoop.util.NativeCrc32
      Cannot find annotation method 'value()' in type 'org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate': class file for org.apache.hadoop.classification.InterfaceAudience not found
      Cannot find annotation method 'value()' in type 'org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate'
      Error: cannot access org.apache.hadoop.classification.InterfaceStability
      class file for org.apache.hadoop.classification.InterfaceStability not found

      The fix for me was to changing the scope of hadoop-annotations from
      "provided" to "compile" in pom.xml:

      <dependency>
      <groupId>org.apache.hadoop</groupId>
      <artifactId>hadoop-annotations</artifactId>
      <scope>compile</scope>
      </dependency>

      For some reason, it was the only dependency with scope "provided".

      1. HADOOP-8370.patch
        0.5 kB
        Trevor Robinson

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Trevor Robinson
            Reporter:
            Trevor Robinson
          • Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development