Ich hatte bereits Hadoop in meinem Computer installiert, löschte ich den Quellordner und ich wollte wieder neu installiert werden. Jedoch scheitere ich bei diesem Fehler:Hadoop auf Windows Building Error
Ich versuchte alles, was ich im Internet finden konnte, aber der Fehler besteht immer noch.
ERROR:
[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
Hilfe
ich keine Ahnung, was zu tun, ich fühle mich wie ich alles versucht. Bitte helfen Sie mir, diesen Fehler zu lösen.
Ich habe bereits genau die Anweisungen in den Link, aber ich habe immer noch dieses Problem – Yassine
haben Sie gefunden http://StackOverflow.com/Questions/25271515/building-Hadoop-on-windows-Forror-ant-buildexception? Es gibt fast das gleiche Problem. Wenn Sie hier klicken: https://ant.apache.org/manual/Tasks/exec.html, sehen Sie, dass sh aufgerufen wird, dieser Befehl ist unter Windows nicht vorhanden. Das Problem könnte auch ein "Bug" sein. – city
Ein anderer Hinweis für das Erstellen auf Windows http://StackOverflow.com/A/32005348/2099531 gefunden, im Gegensatz zu dem Wiki-Artikel schlägt es vor, Cygwin zu installieren. – city