- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How does ambari display service state
- Labels:
-
Apache Ambari
Created 07-19-2016 06:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Below is the link give you brief description of your question...