I am using Ambari 2.4.1.0. I had written custom command(for MASTER component with cardinality 1+) for one of my custom service. I am installing multiple instances of the component on multiple Ambari agent. But while issuing custom command command it runs on only one of the hosts(Ambari agent) where the component is installed, not on all the hosts(Ambari agent). Am I doing anything wrong? How to write custom command that runs on all MASTER component instances?