Skip to main content

clusters

Creates, updates, deletes, gets or lists a clusters resource.

Overview​

Nameclusters
TypeResource
Idovh.cluster_hadoop.clusters

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringService name of your Cluster
cloudera_versionstringCDH and Cloudera Manager version (wire: clouderaVersion)
iamobjectIAM resource metadata
max_orderable_nodesintegerMaximum quantity of nodes allowed to be ordered in the cluster (wire: maxOrderableNodes)
statestringState of the Hadoop Cluster (created, creating, deleted, deleting, delivered, delivering, toDeliver)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet this object properties
listselectiam_tags, x_pagination_modeList available services
order_new_node_hourlyexecserviceName, nodeProfileOrder a new node in the cluster
restartexecserviceNameRestart the Cloudera Manager Hadoop Cluster (THIS ACTION WILL RESTART EVERY SERVICE)
service_restartexecserviceName, serviceRestart a Cloudera Manager service (THIS ACTION WILL RESTART OTHER DEPENDANT SERVICES)
service_startexecserviceName, serviceStart a Cloudera Manager service
service_stopexecserviceName, serviceStop a Cloudera Manager service (THIS ACTION WILL STOP OTHER DEPENDANT SERVICES)
startexecserviceNameStart the Cloudera Manager Hadoop Cluster
stopexecserviceNameStop a Cloudera Manager Hadoop Cluster (THIS ACTION WILL STOP EVERY SERVICE)
terminateexecserviceNameTerminate your service. THE CLUSTER WILL BE DELETED. ALL YOUR DATA WILL BE LOST

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
serviceNamestringThe internal name of your cluster
service_namestringThe internal name of your cluster (wire: serviceName)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get this object properties

SELECT
name,
cloudera_version,
iam,
max_orderable_nodes,
state
FROM ovh.cluster_hadoop.clusters
WHERE service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Order a new node in the cluster

EXEC ovh.cluster_hadoop.clusters.order_new_node_hourly
@serviceName='{{ serviceName }}' --required
@@json=
'{
"nodeProfile": "{{ nodeProfile }}"
}'
;