Created 07-19-2016 06:39 AM
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?
Created 07-19-2016 07:16 AM
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.
Created 07-19-2016 07:16 AM
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.
Created 07-19-2016 07:19 AM
Below is the link give you brief description of your question...