hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meumanaresh <meumanar...@gmail.com>
Subject Cannot build against latest trunk Hadoop - Windows Eclipse Development Environment
Date Fri, 22 Jun 2012 19:53:47 GMT
Hi, 

        I am following the below two links to setup eclipse development
environment on windows. 

http://wiki.apache.org/hadoop/HadoopUnderEclipseWindows 
http://wiki.apache.org/hadoop/EclipseEnvironment

When I do $ mvn install -DskipTests the build fails with the following
error. 

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec
(gen 
erate-version) on project hadoop-yarn-common: Command execution failed.
Cannot r 
un program "scripts\saveVersion.sh" (in directory
"C:\naresh\git\hadoop-common\h 
adoop-mapreduce-project\hadoop-yarn\hadoop-yarn-common"): CreateProcess
error=2, 
 The system cannot find the file specified -> [Help 1] 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal o 
rg.codehaus.mojo:exec-maven-plugin:1.2:exec (generate-version) on project
hadoop 
-yarn-common: Command execution failed. 
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor 
.java:217) 
        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:84) 
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje 
ct(LifecycleModuleBuilder.java:59) 
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu 
ild(LifecycleStarter.java:183) 
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl 
eStarter.java:161) 
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) 
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) 
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) 
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) 
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
        at java.lang.reflect.Method.invoke(Unknown Source) 
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun 
cher.java:290) 
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav 
a:230) 
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La 
uncher.java:409) 
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 
352) 
Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution
fai 
led. 
        at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:350) 
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default 
BuildPluginManager.java:101) 
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor 
.java:209) 
        ... 19 more 
Caused by: java.io.IOException: Cannot run program "scripts\saveVersion.sh"
(in 
directory
"C:\naresh\git\hadoop-common\hadoop-mapreduce-project\hadoop-yarn\hado 
op-yarn-common"): CreateProcess error=2, The system cannot find the file
specifi 
ed 
        at java.lang.ProcessBuilder.start(Unknown Source) 
        at java.lang.Runtime.exec(Unknown Source) 
        at
org.apache.commons.exec.launcher.Java13CommandLauncher.exec(Java13Com 
mandLauncher.java:58) 
        at
org.apache.commons.exec.DefaultExecutor.launch(DefaultExecutor.java:2 
46) 
        at
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecut 
or.java:302) 
        at
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java: 
149) 
        at
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:589) 

        at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:335) 
        ... 21 more 
Caused by: java.io.IOException: CreateProcess error=2, The system cannot
find th 
e file specified 
        at java.lang.ProcessImpl.create(Native Method) 
        at java.lang.ProcessImpl.<init>(Unknown Source) 
        at java.lang.ProcessImpl.start(Unknown Source) 
        ... 29 more 

It says it cannot find saveVersion.sh file but I see its there. Is this
related to the defect MAPREDUCE-3540? But I believe it was integrated into
the code long time ago. Please help me. 

Thanks, 
Naresh 


--
View this message in context: http://lucene.472066.n3.nabble.com/Cannot-build-against-latest-trunk-Hadoop-Windows-Eclipse-Development-Environment-tp3991018.html
Sent from the Hadoop lucene-dev mailing list archive at Nabble.com.

Mime
View raw message