Support Questions

Find answers, ask questions, and share your expertise

how to use curl command ( as its failing) to pull yarn metrics from HDP 2.6.3 installed on VM

New Contributor


Current status -

I am trying to pull all yarn metrics data via curl on the HDP machine that is set up on 2.6.3 on VM

i am trying to run the curl command on the same host machine.

however, my curl command is failing. i tried using hostname and same issue

but curl -v <ip> works.

Goal -

I want to use this data to plot graphs/ patterns that can reflect the usage of the cluster and suggest improvements.

My curl command -

curl -v ""

Error message -

* About to connect() to port 6188 (#0) * Trying * Connection refused * Failed connect to; Connection refused * Closing connection 0 curl: (7) Failed connect to; Connection refused

Query -

Is my port incorrect ? what is the best command to pull yarn metrics .

Has anyone tried working on curl on VM and successfully able to pull data from yarn api

can someone share me any pointers that can be helpful here.

Reference -

I referred to one of the posts and picked up the command.


Expert Contributor
@Ketan Kirange

This seems to be correct API. Is the metrics collector installed on the same host? (, 6188 is the default port for AMS. If you have Ambari, you can search for timeline.metrics.service.webapp.address in Metrics collector configs, alternatively you can search for this property in ams-site.xml in the node where it's installed.

Or there's a problem in running collector daemon, you can check

/var/log/ambari-metrics-collector/ambari-metrics-collector.log/out to check it. is the standard reference.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.