Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

How can I control the start/stop order of my Cloudera Manager Extension

New Contributor

Hi, I have implemented a CM Extension following the guide on the wiki. Our service needs to stop and start in a particular order when executing the stop/start cluster action (and rolling restarts, etc.). We want our service to stop after HDFS Datanode and start before HDFS Datanode. We have implemented a similar extension for Ambari, and in Ambari this feature is called Role Command Order. This is our Ambari role command order json:



  "general_deps": {
    "_comment": "dependencies for CUSTOM_SERVICE when starting and stopping all services.",




Does Cloudera Manager have a similar feature for controlling start and stop order? I could not find anything in the service descriptor language reference.




New Contributor

Given the lack of replies I am guessing I am not reaching the people who might know the answer to my question. Can anybody give me guidance how to best reach the CM experts, and particularly someone who knows how CM Extensions and start/stop ordering works? This is quite important for our project. Thanks!


Hello @hitachi_ben :


Have you gone through the cloudera documentation links ?? for the version what you have..


I meant the general administration document would give some knowledge and about adding extensions if they have explicitly mentioned you can proceedwith that.



New Contributor

Thanks @Govins , but neither of these resources contains any reference to role start/stop ordering. I assume it is possible but the mechanism does not seem to be documented and CM source code is not open. Very frustrating.


I am looking for this too. In my case, I have 2 Roles in my custom CM service which are installed on all nodes and I want one role to always start before the other one and stop in the opposite order when the service is started.

Would appreciate any solutions for this. Thanks.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.