com.cloudera.api.v7
Interface ClustersResourceV7

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

public interface ClustersResourceV7
extends ClustersResourceV6


Method Summary
 ApiCommand deployClusterClientConfig(String clusterName, ApiHostRefList hosts)
          Deploy the Cluster's Kerberos client configuration.
 ApiCommand firstRun(String clusterName)
          Prepare and start services in a cluster.
 org.apache.cxf.jaxrs.ext.multipart.InputStreamDataSource getClientConfig(String clusterName)
          Download a zip-compressed archive of the client configuration, of a specific cluster.
 ServicesResourceV7 getServicesResource(String clusterName)
           
 
Methods inherited from interface com.cloudera.api.v6.ClustersResourceV6
autoAssignRoles, autoConfigure, listServiceTypes, poolsRefresh, refresh, restartCommand, updateCluster, upgradeCdhCommand
 
Methods inherited from interface com.cloudera.api.v5.ClustersResourceV5
getParcelsResource
 
Methods inherited from interface com.cloudera.api.v4.ClustersResourceV4
rollingRestart
 
Methods inherited from interface com.cloudera.api.v3.ClustersResourceV3
addHosts, getHostTemplatesResource, listHosts, removeAllHosts, removeHost
 
Methods inherited from interface com.cloudera.api.v2.ClustersResourceV2
deployClientConfig, enterMaintenanceMode, exitMaintenanceMode
 
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")
ServicesResourceV7 getServicesResource(String clusterName)
Specified by:
getServicesResource in interface ClustersResource
Specified by:
getServicesResource in interface ClustersResourceV2
Specified by:
getServicesResource in interface ClustersResourceV3
Specified by:
getServicesResource in interface ClustersResourceV4
Specified by:
getServicesResource in interface ClustersResourceV6
Returns:
The services resource handler.

deployClusterClientConfig

@Path(value="/{clusterName}/commands/deployClusterClientConfig")
ApiCommand deployClusterClientConfig(String clusterName,
                                          ApiHostRefList hosts)
Deploy the Cluster's Kerberos client configuration.

Deploy krb5.conf to hosts in a cluster. Does not deploy to decommissioned hosts or hosts with active processes.

Available since API v7.

Parameters:
clusterName - The name of the cluster
hosts - Hosts in cluster to deploy to. If empty, will target all eligible hosts in the cluster.
Returns:
Information about the submitted command.

getClientConfig

@PermitAll
@Path(value="/{clusterName}/clientConfig")
org.apache.cxf.jaxrs.ext.multipart.InputStreamDataSource getClientConfig(String clusterName)
Download a zip-compressed archive of the client configuration, of a specific cluster. Currently, this only includes Kerberos Client Configuration (krb5.conf). For client configuration of services, use the clientConfig endpoint of the services resource. This resource does not require any authentication.

Parameters:
clusterName - The cluster name.
Returns:
The archive data.

firstRun

@Path(value="/{clusterName}/commands/firstRun")
ApiCommand firstRun(String clusterName)
Prepare and start services in a cluster.

Perform all the steps needed to prepare each service in a cluster and start the services in order.

Available since API v7.

Parameters:
clusterName - The name of the cluster.
Returns:
Information about the submitted command.


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