Hi All,
I'm using Ambari 2.1.2 with HDP 2.3 and I have created a custom service
following this guide:
http://mozartanalytics.com/how-to-create-a-software-stack-for-ambari/
Once the service is installed I'm able to start it and stop it with
Ambari, but the check status method always said me that service is not
running (but it's running).
The status function is similar to the code below (I have only change the
path of the pid file):
def status(self, env):
pid_file ="/var/run/my-service.pid"
check_process_status(pid_file)
I've checked the file and its content: it is created in the right and it
contains the correct pid.
I've checked the check_process_status code and I have seen that it does
a "kill -0 <PID>", so I tried the same command in the shell and it works
properly.
The python version used is 2.7.
Does anyone have a suggestion?
Many thanks for your help and your time!!
Bests.
Mauro