Reply
New Contributor
Posts: 2
Registered: ‎05-18-2017
Accepted Solution

CSD stopRunner under roles section not working

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. 

New Contributor
Posts: 2
Registered: ‎05-18-2017

Re: CSD stopRunner under roles section not working

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...

 

Cloudera Employee
Posts: 6
Registered: ‎01-30-2017

Re: CSD stopRunner under roles section not working

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.

Announcements