hadoop 프로젝트 - 밟은 구덩이
Terminal에서 처음 실행
mvn package -Pdist,native,docs -DskipTests -Dtar
다음 오류가 발생했습니다.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (pre-dist) on project hadoop-project-dist: An Ant BuildException has occured: Execute failed: java.io.IOException: Cannot run program "sh" (in directory "D:
\gitCode\JDHadoop-2.7.1\hadoop-project-dist\target"): CreateProcess error=2, ?????????
[ERROR] around Ant part ...... @ 41:103 in D:\gitCode\JDHadoop-2.7.1\hadoop-project-dist\target\antrun\build-main.xml
[ERROR] -> [Help 1]
그리고 cygwin64를 설치합니다. 설치 과정은 다음 단계를 누르면 됩니다. 마지막으로 IDEA의 Terminal 설정에서 Shell path는cygwin64 설치 디렉터리\Cygwin으로 변경됩니다.bat
두 번째는 Terminal에서 컴파일 명령을 실행하는데 프로토콜을 찾을 수 없는 오류가 발생했습니다. 프로토콜 --version으로 테스트해 보겠습니다.
그리고 프로토콜을 다운로드하여 설치하면 이 블로그 윈도우즈 환경에서의 프로토콜 설치를 참고할 수 있습니다
설치가 완료되면 Terminal에서 protoc --version을 실행하라는 메시지가 표시됩니다.
$ protoc --version
libprotoc 2.5.0
세 번째 Terminal에서 컴파일 명령을 실행하면 다음과 같은 오류가 발생합니다.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (make) on project hadoop-common: An Ant BuildException has occured: Execute failed: java.io.IOException
: Cannot run program "cmake" (in directory "D:\gitCode\JDHadoop-2.7.1\hadoop-common-project\hadoop-common\target
ative"): CreateProcess error=2, ?????????
[ERROR] around Ant part ...... @ 4:129 in D:\gitCode\JDHadoop
-2.7.1\hadoop-common-project\hadoop-common\target\antrun\build-main.xml
[ERROR] -> [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
다운로드 cmake-3.12.1-win64-x64.zip, 압축을 풀고 bin 디렉터리를 path에 추가하고camke --version을 실행합니다.
$ cmake --version
cmake version 3.12.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
네 번째 terminal에서 컴파일 명령을 실행하면 다음과 같은 오류가 발생합니다.
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.1:exec (compile-ms-winutils) on project hadoop-common: Command execution failed. Cannot run program "msbuild" (in directory "D:\gitCode\JDHadoop-2.7.1\hadoop-common-proj
ect\hadoop-common"): CreateProcess error=2, ????????? -> [Help 1]
그래--------------- VSCode를 설치하러 가자.
vscode 설치가 끝나면 컴파일할 수 있습니다-----
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.