Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Restarting host components / refreshing client configs

Here is how to restart specific host components:

Code Block
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.