com.cloudera.api.v4
Interface ClustersResourceV4

All Superinterfaces:
ClustersResource, ClustersResourceV2, ClustersResourceV3
All Known Subinterfaces:
ClustersResourceV10, ClustersResourceV11, ClustersResourceV12, ClustersResourceV13, ClustersResourceV14, ClustersResourceV15, ClustersResourceV16, ClustersResourceV17, ClustersResourceV18, ClustersResourceV5, ClustersResourceV6, ClustersResourceV7, ClustersResourceV8, ClustersResourceV9

public interface ClustersResourceV4
extends ClustersResourceV3


Method Summary
 ServicesResourceV4 getServicesResource(String clusterName)
           
 ApiCommand rollingRestart(String clusterName, ApiRollingRestartClusterArgs args)
          Command to do a "best-effort" rolling restart of the given cluster, i.e.
 
Methods inherited from interface com.cloudera.api.v3.ClustersResourceV3
addHosts, getHostTemplatesResource, getParcelsResource, listHosts, removeAllHosts, removeHost
 
Methods inherited from interface com.cloudera.api.v2.ClustersResourceV2
deployClientConfig, enterMaintenanceMode, exitMaintenanceMode, updateCluster
 
Methods inherited from interface com.cloudera.api.v1.ClustersResource
createClusters, deleteCluster, listActiveCommands, readCluster, readClusters, restartCommand, startCommand, stopCommand, upgradeServicesCommand
 

Method Detail

getServicesResource

@Path(value="/{clusterName}/services")
ServicesResourceV4 getServicesResource(String clusterName)
Specified by:
getServicesResource in interface ClustersResource
Specified by:
getServicesResource in interface ClustersResourceV2
Specified by:
getServicesResource in interface ClustersResourceV3
Returns:
The services resource handler.

rollingRestart

@Path(value="/{clusterName}/commands/rollingRestart")
ApiCommand rollingRestart(String clusterName,
                               ApiRollingRestartClusterArgs args)
Command to do a "best-effort" rolling restart of the given cluster, i.e. it does plain restart of services that cannot be rolling restarted, followed by first rolling restarting non-slaves and then rolling restarting the slave roles of services that can be rolling restarted. The slave restarts are done host-by-host.

Available since API v4. Only available with Cloudera Manager Enterprise Edition.

Parameters:
clusterName - The name of the cluster.
args - Arguments for the rolling restart command.
Returns:
Information about the submitted command.


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.