Search in sources :

Example 1 with RefreshNodesResourcesRequest

use of org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResourcesRequest in project hadoop by apache.

the class RMAdminCLI method refreshNodesResources.

private int refreshNodesResources() throws IOException, YarnException {
    // Refresh the resources at the Nodemanager
    ResourceManagerAdministrationProtocol adminProtocol = createAdminProtocol();
    RefreshNodesResourcesRequest request = recordFactory.newRecordInstance(RefreshNodesResourcesRequest.class);
    adminProtocol.refreshNodesResources(request);
    return 0;
}
Also used : ResourceManagerAdministrationProtocol(org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol) RefreshNodesResourcesRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResourcesRequest)

Aggregations

ResourceManagerAdministrationProtocol (org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol)1 RefreshNodesResourcesRequest (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshNodesResourcesRequest)1