Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambari Metrics Emitter extension build is failing #4537

Closed
pjain1 opened this issue Jul 12, 2017 · 7 comments
Closed

Ambari Metrics Emitter extension build is failing #4537

pjain1 opened this issue Jul 12, 2017 · 7 comments

Comments

@pjain1
Copy link
Member

pjain1 commented Jul 12, 2017

While building the project using maven, it is failing with following error -

[ERROR] Failed to execute goal on project ambari-metrics-emitter: Could not resolve dependencies for project io.druid.extensions.contrib:ambari-metrics-emitter:jar:0.11.0-SNAPSHOT: Failed to collect dependencies at org.apache.ambari:ambari-metrics-common:jar:2.4.1.0.22: Failed to read artifact descriptor for org.apache.ambari:ambari-metrics-common:jar:2.4.1.0.22: Could not transfer artifact org.apache.ambari:ambari-metrics-common:pom:2.4.1.0.22 from/to hortonworks (http://repo.hortonworks.com/content/repositories/releases): Failed to transfer file: http://repo.hortonworks.com/content/repositories/releases/org/apache/ambari/ambari-metrics-common/2.4.1.0.22/ambari-metrics-common-2.4.1.0.22.pom. Return code is: 500 , ReasonPhrase:Server Error. -> [Help 1]

Looks like the hortonworks artifactory is returning 500.

The build started failing in our build machines, but supposedly was working fine locally. However, after deleting the cached jars from local maven repo, it started failing locally as well. I am not sure why travis is not failing, probably it also caches the jars ? Is anyone able to reproduce after deleting the cached jars ?

@nishantmonu51 or @b-slim can you have a look ?

@b-slim
Copy link
Contributor

b-slim commented Jul 12, 2017

ok let me look

@b-slim
Copy link
Contributor

b-slim commented Jul 12, 2017

@pjain1 i run mvn -U dependency:copy-dependencies from my local machine and it is working fine. Which cache did you deleted ?

@pjain1
Copy link
Member Author

pjain1 commented Jul 12, 2017

I did this - rm -r ~/.m2/repository/org/apache/ambari and ran the build locally and the build failed.

@akashdw
Copy link
Contributor

akashdw commented Jul 12, 2017

@b-slim Should this artifact come from mvn central or hortonworks repo b/c mvn cnetral has this artifact, looks like hortonworks repo is returning 500.

referring to https://github.com/druid-io/druid/blob/ae900a493479bf0be2cef5ce598a6822caa3def1/extensions-contrib/ambari-metrics-emitter/pom.xml#L88

@b-slim
Copy link
Contributor

b-slim commented Jul 12, 2017

i guess you are right the public one (was using private) is empty repo http://repo.hortonworks.com/content/repositories/releases/org/apache/ambari/ambari-metrics-common/2.4.1.0.22/
let me see why the jars is not there.

@b-slim
Copy link
Contributor

b-slim commented Jul 12, 2017

@pjain1 try now, should be fixed, thanks for reporting.

@pjain1
Copy link
Member Author

pjain1 commented Jul 12, 2017

It worked, thanks for the quick fix. Are you guys considering publishing to central maven, might be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants