I am using Ambari 22.214.171.124. 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?