hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arpit Agarwal <aagar...@hortonworks.com>
Subject Re: build hadoop-2.7.0 with win8.1
Date Mon, 08 Jun 2015 18:34:43 GMT
Hi, I have not seen that error before. I'd add the '-x' option to the sh command in the pom
to get diagnostics.

                    <exec executable="${shell-executable}" dir="${project.build.directory}"
failonerror="true">
                      <arg line="./dist-copynativelibs.sh"/>

I am sorry you are running into these issues. FWIW I documented my build steps on the wiki.
https://wiki.apache.org/hadoop/Hadoop2OnWindows
Most of us developers are using Windows Server 2008 R2 for building.

From: vergilchi
Reply-To: "user@hadoop.apache.org<mailto:user@hadoop.apache.org>"
Date: Monday, June 8, 2015 at 1:55 AM
To: "user@hadoop.apache.org<mailto:user@hadoop.apache.org>"
Subject: RE: build hadoop-2.7.0 with win8.1

thnak you first! it really works!
but now i I got a new problem.may be raised by "dist-copynativelibs.sh" .
i see the "dist-copynativelibs.sh" has been generate as well as "hadoop-common-2.7.0.jar",
"hadoop-common-2.7.0-tests.jar".i am sure i have sh, mkdir, rm, cp, tar, gzip in "path "Environmental
variable .i use jdk 1.8 and visual studio 2010 professional. is that caused by
 Win8.1 the system I use?when i execute bash --version :
bash --version
GNU bash, version 3.1.23(6)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.


the error trace is this:

main:
     [exec] ./dist-copynativelibs.sh: option not availible on this NT BASH relea
se
     [exec] ./dist-copynativelibs.sh: fork: Bad file descriptor
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:
run (pre-dist) on project hadoop-common: An Ant BuildException has occured: exec
 returned: 128
[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" executable="sh">... @ 41:155 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


________________________________
Subject: Re: build hadoop-2.7.0 with win8.1
From: aagarwal@hortonworks.com<mailto:aagarwal@hortonworks.com>
To: user@hadoop.apache.org<mailto:user@hadoop.apache.org>
Date: Sat, 6 Jun 2015 20:17:08 +0000

Hi vergilchi,

The Windows equivalent of the 'native' profile is 'native-win'. You will also need JDK 1.7.

From: vergilchi
Reply-To: "user@hadoop.apache.org<mailto:user@hadoop.apache.org>"
Date: Saturday, June 6, 2015 at 8:58 AM
To: "user@hadoop.apache.org<mailto:user@hadoop.apache.org>"
Subject: build hadoop-2.7.0 with win8.1

 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