Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # dev >> Unable to build native binaries


Copy link to this message
-
Re: Unable to build native binaries
I'm hitting this issue too, with this configuration:

Apache Maven 3.0.4 (r1232337; 2012-01-17 02:44:56-0600)
Maven home: /usr/local/apache-maven-3.0.4
Java version: 1.7.0_04, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk1.7.0_04/jre
Default locale: en_US, platform encoding: ISO-8859-1
OS name: "linux", version: "3.2.0-24-generic", arch: "amd64", family: "unix"

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

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

Unless anyone knows why this should be "provided" (nothing else is),
I'll file a bug with the patch.

-Trevor

On Sat, Apr 28, 2012 at 1:20 AM, ASHISH ATTARDE <[EMAIL PROTECTED]> wrote:
> Harsh,
>
> I am using following configuration
>
> Apache Maven 3.0.4
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> OS name: "linux", version: "3.2.0-24-generic-pae", arch: "i386", family:
> "unix"
>
> -ashish
>
>
> On Sat, Apr 28, 2012 at 12:25 AM, Harsh J <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> What JDK version are you using to compile?
>>
>> On Sat, Apr 28, 2012 at 7:53 AM, ASHISH ATTARDE <[EMAIL PROTECTED]>
>> 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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB