Child pages
  • Restarting host components via the API
Skip to end of metadata
Go to start of metadata

Restarting host components / refreshing client configs

Here is how to restart specific host components:

curl -uadmin:admin -H 'X-Requested-By: ambari' -X POST -d ' 
{
   "RequestInfo":{
      "command":"RESTART",
      "context":"Restart ZooKeeper Client and HDFS Client on c6401.ambari.apache.org",
      "operation_level":{
         "level":"HOST",
         "cluster_name":"c1"
      }
   },
   "Requests/resource_filters":[
      {
         "service_name":"ZOOKEEPER",
         "component_name":"ZOOKEEPER_CLIENT",
         "hosts":"c6401.ambari.apache.org"
      },
      {
         "service_name":"HDFS",
         "component_name":"HDFS_CLIENT",
         "hosts":"c6401.ambari.apache.org"
      }
   ]
}' http://localhost:8080/api/v1/clusters/c1/requests

Note: When RESTART is applied to a CLIENT, it refreshes the configs.

  • No labels