I'm curious on the status functions implemented for the service ('service_check') and it's component(s).
As seen with HBase service, there's a 'commandScript' defined within 'metainfo.xml' which is referencing to 'scripts/service_check.py' and is on the same level as '<components>'
On the other hand, on a components' class (subclass of 'Script') you have the
def status(self, env):
I see the 'service_check' is executed upon installation, and I can see the log entries within the Ambari UI, but I haven't seen the log entries anywhere else yet.
So my questions are:
1. When is which function called?
2. Each function uses the 'Logger', where can I find the log lines for both the service_check and the component's status?