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;
}
Aggregations