/clusters/{clusterName}/services/{serviceName}/roleCommands/refresh

Mount Point: /api/v11/clusters/{clusterName}/services/{serviceName}/roleCommands/refresh

POST

Refresh a role's data.

For MapReduce services, this command should be executed on JobTracker roles. It refreshes the role's queue and node information.

For HDFS services, this command should be executed on NameNode or DataNode roles. For NameNodes, it refreshes the role's node list. For DataNodes, it refreshes the role's data directory list.

For YARN services, this command should be executed on ResourceManager roles. It refreshes the role's queue and node information.

Available since API v1. DataNode data directories refresh available since API v10.

Parameters

name description type default
serviceName (no documentation provided) path
clusterName (no documentation provided) path

Request Body

element: roleNames

The names of the roles.

Response Body

element: bulkCommandList

A list of submitted commands.