Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

​How does ambari display service state

Solved Go to solution

​How does ambari display service state

How does ambari display service state STARTED/STOPPED , which is the check that is applied for doing it , is it PID check or in background ps is done for the service.

can some one explain, what happens in background to determine the state of the service?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: ​How does ambari display service state

@deepak sharma

It could be as simple as checking the pid file and the corresponding process in the system. For example, for hiveserver2 the file on hiveserver2 node it would be /var/run/hive/hive_server.pid. If the process number in the file is not matching with the running hiveserver2 process, it would show the process as stopped.

2 REPLIES 2

Re: ​How does ambari display service state

@deepak sharma

It could be as simple as checking the pid file and the corresponding process in the system. For example, for hiveserver2 the file on hiveserver2 node it would be /var/run/hive/hive_server.pid. If the process number in the file is not matching with the running hiveserver2 process, it would show the process as stopped.

Highlighted

Re: ​How does ambari display service state