Ejemplo n.º 1
0
        public virtual void TestRefreshSuperUserGroupsConfiguration()
        {
            RefreshSuperUserGroupsConfigurationRequest request = recordFactory.NewRecordInstance
                                                                 <RefreshSuperUserGroupsConfigurationRequest>();
            RefreshSuperUserGroupsConfigurationResponse response = client.RefreshSuperUserGroupsConfiguration
                                                                       (request);

            NUnit.Framework.Assert.IsNotNull(response);
        }
Ejemplo n.º 2
0
        /// <exception cref="System.IO.IOException"/>
        /// <exception cref="Org.Apache.Hadoop.Yarn.Exceptions.YarnException"/>
        private int RefreshSuperUserGroupsConfiguration()
        {
            // Refresh the super-user groups
            ResourceManagerAdministrationProtocol      adminProtocol = CreateAdminProtocol();
            RefreshSuperUserGroupsConfigurationRequest request       = recordFactory.NewRecordInstance
                                                                       <RefreshSuperUserGroupsConfigurationRequest>();

            adminProtocol.RefreshSuperUserGroupsConfiguration(request);
            return(0);
        }
        RefreshSuperUserGroupsConfiguration(RpcController controller, YarnServerResourceManagerServiceProtos.RefreshSuperUserGroupsConfigurationRequestProto
                                            proto)
        {
            RefreshSuperUserGroupsConfigurationRequestPBImpl request = new RefreshSuperUserGroupsConfigurationRequestPBImpl
                                                                           (proto);

            try
            {
                RefreshSuperUserGroupsConfigurationResponse response = real.RefreshSuperUserGroupsConfiguration
                                                                           (request);
                return(((RefreshSuperUserGroupsConfigurationResponsePBImpl)response).GetProto());
            }
            catch (YarnException e)
            {
                throw new ServiceException(e);
            }
            catch (IOException e)
            {
                throw new ServiceException(e);
            }
        }