2016-07-27 52 views
-1

我已經在我的電腦中安裝了hadoop一次,我刪除了源文件夾,我想重新安裝一次。但是我沒有這個錯誤:Windows上的Hadoop構建錯誤

[INFO] Apache Hadoop KMS .................................. FAILURE [ 8.050 s] 

我什麼都試過了我能找到互聯網上,但錯誤依然存在。

錯誤:

[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 09:50 min 
[INFO] Finished at: 2016-07-27T14:57:47+02:00 
[INFO] Final Memory: 97M/1061M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7: 
run (dist) on project hadoop-kms: An Ant BuildException has occured: exec return 
ed: 2 
[ERROR] around Ant part ...<exec dir="C:\Users\yzi1\hadoop-2.7.1-src\hadoop-comm 
on-project\hadoop-kms\target" executable="sh" failonerror="true">... @ 10:121 in 
C:\Users\yzi1\hadoop-2.7.1-src\hadoop-common-project\hadoop-kms\target\antrun\b 
uild-main.xml 
[ERROR] -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit 
ch. 
[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 rea 
d the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE 
xception 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command 

[ERROR] mvn <goals> -rf :hadoop-kms 

幫助

我不知道該怎麼辦,我覺得我什麼都試過。請幫我解決這個錯誤。

回答

0

前段時間我試過在Windows系統上運行Hadoop,我的解決方案總是使用Linux VM。在你的情況下,我認爲螞蟻在你的系統上找不到sh。 如果你真的需要在Windows上構建Hadoop,你可以看看http://wiki.apache.org/hadoop/Hadoop2OnWindows。 但是,Windows上的Hadoop又很痛苦,只有部分支持。

+0

我已經完全遵循鏈接中的說明,但我仍然有這個問題 – Yassine

+0

做了你的發現http://stackoverflow.com/questions/25271515/building-hadoop-on-windows-error-ant-buildexception?幾乎有同樣的問題。如果你看這裏:https://ant.apache.org/manual/Tasks/exec.html,你看到sh被調用,這個命令不在Windows上。這個問題也可能是一個「錯誤」。 – city

+0

發現了一個建立在Windows上的其他暗示http://stackoverflow.com/a/32005348/2099531,與它建議安裝cygwin的wiki文章不同。 – city

相關問題