Search in sources :

Example 1 with RefreshSuperUserGroupsConfigurationRequest

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

the class RMAdminCLI method refreshSuperUserGroupsConfiguration.

private int refreshSuperUserGroupsConfiguration() throws IOException, YarnException {
    // Refresh the super-user groups
    ResourceManagerAdministrationProtocol adminProtocol = createAdminProtocol();
    RefreshSuperUserGroupsConfigurationRequest request = recordFactory.newRecordInstance(RefreshSuperUserGroupsConfigurationRequest.class);
    adminProtocol.refreshSuperUserGroupsConfiguration(request);
    return 0;
}
Also used : ResourceManagerAdministrationProtocol(org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol) RefreshSuperUserGroupsConfigurationRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshSuperUserGroupsConfigurationRequest)

Example 2 with RefreshSuperUserGroupsConfigurationRequest

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

the class TestResourceManagerAdministrationProtocolPBClientImpl method testRefreshSuperUserGroupsConfiguration.

/**
   * Test method refreshSuperUserGroupsConfiguration. This method present and it works.
   */
@Test
public void testRefreshSuperUserGroupsConfiguration() throws Exception {
    RefreshSuperUserGroupsConfigurationRequest request = recordFactory.newRecordInstance(RefreshSuperUserGroupsConfigurationRequest.class);
    RefreshSuperUserGroupsConfigurationResponse response = client.refreshSuperUserGroupsConfiguration(request);
    assertNotNull(response);
}
Also used : RefreshSuperUserGroupsConfigurationResponse(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshSuperUserGroupsConfigurationResponse) RefreshSuperUserGroupsConfigurationRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshSuperUserGroupsConfigurationRequest) Test(org.junit.Test)

Aggregations

RefreshSuperUserGroupsConfigurationRequest (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshSuperUserGroupsConfigurationRequest)2 ResourceManagerAdministrationProtocol (org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol)1 RefreshSuperUserGroupsConfigurationResponse (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshSuperUserGroupsConfigurationResponse)1 Test (org.junit.Test)1