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

I can't stop Ambari Metris and Grafana

Contributor

Following this steps for restarting Ambari Metrics I'm sticking on stopping Grafana.

12983-1487958612.png

And the background operation list

12984-1487958219.png

Should I kill it manually? Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: I can't stop Ambari Metris and Grafana

Contributor

I found the problem: the device that was filled up has this file

/var/lib/ambari-agent/data/structured-out-status.json

that differs with the other nodes. I following this steps as root

rm -f /var/lib/ambari-agent/data/structured-out-status.json
ambari-agent restart

And I deleted the PID files in /var/run for applications that aren't responding for restart (like Zookeeper and Ambari Metrics Collector).

After that Ambari shows the process down. So I started them and now it works correctly.

View solution in original post

3 REPLIES 3

Re: I can't stop Ambari Metris and Grafana

Expert Contributor

You can kill it from linux command from the server that run Ambari metrics and grafana. But also you may need to check the log why it is not able to shutdown.

pkill -KILL -u ams

Re: I can't stop Ambari Metris and Grafana

Contributor

An application filled up the HDD and after the cleaning the log is corrupted (there are the last five lines)

2017/02/24 05:30:15 [I] Completed XXX.XXX.XXX.XXX - "GET / HTTP/1.1" 500 Internal Server Error 2528 bytes in 26900us
2017/02/24 05:31:15 [I] Completed XXX.XXX.XXX.XXX - "GET / HTTP/1.1" 500 Internal Server Error 2528 bytes in 14789us
2017/02/24 05:32:15 [I] Completed XXX.XXX.XXX.XXX - "GET / HTTP/1.1" 500 Internal Server Error 2528 bytes in 20252us
2017/02/24 05:33:15 [I] Completed XXX.XXX.XXX.XXX - "GET / HTTP/1.1" 500 Internal Server Error 2528 bytes in 16111us
2017/02

Re: I can't stop Ambari Metris and Grafana

Contributor

I found the problem: the device that was filled up has this file

/var/lib/ambari-agent/data/structured-out-status.json

that differs with the other nodes. I following this steps as root

rm -f /var/lib/ambari-agent/data/structured-out-status.json
ambari-agent restart

And I deleted the PID files in /var/run for applications that aren't responding for restart (like Zookeeper and Ambari Metrics Collector).

After that Ambari shows the process down. So I started them and now it works correctly.

View solution in original post