Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Running custom script after service start

Running custom script after service start

Explorer

Hi,

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

 

Thanks!

2 REPLIES 2

Re: Running custom script after service start

Expert Contributor

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?

Highlighted

Re: Running custom script after service start

Explorer

Hi,

Thanks for the reply.

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

 

Don't have an account?
Coming from Hortonworks? Activate your account here