Skip to main content
Manoj690
Silver ⭐️⭐️⭐️
November 19, 2019
Solved

ambari metrics not working

stderr:   /var/lib/ambari-agent/data/errors-2079.txt

/Traceback (most recent call last):
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 995, in restart
self.status(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/AMBARI_METRICS/package/scripts/metrics_collector.py", line 63, in status
check_service_status(env, name='collector')
File "/usr/lib/ambari-agent/lib/ambari_commons/os_family_impl.py", line 89, in thunk
return fn(*args, **kwargs)
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/AMBARI_METRICS/package/scripts/status.py", line 41, in check_service_status
check_process_status(pid_file)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/check_process_status.py", line 43, in check_process_status
raise ComponentIsNotRunning()
ComponentIsNotRunning

The above exception was the cause of the following exception:

Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/AMBARI_METRICS/package/scripts/metrics_collector.py", line 90, in <module>
AmsCollector().execute()
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
method(env)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 1012, in restart
self.post_start(env)
File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 424, in post_start
raise Fail("Pid file {0} doesn't exist after starting of the component.".format(pid_file))
resource_management.core.exceptions.Fail: Pid file /var/run/ambari-metrics-collector//hbase-ams-master.pid doesn't exist after starting of the component./ 

 

sagarshimpi
Gold ⭐️
November 19, 2019

@Manoj690 

 

Try below 2 options -

 

1. Check if "/var/run/ambari-metrics-collector/" directory exist and is with permission ams:hadoop

If YES. Then go for option2.

If Not try creating directory and check if AMS startup works.

2. Delete AMS service and its components from CLI also -

rpm -qa|grep ams

-Remove all components of ams

And reinstall AMS.

 

Let me know if that works.

Also please share new logs in text file attach. Its easy way of formatting logs to be displayed at remote end.

7 replies

sagarshimpi
Gold ⭐️
November 19, 2019

Hi @Manoj690 

 

Did the earlier community link helped to resolve issue - https://community.cloudera.com/t5/Support-Questions/Ambari-metircs-not-started/m-p/283228#M210525   ??

 

Please confirm!!

Translate
Manoj690
Manoj690Author
Silver ⭐️⭐️⭐️
November 19, 2019
No its not resolved and also one more question how to completely uninstall
Phoenix in my system and reinstall?
Translate
sagarshimpi
Gold ⭐️
November 19, 2019

@Manoj690 

 

1. What is the error you are getting after following the link - https://community.cloudera.com/t5/Support-Questions/Ambari-metircs-not-started/m-p/283228#M210525%C2%A0%C2%A0

 

The error you pasted are you getting it while starting AMS via Ambari?

Did you tried to start from CLI/backend using command "ambari-metrics-collector  start"?  Make sure you stop the service properly, kill if any pid exist and then start.

 

2. For phoenix - I see phoenix comes as part of hbase and is enabled or disabled from hbase configs as shown below.

img22.PNG

Its basically comes as part of hdp bits located in -
/usr/hdp/current/phoenix-client

/usr/hdp/current/phoenix-server


Why do you want to completely uninstall phoenix ? Can you pass details so that we can help to understand and provide you if any workaround.

 

 

Translate