use of org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsRequest in project hadoop by apache.
the class TestResourceManagerAdministrationProtocolPBClientImpl method testRefreshUserToGroupsMappings.
/**
* Test method refreshUserToGroupsMappings. This method is present and it works.
*/
@Test
public void testRefreshUserToGroupsMappings() throws Exception {
RefreshUserToGroupsMappingsRequest request = recordFactory.newRecordInstance(RefreshUserToGroupsMappingsRequest.class);
RefreshUserToGroupsMappingsResponse response = client.refreshUserToGroupsMappings(request);
assertNotNull(response);
}
use of org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsRequest in project hadoop by apache.
the class RMAdminCLI method refreshUserToGroupsMappings.
private int refreshUserToGroupsMappings() throws IOException, YarnException {
// Refresh the user-to-groups mappings
ResourceManagerAdministrationProtocol adminProtocol = createAdminProtocol();
RefreshUserToGroupsMappingsRequest request = recordFactory.newRecordInstance(RefreshUserToGroupsMappingsRequest.class);
adminProtocol.refreshUserToGroupsMappings(request);
return 0;
}
Aggregations