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.

CSD stopRunner under roles section not working

Solved Go to solution

CSD stopRunner under roles section not working

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

Accepted Solutions

Re: CSD stopRunner under roles section not working

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.

2 REPLIES 2

Re: CSD stopRunner under roles section not working

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

 

Re: CSD stopRunner under roles section not working

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.