Example #1
0
        public virtual void TestRefreshUserToGroupsMappings()
        {
            RefreshUserToGroupsMappingsRequest request = recordFactory.NewRecordInstance <RefreshUserToGroupsMappingsRequest
                                                                                          >();
            RefreshUserToGroupsMappingsResponse response = client.RefreshUserToGroupsMappings
                                                               (request);

            NUnit.Framework.Assert.IsNotNull(response);
        }
Example #2
0
        /// <exception cref="System.IO.IOException"/>
        /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
        private int RefreshUserToGroupsMappings()
        {
            // Refresh the user-to-groups mappings
            ResourceManagerAdministrationProtocol adminProtocol = CreateAdminProtocol();
            RefreshUserToGroupsMappingsRequest    request       = recordFactory.NewRecordInstance <RefreshUserToGroupsMappingsRequest
                                                                                                   >();

            adminProtocol.RefreshUserToGroupsMappings(request);
            return(0);
        }
        RefreshUserToGroupsMappings(RpcController controller, YarnServerResourceManagerServiceProtos.RefreshUserToGroupsMappingsRequestProto
                                    proto)
        {
            RefreshUserToGroupsMappingsRequestPBImpl request = new RefreshUserToGroupsMappingsRequestPBImpl
                                                                   (proto);

            try
            {
                RefreshUserToGroupsMappingsResponse response = real.RefreshUserToGroupsMappings(request
                                                                                                );
                return(((RefreshUserToGroupsMappingsResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }