Support Questions
Find answers, ask questions, and share your expertise

Ambari Metric Service (ams) unable to open through hostname:6188

Ambari Metric Service (ams) unable to open through hostname:6188

Hi ,
i am trying to add service Ambari metric Service for hdp2.6.3.
- got 1 alert PFA. hbase-alert.png

- i was able to start AMS service

-so i tried to acess http:127.0.0.1:6188

got below logs from "/var/log/ambari-metrics-monitor/ambari-metrics-monitor.out"

2018-03-05 16:05:55,395 [INFO] emitter.py:154 - Calculated collector shard based on hostname : sandbox-hdp.hortonworks.com 2018-03-05 16:05:55,399 [WARNING] emitter.py:146 - Error sending metrics to server. [Errno 111] Connection refused 2018-03-05 16:05:55,399 [WARNING] emitter.py:111 - Retrying after 5 ... 2018-03-05 16:06:00,400 [WARNING] emitter.py:146 - Error sending metrics to server. [Errno 111] Connection refused 2018-03-05 16:06:00,401 [WARNING] emitter.py:111 - Retrying after 5 ... 2018-03-05 16:06:05,403 [WARNING] emitter.py:146 - Error sending metrics to server. [Errno 111] Connection refused 2018-03-05 16:06:05,403 [WARNING] emitter.py:111 - Retrying after 5 ... 2018-03-05 16:06:10,405 [WARNING] emitter.py:120 - Metric collector host sandbox-hdp.hortonworks.com was blacklisted. 2018-03-05 16:06:10,405 [INFO] emitter.py:96 - No valid collectors found...

- got few refernces fro whitelisting https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Metrics+-+Whitelisting

but it is for whitelisting apps not the hosts or ip address.

Thanks ,
Sharda

62659-hbase-alert.png

2 REPLIES 2

Re: Ambari Metric Service (ams) unable to open through hostname:6188

Can you try whitelisting all the services you have installed in the node? Since this is a Sandbox, ensure all services like Datanode, Namenode etc are whitelisted.

Re: Ambari Metric Service (ams) unable to open through hostname:6188

Its working for me . followed below steps:-

- add port for sandbox container 6188. follow document
https://community.hortonworks.com/content/kbentry/65914/how-to-add-ports-to-the-hdp-25-virtualbox-sa...
- once the port is added. sandbox is up and running. login as admin/admin through ambari UI.
- Click on Actions from All services -> click on Add service.
- select "Ambari Metrics Service"
- In configuration Setting change the heapsize as per the configuration in below reference.
https://cwiki.apache.org/confluence/display/AMBARI/Configurations+-+Tuning
- after deploying ambari metrics service succesfully.
- from service start Ambari Infra-which will start solr
- from services start atlas- there is some dependancy of solr- atlas-hbase-ams
- click on Ambari Metrics- start.
- if still not working then follow :-
https://community.hortonworks.com/questions/15818/ambari-metrics-collector-now-starting.html?page=1&...
- API cmds to retrieve the data from ams
- http://127.0.0.1:6188/ws/v1/timeline/metrics/hosts
- http://127.0.0.1:6188/ws/v1/timeline/metrics/metadata
- http://127.0.0.1:6188/ws/v1/timeline/metrics?metricNames=regionserver.Server.totalRequestCount._rate...
- follow document for more details
https://cwiki.apache.org/confluence/display/AMBARI/Metrics+Collector+API+Specification