[Ambari 설치하기]ambari-metrics-storm-sink-legacy Failed to execute goal on project Error 해결하기-1
https://mrnoobiest.tistory.com/144
[Ambari 설치하기]ambari-metrics-storm-sink-legacy Failed to execute goal on project Error 해결하기-1
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
mrnoobiest.tistory.com
위에서 Storm-core 0.10.0.2.3.0.0-2557를 직접 다운로드한 뒤 해당 jar 파일을 mvn에 직접 등록함으로써 에러를 해결하였다.
그다음 실행 결과 다른 에러가 발생하였는데 ,Compilation failure Error 이다.
원인은 아래와 같다.
[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 |
org.json.simple.JSONAware를 찾을 수 없다는 에러이다.
1) 해결방법
이번엔 한번에 해결해서 그냥 해결방법을 공유한다.
cd ambari-metrics/ambari-metrics-ambari-metrics-storm-sink-legacy/
vi pom.xml
을 보고 아래 문장을 추가한다.
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
이후 다시 실행하면 에러가 해결된다.
만약 되지 않는다면 Storm-core 0.10.0.2.3.0.0-2557 에러와 마찬가지로 직접 다운로드 후 mvn에 등록해준다.
https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple/1.1.1
sudo wget https://repo1.maven.org/maven2/com/googlecode/json-simple/json-simple/1.1.1/json-simple-1.1.1.jar
이렇게 한뒤
sudo mvn install:install-file -Dfile=./json-simple-1.1.1.jar -DgroupId=com.googlecode.json-simple -DartifactId=json-simple -Dversion=1.1.1 -Dpackaging=jar
을 실행하면 다운로드 한 jar파일을 등록할 수 있다.
끝.