2016-07-27 3 views
-1

이미 컴퓨터에 hadoop을 설치 했으므로 원본 폴더를 삭제하고 다시 설치하려고했습니다. 그러나 나는이 오류에서 실패하고있다 :Hadoop on Windows 빌드 오류

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

나는 인터넷에서 찾을 수있는 모든 것을 시도했지만 오류는 계속 발생한다.

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 

도움말 내가 무엇을 할 생각이 없다

, 나는 생각합니다. 이 오류를 해결하도록 도와주세요.

답변

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

cygwin을 설치할 것을 제안하는 위키 기사와 달리 Windows에서 빌드하기위한 다른 힌트를 찾았습니다 (http://stackoverflow.com/a/32005348/2099531). – city