Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

compile Ambari Metrics Storm Sink error

Solved Go to solution
Highlighted

compile Ambari Metrics Storm Sink error

New Contributor
[INFO] Ambari Main ....................................... SUCCESS [1.954s]
[INFO] Apache Ambari Project POM ......................... SUCCESS [0.277s]
[INFO] Ambari Web ........................................ SUCCESS [59.358s]
[INFO] Ambari Views ...................................... SUCCESS [3.328s]
[INFO] Ambari Admin View ................................. SUCCESS [16.341s]
[INFO] ambari-metrics .................................... SUCCESS [0.719s]
[INFO] Ambari Metrics Common ............................. SUCCESS [2.625s]
[INFO] Ambari Metrics Hadoop Sink ........................ SUCCESS [4.017s]
[INFO] Ambari Metrics Flume Sink ......................... SUCCESS [2.328s]
[INFO] Ambari Metrics Kafka Sink ......................... SUCCESS [2.139s]
[INFO] Ambari Metrics Storm Sink ......................... FAILURE [0.053s]
[INFO] Ambari Metrics Storm Sink (Legacy) ................ SKIPPED
[INFO] Ambari Metrics Collector .......................... SKIPPED
[INFO] Ambari Metrics Monitor ............................ SKIPPED
[INFO] Ambari Metrics Grafana ............................ SKIPPED
[INFO] Ambari Metrics Assembly ........................... SKIPPED
[INFO] Ambari Server ..................................... SKIPPED
[INFO] Ambari Functional Tests ........................... SKIPPED
[INFO] Ambari Agent ...................................... SKIPPED
[INFO] Ambari Client ..................................... SKIPPED
[INFO] Ambari Python Client .............................. SKIPPED
[INFO] Ambari Groovy Client .............................. SKIPPED
[INFO] Ambari Shell ...................................... SKIPPED
[INFO] Ambari Python Shell ............................... SKIPPED
[INFO] Ambari Groovy Shell ............................... SKIPPED
[INFO] ambari-logsearch .................................. SKIPPED
[INFO] Ambari Logsearch Appender ......................... SKIPPED
[INFO] Ambari Logsearch Solr Client ...................... SKIPPED
[INFO] Ambari Logsearch Portal ........................... SKIPPED
[INFO] Ambari Logsearch Log Feeder ....................... SKIPPED
[INFO] Ambari Logsearch Assembly ......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:34.585s
[INFO] Finished at: Thu Apr 06 22:34:16 CST 2017
[INFO] Final Memory: 47M/121M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ambari-metrics-storm-sink: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-storm-sink:jar:2.4.2.0.0: Failure to find org.apache.storm:storm-core:jar:1.1.0-SNAPSHOT in http://repo.hortonworks.com/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of apache-hadoop has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project ambari-metrics-storm-sink: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-storm-sink:jar:2.4.2.0.0: Failure to find org.apache.storm:storm-core:jar:1.1.0-SNAPSHOT in http://repo.hortonworks.com/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of apache-hadoop has elapsed or updates are forced
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
	at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project org.apache.ambari:ambari-metrics-storm-sink:jar:2.4.2.0.0: Failure to find org.apache.storm:storm-core:jar:1.1.0-SNAPSHOT in http://repo.hortonworks.com/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of apache-hadoop has elapsed or updates are forced
	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
	... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Failure to find org.apache.storm:storm-core:jar:1.1.0-SNAPSHOT in http://repo.hortonworks.com/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of apache-hadoop has elapsed or updates are forced
	at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
	... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find org.apache.storm:storm-core:jar:1.1.0-SNAPSHOT in http://repo.hortonworks.com/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of apache-hadoop has elapsed or updates are forced
	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
	at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
	... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.apache.storm:storm-core:jar:1.1.0-SNAPSHOT in http://repo.hortonworks.com/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of apache-hadoop has elapsed or updates are forced
	at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
	at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
	at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
	... 26 more
[ERROR]
[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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ambari-metrics-storm-sink
1 ACCEPTED SOLUTION

Accepted Solutions

Re: compile Ambari Metrics Storm Sink error

Super Mentor

@shi cheng

I will try to change the "1.1.0-SNAPSHOT" from file :

https://github.com/apache/ambari/blob/trunk/ambari-metrics/ambari-metrics-storm-sink/pom.xml#L33-L35

 <properties>
            <storm.version>1.1.0-SNAPSHOT</storm.version>
 </properties>

.

Try changing the "1.1.0-SNAPSHOT" to "1.1.0" as i see that this is available in the repo: http://repo.hortonworks.com/content/groups/public/org/apache/storm/storm-core/1.1.0/

Looks like the storm support was added from ambari 2.4 recently [1] and now the 1.1.0-SNAPSHOT is not present in the repo so try changing it to 1.1.0

[1] https://issues.apache.org/jira/browse/AMBARI-17080

[2] https://github.com/apache/ambari/commit/57fccc039c00b301836cf74c15016734fedd64ca (Search for 1.1.0-SNAPSHOT)

.

2 REPLIES 2

Re: compile Ambari Metrics Storm Sink error

Super Mentor

@shi cheng

I will try to change the "1.1.0-SNAPSHOT" from file :

https://github.com/apache/ambari/blob/trunk/ambari-metrics/ambari-metrics-storm-sink/pom.xml#L33-L35

 <properties>
            <storm.version>1.1.0-SNAPSHOT</storm.version>
 </properties>

.

Try changing the "1.1.0-SNAPSHOT" to "1.1.0" as i see that this is available in the repo: http://repo.hortonworks.com/content/groups/public/org/apache/storm/storm-core/1.1.0/

Looks like the storm support was added from ambari 2.4 recently [1] and now the 1.1.0-SNAPSHOT is not present in the repo so try changing it to 1.1.0

[1] https://issues.apache.org/jira/browse/AMBARI-17080

[2] https://github.com/apache/ambari/commit/57fccc039c00b301836cf74c15016734fedd64ca (Search for 1.1.0-SNAPSHOT)

.

Re: compile Ambari Metrics Storm Sink error

New Contributor
wget http://mooc.ttxit.com:8081/repository/maven-snapshots/org/apache/storm/storm-core/1.1.0-SNAPSHOT/sto... -O ./storm-core-1.1.0-SNAPSHOT.jar
    
    
    mvn install:install-file -Dfile=./storm-core-1.1.0-SNAPSHOT.jar -DgroupId=org.apache.storm -DartifactId=storm-core -Dversion=1.1.0-SNAPSHOT -Dpackaging=jar
Don't have an account?
Coming from Hortonworks? Activate your account here