hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vergilchi <anianxiao...@outlook.com>
Subject build hadoop-2.7.0 with win8.1
Date Sat, 06 Jun 2015 15:58:25 GMT






 hi
when i try to Building hadoop-2.7.0-src on Windows,i got a problem 
i followed the BUILDING.txt,and i have all of this:

* Windows System
* JDK 1.6+
* Maven 3.0 or later
* Findbugs 1.3.9 (if running findbugs)
* ProtocolBuffer 2.5.0
* CMake 2.6 or newer
* Windows SDK or Visual Studio 2010 Professional
* Unix command-line tools from GnuWin32 or Cygwin: sh, mkdir, rm, cp, tar, gzip
* zlib headers (if building native code bindings for zlib)
when a execute mvn package -Pdist,native,docs -DskipTests -Dadditionalparam=-Xdoclint:none
i got this:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:
run (make) on project hadoop-common: An Ant BuildException has occured: exec ret
urned: 2
[ERROR] around Ant part ...<exec failonerror="true" dir="C:\Users\vergil-chi\Des
ktop\hadoop-2.7.0-src\hadoop-2.7.0-src\hadoop-common-project\hadoop-common\targe
t/native" executable="make">... @ 7:164 in C:\Users\vergil-chi\Desktop\hadoop-2.
7.0-src\hadoop-2.7.0-src\hadoop-common-project\hadoop-common\target\antrun\build
-main.xml
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-antrun-plugin:1.7:run (make) on project hadoop-com
mon: An Ant BuildException has occured: exec returned: 2
around Ant part ...<exec failonerror="true" dir="C:\Users\vergil-chi\Desktop\had
oop-2.7.0-src\hadoop-2.7.0-src\hadoop-common-project\hadoop-common\target/native
" executable="make">... @ 7:164 in C:\Users\vergil-chi\Desktop\hadoop-2.7.0-src\
hadoop-2.7.0-src\hadoop-common-project\hadoop-common\target\antrun\build-main.xm
l
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:216)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThre
adedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
356)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException
 has occured: exec returned: 2
around Ant part ...<exec failonerror="true" dir="C:\Users\admin\Desktop\had
oop-2.7.0-src\hadoop-2.7.0-src\hadoop-common-project\hadoop-common\target/native
" executable="make">... @ 7:164 in C:\Users\admin\Desktop\hadoop-2.7.0-src\
hadoop-2.7.0-src\hadoop-common-project\hadoop-common\target\antrun\build-main.xm
l
        at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:355
)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:208)
        ... 20 more
Caused by: C:\Users\vergil-chi\Desktop\hadoop-2.7.0-src\hadoop-2.7.0-src\hadoop-
common-project\hadoop-common\target\antrun\build-main.xml:7: exec returned: 2
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:390)
        at org.apache.tools.ant.Target.performTasks(Target.java:411)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:327
)
        ... 22 more
 
who can hepl me!´╝îthank you !

 		 	   		  
Mime
View raw message