Reply
Explorer
Posts: 8
Registered: ‎01-11-2017

Running custom script after service start

[ Edited ]

Hi,

Is there a way to run custom script automatically after yarn service restarts?

 

Thanks!

Cloudera Employee
Posts: 232
Registered: ‎01-15-2015

Re: Running custom script after service start

There is no option to run a script during/after a service restart in Cloudera Manager. A possible alternative way may be to poll the service status using CM API in your script, then act on changes. 

 

Just out of interest, what is this script supposed to do?

Explorer
Posts: 8
Registered: ‎01-11-2017

Re: Running custom script after service start

Hi,

Thanks for the reply.

I wish to get cloudera definitions after I update them and send it to my app.