ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Hansen <don...@hansenfamily.us>
Subject Re: custom services / status
Date Thu, 04 Jun 2015 00:08:45 GMT
Thanks for the quick reply. I was looking at some examples and was curios
about the pid file. Do I need to create that myself or is there some code
that is creating that for me automatically?


On Wednesday, June 3, 2015, Yusaku Sako <yusaku@hortonworks.com> wrote:

>  Have you implemented the "status" command for the component(s) in your
> custom service?
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=38571133
> For most components, the status is based on the PID file.
> You can look at some examples in the common-services directory:
> https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/hbase_regionserver.py#L55-L59
>
>  Yusaku
>
>   From: Donald Hansen <donald@hansenfamily.us
> <javascript:_e(%7B%7D,'cvml','donald@hansenfamily.us');>>
> Reply-To: "user@ambari.apache.org
> <javascript:_e(%7B%7D,'cvml','user@ambari.apache.org');>" <
> user@ambari.apache.org
> <javascript:_e(%7B%7D,'cvml','user@ambari.apache.org');>>
> Date: Wednesday, June 3, 2015 3:39 PM
> To: "user@ambari.apache.org
> <javascript:_e(%7B%7D,'cvml','user@ambari.apache.org');>" <
> user@ambari.apache.org
> <javascript:_e(%7B%7D,'cvml','user@ambari.apache.org');>>
> Subject: custom services / status
>
>   I'm trying to create a custom service in Ambari and curious how it
> tells Ambari if the service successfully started or not. I was able to add
> a python function that starts my service and my service does start
> correctly but Ambari still shows the service as not started.
>
>  Thanks.
> Donald
>

Mime
View raw message