Created 12-08-2016 12:25 PM
2016-12-08 19:30:35,118 - Using hadoop conf dir: /usr/isdp/current/hadoop-client/conf 2016-12-08 19:30:35,120 - checked_call['hostid'] {} 2016-12-08 19:30:35,184 - checked_call returned (0, 'a8c0366f') 2016-12-08 19:30:35,184 - Ambari Metrics service check was started. 2016-12-08 19:30:35,188 - Generated metrics: { "metrics": [ { "metricname": "AMBARI_METRICS.SmokeTest.FakeMetric", "appid": "amssmoketestfake", "hostname": "bigdata002.istuary.com", "timestamp": 1481196635000, "starttime": 1481196635000, "metrics": { "1481196635000": 0.380131946063, "1481196636000": 1481196635000 } } ] } 2016-12-08 19:30:35,188 - Connecting (POST) to bigdata002.istuary.com:6188/ws/v1/timeline/metrics/ 2016-12-08 19:30:50,232 - Connection failed. Next retry in 15 seconds. 2016-12-08 19:30:50,234 - Generated metrics: { "metrics": [ { "metricname": "AMBARI_METRICS.SmokeTest.FakeMetric", "appid": "amssmoketestfake", "hostname": "bigdata002.istuary.com", "timestamp": 1481196650000, "starttime": 1481196650000, "metrics": { "1481196650000": 0.380131946063, "1481196651000": 1481196650000 } } ] } 2016-12-08 19:30:50,234 - Connecting (POST) to bigdata002.istuary.com:6188/ws/v1/timeline/metrics/ 2016-12-08 19:31:05,250 - Connection failed. Next retry in 15 seconds. 2016-12-08 19:31:05,251 - Generated metrics: { "metrics": [ { "metricname": "AMBARI_METRICS.SmokeTest.FakeMetric", "appid": "amssmoketestfake", "hostname": "bigdata002.istuary.com", "timestamp": 1481196665000, "starttime": 1481196665000, "metrics": { "1481196665000": 0.380131946063, "1481196666000": 1481196665000 } } ] } 2016-12-08 19:31:05,251 - Connecting (POST) to bigdata002.istuary.com:6188/ws/v1/timeline/metrics/ 2016-12-08 19:31:20,266 - Connection failed. Next retry in 15 seconds. Traceback (most recent call last): File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py", line 184, in <module> AMSServiceCheck().execute() File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute method(env) File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk return fn(*args, **kwargs) File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py", line 102, in service_check raise Fail("Metrics were not saved. Service check has failed. " resource_management.core.exceptions.Fail: Metrics were not saved. Service check has failed. Connection failed.
Created 12-10-2016 03:00 AM
Thank you all, and I have fix the bug in my program. Because I cutom my stack but I do not change the stack_advisor.py that corresponding with the stack.
Created 12-09-2016 04:46 PM
Can you share ambari metrics collector log & conf?
/var/log/ambari-metrics-collector/ambari-metrics-collector.log
/etc/conf/ambari-metrics-collector/conf?
Created 12-10-2016 03:00 AM
Thank you all, and I have fix the bug in my program. Because I cutom my stack but I do not change the stack_advisor.py that corresponding with the stack.