Hi,

What JDK version are you using to compile?

On Sat, Apr 28, 2012 at 7:53 AM, ASHISH ATTARDE <ashish.at...@gmail.com> wrote:
> My build for naitive binaries is failing with following error. I used
> -DskipTests as few unit tests are also broke
>
> I am new to Hadoop development, can anyone guide/help me or direct me to
> right direction?
> My source code version is recent one cause this evening only I checked out
> with svn.
>
> $ mvn assembly:assembly -Pnative -DskipTests
>
> .
> .
> .
> .
> [INFO] Executed tasks
> [INFO]
> [INFO] --- maven-dependency-plugin:2.1:build-classpath (build-classpath) @
> hadoop-auth ---
> [INFO] Skipped writing classpath file
> '/home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-auth/target/classes/mrapp-generated-classpath'.
>  No changes found.
> [INFO]
> [INFO] <<< maven-source-plugin:2.1.2:jar (default) @ hadoop-auth <<<
> [INFO]
> [INFO] --- maven-source-plugin:2.1.2:jar (default) @ hadoop-auth ---
> [INFO]
> [INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ hadoop-auth ---
> [INFO]
> [INFO] --- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @
> hadoop-auth ---
> [INFO]
>
> [INFO]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> [INFO] Forking Apache Hadoop Auth Examples 3.0.0-SNAPSHOT
> [INFO]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> [INFO]
> [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @
> hadoop-auth-examples ---
> [INFO] Executing tasks
>
> main:
> [INFO] Executed tasks
> [INFO]
> [INFO] --- maven-dependency-plugin:2.1:build-classpath (build-classpath) @
> hadoop-auth-examples ---
> [INFO] Skipped writing classpath file
> '/home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-auth-examples/target/classes/mrapp-generated-classpath'.
>  No changes found.
> [INFO]
> [INFO] --- maven-resources-plugin:2.2:resources (default-resources) @
> hadoop-auth-examples ---
> [INFO] Using default encoding to copy filtered resources.
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> hadoop-auth-examples ---
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] --- maven-resources-plugin:2.2:testResources (default-testResources)
> @ hadoop-auth-examples ---
> [INFO] Using default encoding to copy filtered resources.
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
> hadoop-auth-examples ---
> [INFO] No sources to compile
> [INFO]
> [INFO] --- maven-surefire-plugin:2.12:test (default-test) @
> hadoop-auth-examples ---
> [INFO] Tests are skipped.
> [INFO]
> [INFO] --- maven-war-plugin:2.1:war (default-war) @ hadoop-auth-examples ---
> [INFO] Packaging webapp
> [INFO] Assembling webapp [hadoop-auth-examples] in
> [/home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-auth-examples/target/hadoop-auth-examples-3.0.0-SNAPSHOT]
> [INFO] Processing war project
> [INFO] Copying webapp resources
> [/home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-auth-examples/src/main/webapp]
> [INFO] Webapp assembled in [41 msecs]
> [INFO] Building war:
> /home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-auth-examples/target/hadoop-auth-examples.war
> [INFO] WEB-INF/web.xml already added, skipping
> [INFO]
> [INFO] --- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @
> hadoop-auth-examples ---
> [INFO]
>
> [INFO]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> [INFO] Forking Apache Hadoop Common 3.0.0-SNAPSHOT
> [INFO]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> [INFO]
> [INFO] --- maven-antrun-plugin:1.6:run (create-testdirs) @ hadoop-common ---
> [INFO] Executing tasks
>
> main:
> [INFO] Executed tasks
> [INFO]
> [INFO] --- build-helper-maven-plugin:1.5:add-source (add-source) @
> hadoop-common ---
> [INFO] Source directory:
> /home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-common/target/generated-sources/java
> added.
> [INFO]
> [INFO] --- build-helper-maven-plugin:1.5:add-test-source (add-test-source)
> @ hadoop-common ---
> [INFO] Test Source directory:
> /home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-common/target/generated-test-sources/java
> added.
> [INFO]
> [INFO] --- maven-antrun-plugin:1.6:run (compile-proto) @ hadoop-common ---
> [INFO] Executing tasks
>
> main:
> [INFO] Executed tasks
> [INFO]
> [INFO] --- maven-antrun-plugin:1.6:run (save-version) @ hadoop-common ---
> [INFO] Executing tasks
>
> main:
> [INFO] Executed tasks
> [INFO]
> [INFO] --- maven-dependency-plugin:2.1:build-classpath (build-classpath) @
> hadoop-common ---
> [INFO] Skipped writing classpath file
> '/home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-common/target/classes/mrapp-generated-classpath'.
>  No changes found.
> [INFO]
> [INFO] --- maven-resources-plugin:2.2:resources (default-resources) @
> hadoop-common ---
> [INFO] Using default encoding to copy filtered resources.
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> hadoop-common ---
> [INFO] Compiling 8 source files to
> /home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-common/target/classes
> [INFO]
> [INFO] --- maven-antrun-plugin:1.6:run (compile) @ hadoop-common ---
> [INFO] Executing tasks
>
> main:
> [INFO] Executed tasks
> [INFO]
> [INFO] --- native-maven-plugin:1.0-alpha-7:javah (default) @ hadoop-common
> ---
> [INFO] /bin/sh -c cd
> /home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-common &&
> /usr/lib/jvm/jdk1.7.0/bin/javah -d
> /home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-common/target/native/javah
> -classpath
> /home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-common/target/classes:/home/zylops/.m2/repository/com/google/guava/guava/11.0.2/guava-11.0.2.jar:/home/zylops/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar:/home/zylops/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/home/zylops/.m2/repository/org/apache/commons/commons-math/2.1/commons-math-2.1.jar:/home/zylops/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/home/zylops/.m2/repository/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar:/home/zylops/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar:/home/zylops/.m2/repository/commons-net/commons-net/3.1/commons-net-3.1.jar:/home/zylops/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar:/home/zylops/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/home/zylops/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/home/zylops/.m2/repository/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/home/zylops/.m2/repository/asm/asm/3.2/asm-3.2.jar:/home/zylops/.m2/repository/com/sun/jersey/jersey-core/1.8/jersey-core-1.8.jar:/home/zylops/.m2/repository/com/sun/jersey/jersey-json/1.8/jersey-json-1.8.jar:/home/zylops/.m2/repository/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/home/zylops/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/home/zylops/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/home/zylops/.m2/repository/javax/xml/bind/jaxb-api/2.2.2/jaxb-api-2.2.2.jar:/home/zylops/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/home/zylops/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.8.8/jackson-core-asl-1.8.8.jar:/home/zylops/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.8.8/jackson-jaxrs-1.8.8.jar:/home/zylops/.m2/repository/org/codehaus/jackson/jackson-xc/1.8.8/jackson-xc-1.8.8.jar:/home/zylops/.m2/repository/com/sun/jersey/jersey-server/1.8/jersey-server-1.8.jar:/home/zylops/.m2/repository/tomcat/jasper-compiler/5.5.23/jasper-compiler-5.5.23.jar:/home/zylops/.m2/repository/tomcat/jasper-runtime/5.5.23/jasper-runtime-5.5.23.jar:/home/zylops/.m2/repository/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar:/home/zylops/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar:/home/zylops/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/home/zylops/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar:/home/zylops/.m2/repository/log4j/log4j/1.2.15/log4j-1.2.15.jar:/home/zylops/.m2/repository/net/java/dev/jets3t/jets3t/0.6.1/jets3t-0.6.1.jar:/home/zylops/.m2/repository/commons-lang/commons-lang/2.5/commons-lang-2.5.jar:/home/zylops/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/home/zylops/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/home/zylops/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/home/zylops/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/home/zylops/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar:/home/zylops/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/home/zylops/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar:/home/zylops/.m2/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar:/home/zylops/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar:/home/zylops/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.8.8/jackson-mapper-asl-1.8.8.jar:/home/zylops/.m2/repository/org/aspectj/aspectjrt/1.6.5/aspectjrt-1.6.5.jar:/home/zylops/.m2/repository/org/apache/avro/avro/1.5.3/avro-1.5.3.jar:/home/zylops/.m2/repository/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/home/zylops/.m2/repository/org/xerial/snappy/snappy-java/
> 1.0.3.2/snappy-java-1.0.3.2.jar:/home/zylops/.m2/repository/net/sf/kosmosfs/kfs/0.3/kfs-0.3.jar:/home/zylops/.m2/repository/com/google/protobuf/protobuf-java/2.4.0a/protobuf-java-2.4.0a.jar:/home/zylops/TestArena/hadoop-trunk/hadoop-common-project/hadoop-auth/target/hadoop-auth-3.0.0-SNAPSHOT.jar:/home/zylops/.m2/repository/com/googlecode/json-simple/json-simple/1.1/json-simple-1.1.jar:/home/zylops/.m2/repository/com/jcraft/jsch/0.1.42/jsch-0.1.42.jar:/home/zylops/.m2/repository/org/apache/zookeeper/zookeeper/3.4.2/zookeeper-3.4.2.jar:/home/zylops/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar:/home/zylops/.m2/repository/org/jboss/netty/netty/3.2.3.Final/netty-3.2.3.Final.jar:/usr/lib/jvm/jdk1.7.0/jre/../lib/tools.jarorg.apache.hadoop.io.compress.zlib.ZlibCompressor
> 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
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Hadoop Annotations ......................... SKIPPED
> [INFO] Apache Hadoop Auth ................................ SKIPPED
> [INFO] Apache Hadoop Auth Examples ....................... SKIPPED
> [INFO] Apache Hadoop Common .............................. SKIPPED
> [INFO] Apache Hadoop Common Project ...................... FAILURE [6.965s]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 7.752s
> [INFO] Finished at: Fri Apr 27 22:11:54 EDT 2012
> [INFO] Final Memory: 27M/310M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.codehaus.mojo:native-maven-plugin:1.0-alpha-7:javah (default) on
> project hadoop-common: Error running javah command: Error executing command
> line. Exit code:1 -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :hadoop-common
> .
> .
> .
> .



-- 
Harsh J

Reply via email to