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.

Custom service with Ambari: role order definition ignored

Custom service with Ambari: role order definition ignored

Contributor

Hello,

In order to define some role order for my custom service I followed the instructions as displayed here:

https://cwiki.apache.org/confluence/display/AMBARI/How-To+Define+Stacks+and+Services#How-ToDefineSta...

The content of my 'role_command_order.json' file:

{<br>  "_comment": "RS_HBASE orders",<br>  "general_deps": {<br>    "HBASE_MASTER-STOP": ["RS_HBASE_02-STOP"],<br>    "RS_HBASE_02-START": ["HBASE_MASTER-START"]<br>  },<br>  "optional_no_glusterfs": {<br>    "HBASE_MASTER-STOP": ["RS_HBASE_02-STOP"],<br>    "RS_HBASE_02-START": ["HBASE_MASTER-START"]<br>  }<br>}

and the file is located within the same folder as my 'metainfo.xml' service definition.

So far so good. I would have expected that my service gets stopped when I stop the HBASE_MASTER, but no, it doesn't stop.

What did I miss?

Thanks

Edit:

I changed the contents to the following:

{
"_comment": "RS_HBASE orders",
"general_deps": {
"_comment" : "dependencies for all cases",
"HBASE_MASTER-STOP": ["RS_HBASE_02-STOP"],
"RS_HBASE_02-START": ["HBASE_MASTER-START"]
}
}

I place the file right next to my 'metainfo.xml' , but still nothing.

Why is this file ignored? I can't find any additional information that would point me to another direction I can try.

Any help is appreciated.

Don't have an account?
Coming from Hortonworks? Activate your account here