Support Questions

Find answers, ask questions, and share your expertise

CSD stopRunner under roles section not working

avatar
New Contributor

Hello,

 

I am using csd to link our own service controls with cloudera manager. How do I specify a stopRunner for each role under [roles] section. In the sdl file,  I have a top level stopRunner as this, which works,

 

stopRunner" : {
"relevantRoleTypes" : ["WEBSERVER"],
"runner" : {
"program" : "scripts/control.sh",
"args" : ["stop"]
},
"timeout" : 10000,
"masterRole" : "WEBSERVER"
},

 

but here under roles, stopRunner didn't do the job.

 

 

roles" : [
{
"name" : "WEBSERVER",
"label" : "Server",
"pluralLabel" : "Servers",
"startRunner" : {
"program" : "scripts/control.sh",
"args" : [
"start",
"./params.properties",
"./workers.properties"
]
},
"stopRunner" : {
"program" : "scripts/control.sh",
"args" : [
"stop"]
},
...

 

I am using following version of Cloudera manager;  

 

 

Version: Cloudera Enterprise 5.7.2 (#17 built by jenkins on 20160722-1347 git: 1ac5976e8ad8f16506c2db236aee83141915c44d)

Java VM Name: Java HotSpot(TM) 64-Bit Server VM

Java VM Vendor: Oracle Corporation

Java Version: 1.7.0_67

Server Time: May 18, 2017 10:09:08 AM, Eastern Daylight Time (EDT)

Copyright © 2011-2017 Cloudera, Inc. All rights reserved.
Hadoop and the Hadoop elephant logo are trademarks of the Apache Software Foundation.

 

 

Thank you in advance. 

1 ACCEPTED SOLUTION

avatar
Cloudera Employee

This is coming soon, on Cloudera Manager 5.11.1

Then you will need to run that version to be able to support the custom role stopRunner in a CSD.

View solution in original post

5 REPLIES 5

avatar
New Contributor

I found my solution here, as it is a known bug to be fixed in future release. Thank 

 

https://community.cloudera.com/t5/Cloudera-Manager-Installation/Stopping-selected-roles-from-Service...

 

avatar
Cloudera Employee

This is coming soon, on Cloudera Manager 5.11.1

Then you will need to run that version to be able to support the custom role stopRunner in a CSD.

avatar
Explorer

Hi,

I am observing this issue in CDH 6.2. Isn't this solution delivered yet?

The custom stop is not invoked when I stop the service from CM.

Appreciate your help!

 

BR/ Srikanth

avatar
Cloudera Employee

This was fixed indeed a while ago. Can you give some more details to the issue you are experiencing?

avatar
Explorer

Hi @pmilani,

Thanks for the response.

This is fixed now, I earlier not used the runner block for stopRunner.

"runner" : {
}

It is working after I add this. Thanks again.