Re: Could custom client service add start/stop?

2018-03-29 Thread Di Li
Clients do not have start/stop. Start and stop shown on the UI are reserved actions from Ambari, you can't overwrite them. You can add custom actions (so long as they show up on the UI) to do similar things, but you will need to give them different names. On Thu, Mar 29, 2018 at 3:07 AM, wrote:

Re: custom master service can not stop

2018-03-29 Thread Di Li
Not much to go with based on your example, as I assume you removed sensitive code that actually does the stop. All I can suggest is to make sure the stop actually stops the process and don't sit in a loop forever. Also, it's not the stop that tells the UI a component is "stopped" or not, it's the s

Re: custom master service can not stop

2018-03-29 Thread xiang . dai
After waiting about 1 hour, it always print log as below and failed finally: Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Yum Test Y

custom master service can not stop

2018-03-29 Thread xiang . dai
Hi! I add a master service as below: 2.0 YUM YUM Yum Service 1.0.0 YUM_MASTER Yum Master MASTER 1 scripts/master.py PYTHON 600 YUM_SLAVE Yum Slave SLAVE 1+ scripts/slave.py PYTHON 600 any master.py: class Master(Script): def install(

Could custom client service add start/stop?

2018-03-29 Thread xiang . dai
Hi! I follow https://cwiki.apache.org/confluence/display/AMBARI/Defining+a+Custom+Service and add a custom client service. I want add start/stop as customCommand, but i do not know how and when to call them. Also, is there any possible to start/stop client service at web UI like master se