Ambari 설치중에 ambari-metrics-storm-sink-legacy부분에서 Failure가 발생하였다,
원인을 잘 찾아보니 Could not find artifact org.apache.storm:storm-core:jar:0.10.0.2.3.0.0-2557을 찾을 수 없다는 에러이다.
원인은 storm-core-0.10.0.2.3.0.0-2557.jar 파일을 다운로드 받는 링크가 없어져서 그런것이다.(mvn이 링크 업데이트를 안한건지 ambari-2.7.6에서 링크를 안고친건지는 모르겠지만) 일단 원인은 저렇다
-해결하기 위한 시도들-
1) 다운로드받는 버전을 직접 확인하여 바꿔보기
https://repo.maven.apache.org/maven2/org/apache/storm/storm-core
Central Repository: org/apache/storm/storm-core
repo.maven.apache.org
여기서 본인이 원하는 버전을 찾는다.
2) pom.xml을 수정한다.
cd apach-ambari-2.7.6-src/ambari-metrics/ambari-metrics-storm-sink-legacy/
vi pom.xml
<properties>
<storm version>0.xxxxxxxxxx</storm version>
</properties>
다시 sudo mvn clean install을 실행한다.
결과 : 똑같은 에러는 아니지만 2557.jar에만 있는 class 에러가 발생했다,결론은 버전을 바꾼다고 되는게 아니라 2557.jar을 다운로드 해야하는것이다.
-해결하기 위한 시도들 2-
1) 파일을 직접 다운로드 받고 maven에 해당 jar파일을 직접 등록한다.
https://mvnrepository.com/artifact/org.apache.storm/storm-core/0.10.0.2.3.0.0-2557
위 URL로 이동하면 Storm Core >> 0.10.0.2.3.0.0-2557.jar를 직접 다운로드 가능하다.
2) jar 우클릭 > 링크 주소 복사
3) 다운로드 하고 나서 아래 명령어로 mvn에 직접 등록해준다.
sudo mvn install:install-file -Dfile=./storm-core-0.10.0.2.3.0.0-2557.jar -DgroupId=org.apache.storm -DartifactId=storm-core -Dversion=0.10.0.2.3.0.0-2557 -Dpackaging=jar
결과 : 일단 에러는 해결 되었다, 다만 다음 에러가 발생했다.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project ambari-metrics-storm-sink-legacy: Compilation failure [ERROR] /apache-ambari-2.7.6-src/ambari-metrics/ambari-metrics-storm-sink-legacy/src/main/java/org/apache/hadoop/metrics2/sink/storm/StormTimelineMetricsSink.java:[159,36] cannot access org.json.simple.JSONAware [ERROR] class file for org.json.simple.JSONAware not found [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/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :ambari-metrics-storm-sink-legacy |