public interface ClustersResource
Modifier and Type | Method and Description |
---|---|
ApiClusterList |
createClusters(ApiClusterList clusters)
Creates a collection of clusters.
|
ApiCluster |
deleteCluster(String clusterName)
Deletes a cluster.
|
ServicesResource |
getServicesResource(String clusterName) |
ApiCommandList |
listActiveCommands(String clusterName,
DataView dataView)
List active cluster commands.
|
ApiCluster |
readCluster(String clusterName)
Reads information about a cluster.
|
ApiClusterList |
readClusters(DataView dataView)
Lists all known clusters.
|
ApiCommand |
restartCommand(String clusterName)
Restart all services in the cluster.
|
ApiCommand |
startCommand(String clusterName)
Start all services in the cluster.
|
ApiCommand |
stopCommand(String clusterName)
Stop all services in the cluster.
|
ApiCommand |
upgradeServicesCommand(String clusterName)
Deprecated.
This endpoint should not used in Cloudera Manager 5 or later.
Use the upgradeCdh endpoint on the cluster instead.
|
@Path(value="/") ApiClusterList createClusters(ApiClusterList clusters)
clusters
- List of clusters to created.@Path(value="/{clusterName}") ApiCluster deleteCluster(String clusterName)
clusterName
- Name of cluster to delete.@Path(value="/") ApiClusterList readClusters(DataView dataView)
@Path(value="/{clusterName}") ApiCluster readCluster(String clusterName)
clusterName
- Name of cluster to look up.@Path(value="/{clusterName}/services") ServicesResource getServicesResource(String clusterName)
@Path(value="/{clusterName}/commands") ApiCommandList listActiveCommands(String clusterName, DataView dataView)
clusterName
- The name of the cluster.dataView
- The view of the data to materialize,
either "summary" or "full".@Deprecated @Path(value="/{clusterName}/commands/upgradeServices") ApiCommand upgradeServicesCommand(String clusterName)
This command requires that the CDH packages in the hosts used by the cluster be upgraded to CDH5 before this command is issued. Once issued, this command will stop all running services before proceeding.
If parcels are used instead of CDH system packages then the following steps need to happen in order:
clusterName
- The name of the cluster.@Path(value="/{clusterName}/commands/start") ApiCommand startCommand(String clusterName)
Services are started in the appropriate order given their dependencies.
clusterName
- The name of the cluster.@Path(value="/{clusterName}/commands/stop") ApiCommand stopCommand(String clusterName)
Services are stopped in the appropriate order given their dependencies.
clusterName
- The name of the cluster.@Path(value="/{clusterName}/commands/restart") ApiCommand restartCommand(String clusterName)
Services are restarted in the appropriate order given their dependencies.
clusterName
- The name of the cluster.Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.