Skip to main content

nodes

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

Overview​

Namenodes
TypeResource
Idovh.cluster_hadoop.nodes

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
billing_profile_namestringName of the billing profile attached to the node (100-small, 200-cpu-1, 220-cpu-3, 300-disk-1, 310-disk-3, 900-vm-1) (wire: billingProfileName)
hostnamestringHostname of the node
ipstring (ipv4)IP of the Node (example: 192.0.2.0)
is_removablebooleanWhether or not the Node is removable (wire: isRemovable)
software_profilestringProfile of the Node (ApplicationServer, BasicNode, ClouderaManager, MasterServer, SecondaryServer) (wire: softwareProfile)
statestringState of the Node (available, delivered, toDeploy, unavailable)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecthostname, service_nameGet this object properties
listselectservice_namesoftware_profile, x_pagination_modeNodes of the Cluster
deletedeletehostname, service_nameRemove this Node from the Cluster
decommissionexechostname, serviceNameDecommission the node and all the services on it
recommissionexechostname, serviceNameRecommission the node and all the services on it

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"}})
hostnamestringHostname of the node
serviceNamestringThe internal name of your cluster
service_namestringThe internal name of your cluster (wire: serviceName)
software_profilestringFilter the value of softwareProfile property (=) (wire: softwareProfile)
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
billing_profile_name,
hostname,
ip,
is_removable,
software_profile,
state
FROM ovh.cluster_hadoop.nodes
WHERE hostname = '{{ hostname }}' -- required
AND service_name = '{{ service_name }}' -- required
;

DELETE examples​

Remove this Node from the Cluster

DELETE FROM ovh.cluster_hadoop.nodes
WHERE hostname = '{{ hostname }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Decommission the node and all the services on it

EXEC ovh.cluster_hadoop.nodes.decommission
@hostname='{{ hostname }}' --required,
@serviceName='{{ serviceName }}' --required
;