我正在尝试在windows上安装hadoop,到目前为止还很麻烦。
这是我不断收到的错误
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (compile-ms-winutils) on project hadoop-common: Command execution failed. Cannot run program "msbuild" (in directory "C:\hdfs\hadoop-common-project\hadoop-common"): CreateProcess error=2, The system cannot find the file specified -> [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
我在 Windows 7 x64 机器上的环境中设置了 msbuild.exe、windows sdk7.1、cygwin64、maven3.0.5、jdk7。
这是我从apache网站下载的hadoop 2.2.0 src。
在系统环境下,我已经设置了
C:\Windows\Microsoft.NET\Framework64\v4.0.30319
这是 msbuild 的路径,但仍然不起作用,有人知道如何解决这个问题吗?
thanks
更新:
我在 hadoop-common-project\hadoop-common 中稍微更改了 pom.xml
<executable>msbuild</executable>
to
<executable>msbuild.exe</executable>
现在,我收到以下错误
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (compile-ms-winutils) on project hadoop-common: Command execution failed. Process exited with an error: 1(Exit value: 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