com.cloudera.api.v10
Interface RoleCommandsResourceV10

All Superinterfaces:
RoleCommandsResource, RoleCommandsResourceV3, RoleCommandsResourceV4, RoleCommandsResourceV6, RoleCommandsResourceV8

public interface RoleCommandsResourceV10
extends RoleCommandsResourceV8


Method Summary
 ApiBulkCommandList refreshCommand(ApiRoleNameList roleNames)
          Refresh a role's data.
 
Methods inherited from interface com.cloudera.api.v8.RoleCommandsResourceV8
jmapDump, jmapHisto, jstack, lsof
 
Methods inherited from interface com.cloudera.api.v6.RoleCommandsResourceV6
roleCommandByName
 
Methods inherited from interface com.cloudera.api.v4.RoleCommandsResourceV4
hdfsEnterSafemode, hdfsLeaveSafemode, hdfsSaveNamespace
 
Methods inherited from interface com.cloudera.api.v3.RoleCommandsResourceV3
hdfsFinalizeMetadataUpgrade
 
Methods inherited from interface com.cloudera.api.v1.RoleCommandsResource
formatCommand, hdfsBootstrapStandByCommand, hdfsInitializeAutoFailoverCommand, hdfsInitializeSharedDirCommand, restartCommand, startCommand, stopCommand, syncHueDbCommand, zooKeeperCleanupCommand, zooKeeperInitCommand
 

Method Detail

refreshCommand

@Path(value="/refresh")
ApiBulkCommandList refreshCommand(ApiRoleNameList roleNames)
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 and other configuration.

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.

Specified by:
refreshCommand in interface RoleCommandsResource
Parameters:
roleNames - The names of the roles.
Returns:
A list of submitted commands.


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