/clusters/{clusterName}/services
Mount Point: /api/v1/clusters/{clusterName}/services
POST
Creates a list of services.
There are typically two service creation strategies:
- The caller may choose to set up a new service piecemeal, by first creating the service itself (without any roles or configuration), and then create the roles, and then specify configuration.
-
Alternatively, the caller can pack
all the information in one call, by fully specifying the fields in
the ApiServiceSetupInfo object, with
- service config and role type config, and
- role to host assignment.
| Cluster Version | Available Service Types |
|---|---|
| CDH3 | HDFS, MAPREDUCE, HBASE, OOZIE, ZOOKEEPER, HUE |
| CDH4 | HDFS, MAPREDUCE, HBASE, OOZIE, ZOOKEEPER, HUE, YARN |
Parameters
| name | description | type | default |
|---|---|---|---|
| clusterName | The name of the cluster. | path |
Request Body
| element: | serviceSetupList |
Details of the services to create.
Response Body
| element: | serviceList |
List of created services.
GET
Lists all services registered in the cluster.
Parameters
| name | description | type | default |
|---|---|---|---|
| clusterName | The name of the cluster. | path |
Response Body
| element: | serviceList |
List of services.