Search in sources :

Example 1 with RefreshUserToGroupsMappingsRequest

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);
}
Also used : RefreshUserToGroupsMappingsRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsRequest) RefreshUserToGroupsMappingsResponse(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsResponse) Test(org.junit.Test)

Example 2 with RefreshUserToGroupsMappingsRequest

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;
}
Also used : ResourceManagerAdministrationProtocol(org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol) RefreshUserToGroupsMappingsRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsRequest)

Aggregations

RefreshUserToGroupsMappingsRequest (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsRequest)2 ResourceManagerAdministrationProtocol (org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol)1 RefreshUserToGroupsMappingsResponse (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshUserToGroupsMappingsResponse)1 Test (org.junit.Test)1