Created 05-18-2017 07:19 AM
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.
Created 05-19-2017 06:38 AM
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.
Created 05-18-2017 07:27 AM
I found my solution here, as it is a known bug to be fixed in future release. Thank
Created 05-19-2017 06:38 AM
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.
Created 10-23-2019 10:29 PM
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
Created 10-24-2019 02:25 AM
This was fixed indeed a while ago. Can you give some more details to the issue you are experiencing?
Created 10-24-2019 07:07 AM
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.