This document describes how to run service checks from the Ambari REST API. For example, to run the YARN service check:
POST /api/v1/clusters/MyCluster/requests { "RequestInfo" : { "context":"YARN Service Check", "command":"YARN_SERVICE_CHECK" }, "Requests/resource_filters": [{ "service_name":"YARN" }] }
When using the HDP 2.1 Stack, use this table to map the API options to Service:
Service Name | service_name | Command |
---|---|---|
HDFS | HDFS | HDFS_SERVICE_CHECK |
YARN | YARN | YARN_SERVICE_CHECK |
MapReduce2 | MAPREDUCE2 | MAPREDUCE2_SERVICE_CHECK |
HBase | HBASE | HBASE_SERVICE_CHECK |
Hive | HIVE | HIVE_SERVICE_CHECK |
WebHCat | WEBHCAT | WEBHCAT_SERVICE_CHECK |
Pig | PIG | PIG_SERVICE_CHECK |
Falcon | FALCON | FALCON_SERVICE_CHECK |
Storm | STORM | STORM_SERVICE_CHECK |
Oozie | OOZIE | OOZIE_SERVICE_CHECK |
ZooKeeper | ZOOKEEPER |
|