Example #1
0
 RefreshSuperUserGroupsConfiguration(RpcController controller, RefreshUserMappingsProtocolProtos.RefreshSuperUserGroupsConfigurationRequestProto
                                     request)
 {
     try
     {
         impl.RefreshSuperUserGroupsConfiguration();
     }
     catch (IOException e)
     {
         throw new ServiceException(e);
     }
     return(VoidRefreshSuperuserGroupsConfigurationResponse);
 }
Example #2
0
        /// <exception cref="System.IO.IOException"/>
        private int RefreshSuperUserGroupsConfiguration()
        {
            // Refresh the super-user groups
            Configuration conf    = GetConf();
            IPEndPoint    address = conf.GetSocketAddr(JHAdminConfig.JhsAdminAddress, JHAdminConfig
                                                       .DefaultJhsAdminAddress, JHAdminConfig.DefaultJhsAdminPort);
            RefreshUserMappingsProtocol refreshProtocol = HSProxies.CreateProxy <RefreshUserMappingsProtocol
                                                                                 >(conf, address, UserGroupInformation.GetCurrentUser());

            // Refresh the super-user group mappings
            refreshProtocol.RefreshSuperUserGroupsConfiguration();
            return(0);
        }