public interface ClustersResourceV6 extends ClustersResourceV5
Modifier and Type | Method and Description |
---|---|
void |
autoAssignRoles(String clusterName)
Automatically assign roles to hosts and create the roles for all the services in a cluster.
|
void |
autoConfigure(String clusterName)
Automatically configures roles and services in a cluster.
|
ServicesResourceV6 |
getServicesResource(String clusterName) |
ApiServiceTypeList |
listServiceTypes(String clusterName)
List the supported service types for a cluster.
|
ApiCommand |
poolsRefresh(String clusterName)
Updates all refreshable configuration files for services with
Dynamic Resource Pools.
|
ApiCommand |
refresh(String clusterName)
Updates all refreshable configuration files in the cluster.
|
ApiCommand |
restartCommand(String clusterName,
ApiRestartClusterArgs args)
Restart all services in the cluster.
|
ApiCluster |
updateCluster(String clusterName,
ApiCluster cluster)
Update an existing cluster.
|
ApiCommand |
upgradeCdhCommand(String clusterName,
ApiCdhUpgradeArgs args)
Perform CDH upgrade to the next major version.
|
getParcelsResource
rollingRestart
addHosts, getHostTemplatesResource, listHosts, removeAllHosts, removeHost
deployClientConfig, enterMaintenanceMode, exitMaintenanceMode
createClusters, deleteCluster, listActiveCommands, readCluster, readClusters, restartCommand, startCommand, stopCommand, upgradeServicesCommand
@Path(value="/{clusterName}/services") ServicesResourceV6 getServicesResource(String clusterName)
getServicesResource
in interface ClustersResource
getServicesResource
in interface ClustersResourceV2
getServicesResource
in interface ClustersResourceV3
getServicesResource
in interface ClustersResourceV4
@Path(value="/{clusterName}/commands/refresh") ApiCommand refresh(String clusterName)
Available since API v6.
clusterName
- The name of the cluster@Path(value="/{clusterName}/commands/poolsRefresh") ApiCommand poolsRefresh(String clusterName)
Available since API v6.
clusterName
- The name of the cluster@Path(value="/{clusterName}/commands/restart") ApiCommand restartCommand(String clusterName, ApiRestartClusterArgs args)
Services are stopped then started in the appropriate order given their dependencies. The command can optionally restart only stale services and their dependencies as well as redeploy client configuration on all services in the cluster.
clusterName
- The name of the cluster.args
- arguments for the restart command.@Path(value="/{clusterName}/serviceTypes") ApiServiceTypeList listServiceTypes(String clusterName)
clusterName
- The cluster.@Path(value="/{clusterName}") ApiCluster updateCluster(String clusterName, ApiCluster cluster)
To update the CDH version, provide the new value in the "fullVersion" property. Setting a correct version that matches the actual installed software will ensure the correct version-specific features, such as services, roles, commands, and configurations. This need not be manually set for clusters using parcels. In general this action is only necessary after the CDH packages have been manually updated. Note that a downgrade may be rejected if it would render existing services or roles unusable. For major upgrade, the "upgradeService" cluster command should be used instead.
To rename the cluster, provide the new name in the "displayName" property for API >= 6, or in the "name" property for API <=5.
Available since API v2.
updateCluster
in interface ClustersResourceV2
clusterName
- The name of the cluster.@Path(value="/{clusterName}/autoAssignRoles") void autoAssignRoles(String clusterName)
Assignments are done based on services and hosts in the cluster, and hardware specifications. If no hosts are added to the cluster, an exception will be thrown preventing any role assignments. Existing roles will be taken into account and their assignments will be not be modified.
Available since API v6.
clusterName
- The name of the cluster.@Path(value="/{clusterName}/autoConfigure") void autoConfigure(String clusterName)
Overwrites some existing configurations. Might create new role config groups. Only default role config groups must exist before calling this endpoint. Other role config groups must not exist. If they do, an exception will be thrown preventing any configuration. Ignores the Cloudera Management Service even if colocated with roles of this cluster. To avoid over-committing the heap on hosts, assign hosts to this cluster that are not being used by the Cloudera Management Service.
Available since API v6.
clusterName
- The name of the cluster.@Path(value="/{clusterName}/commands/upgradeCdh") ApiCommand upgradeCdhCommand(String clusterName, ApiCdhUpgradeArgs args)
If using packages, CDH packages on all hosts of the cluster must be manually upgraded before this command is issued.
The command will upgrade the services and their configuration to the version available in the CDH5 distribution. All running services will be stopped before proceeding.
Available since v6.
clusterName
- The name of the cluster.args
- Arguments for the command. See ApiCdhUpgradeArgs
.Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.