Search in sources :

Example 1 with RefreshServiceAclsRequest

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

the class RMAdminCLI method refreshServiceAcls.

private int refreshServiceAcls() throws IOException, YarnException {
    // Refresh the service acls
    ResourceManagerAdministrationProtocol adminProtocol = createAdminProtocol();
    RefreshServiceAclsRequest request = recordFactory.newRecordInstance(RefreshServiceAclsRequest.class);
    adminProtocol.refreshServiceAcls(request);
    return 0;
}
Also used : ResourceManagerAdministrationProtocol(org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol) RefreshServiceAclsRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshServiceAclsRequest)

Example 2 with RefreshServiceAclsRequest

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

the class TestResourceManagerAdministrationProtocolPBClientImpl method testRefreshServiceAcls.

@Test
public void testRefreshServiceAcls() throws Exception {
    RefreshServiceAclsRequest request = recordFactory.newRecordInstance(RefreshServiceAclsRequest.class);
    RefreshServiceAclsResponse response = client.refreshServiceAcls(request);
    assertNotNull(response);
}
Also used : RefreshServiceAclsResponse(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshServiceAclsResponse) RefreshServiceAclsRequest(org.apache.hadoop.yarn.server.api.protocolrecords.RefreshServiceAclsRequest) Test(org.junit.Test)

Aggregations

RefreshServiceAclsRequest (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshServiceAclsRequest)2 ResourceManagerAdministrationProtocol (org.apache.hadoop.yarn.server.api.ResourceManagerAdministrationProtocol)1 RefreshServiceAclsResponse (org.apache.hadoop.yarn.server.api.protocolrecords.RefreshServiceAclsResponse)1 Test (org.junit.Test)1