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

where does Ambari metrics saves log?

Contributor

We moved to Ambari metrics from Ganglia but still see the log files of Ganglia getting logged as messages. why is it so?

rw-r----- 1 root root 119M Jan 26 13:25 messages

Please note ganglia service is removed from the cluster

Thanks in advance!!

13 REPLIES 13

Re: where does Ambari metrics saves log?

Based on this article, I believe they are located at:

Collector logs: /var/log/ambari-metrics-collector/ambari-metrics-collector.log, /var/log/ambari-metrics-collector/hbase-ams-master-<host>.log, /var/log/ambari-metrics-collector/hbase-ams-master-<host>.out

Re: where does Ambari metrics saves log?

Contributor
@Daniel Hendrix

thanks for the info! But do we know why we are getting Ganglia logs as messages (active) even though service is removed?

Re: where does Ambari metrics saves log?

@AR

There is probability that Ganglis process is still running.

See this doc

http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.0.0/bk_upgrading_Ambari/content/_moving_from_gan...

Re: where does Ambari metrics saves log?

Contributor

@Neeraj Sabharwal

I checked this document....As per the Ambari dashboard the ganglia service is not running ...is there a way to check ganglia service is running other than using Ambari?

Re: where does Ambari metrics saves log?

@Neeraj Sabharwal Do any processes related to ganglia appear when running jps in the terminal?

Re: where does Ambari metrics saves log?

Expert Contributor

Run ps -ef|grep ganglia on terminal.

Re: where does Ambari metrics saves log?

Contributor

@Rahul Pathak @Neeraj Sabharwal @Daniel Hendrix

Looks like for some reason kafka uses Ganglia and Ambari metrics

this is what I see...Do we know why? Thanks in advance!!

/usr/hdp/2.3.2.0-2950/kafka/bin/../libs/metrics-ganglia-2.2.0.jar

/usr/hdp/2.3.2.0-2950/kafka/bin/../libs/kafka-ganglia-0.8.2.2.3.2.0-2950.jar

Re: where does Ambari metrics saves log?

@AR You can restart kafka...

Re: where does Ambari metrics saves log?

Contributor

@Neeraj Sabharwal

are these required in HDP 2.3?

metrics-ganglia-2.2.0.jar

Kafka-ganglia-0.8.2.2.3.2.0-2950.jar