ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Hurley <jhur...@hortonworks.com>
Subject Re: Ambari api to restart all clients without specifying the list of SERVICE/components on all hosts
Date Mon, 18 Sep 2017 13:17:58 GMT
Depending on which version of Ambari you are on, a request like this might work:

POST api/v1/clusters/<cluster-name>/requests

{
  "RequestInfo":
      {
          "command":"RESTART",
          "context":"Restart all ZooKeeper Clients Across the Cluster",
          "operation_level": {
              "level":"HOST",
              "cluster_name":"c1"
            }
      },"Requests/resource_filters":[
            {
            "service_name": "ZOOKEEPER",
            "component_name": "ZOOKEEPER_CLIENT",
            "hosts_predicate":"HostRoles/component_name=ZOOKEEPER_CLIENT"
             }
        ]
}

On Sep 18, 2017, at 7:19 AM, Latha Appanna <lathaxyz012@gmail.com<mailto:lathaxyz012@gmail.com>>
wrote:

Hello,

Do we have  ambari  REST api to RESTART all clients/refresh all client configs without specifying
the list of service/components?

https://cwiki.apache.org/confluence/display/AMBARI/Restarting+host+components+via+the+API
I know we already have this, but it requires one to specify all the required hostname, service-name
and components


Thanks & Regards,
Latha


Mime
View raw message