public interface ClustersResourceV2 extends ClustersResource
Modifier and Type | Method and Description |
---|---|
ApiCommand |
deployClientConfig(String clusterName)
Deploy the cluster-wide client configuration.
|
ApiCommand |
enterMaintenanceMode(String clusterName)
Put the cluster into maintenance mode.
|
ApiCommand |
exitMaintenanceMode(String clusterName)
Take the cluster out of maintenance mode.
|
ServicesResourceV2 |
getServicesResource(String clusterName) |
ApiCluster |
updateCluster(String clusterName,
ApiCluster cluster)
Update an existing cluster.
|
createClusters, deleteCluster, listActiveCommands, readCluster, readClusters, restartCommand, startCommand, stopCommand, upgradeServicesCommand
ServicesResourceV2 getServicesResource(String clusterName)
getServicesResource
in interface ClustersResource
ApiCluster updateCluster(String clusterName, ApiCluster cluster)
Update an existing cluster.
You may not change a cluster's CDH version using this API call. Use the "upgradeService" cluster command instead.
To rename the cluster, pass in a json structure that has the new cluster name.
Available since API v2.
clusterName
- The name of the cluster.ApiCommand enterMaintenanceMode(String clusterName)
Available since API v2.
clusterName
- The name of the clusterApiCommand exitMaintenanceMode(String clusterName)
Available since API v2.
clusterName
- The name of the clusterApiCommand deployClientConfig(String clusterName)
For each service in the cluster, deploy the service's client configuration to all the hosts that the service runs on.
Available since API v2.
clusterName
- The name of the clusterCopyright © Cloudera, Inc. Released under Apache License, Version 2.0.