示例#1
0
 RefreshUserToGroupsMappings(RpcController controller, RefreshUserMappingsProtocolProtos.RefreshUserToGroupsMappingsRequestProto
                             request)
 {
     try
     {
         impl.RefreshUserToGroupsMappings();
     }
     catch (IOException e)
     {
         throw new ServiceException(e);
     }
     return(VoidRefreshUserGroupsMappingResponse);
 }
示例#2
0
        /// <exception cref="System.IO.IOException"/>
        private int RefreshUserToGroupsMappings()
        {
            // Get the current configuration
            Configuration conf    = GetConf();
            IPEndPoint    address = conf.GetSocketAddr(JHAdminConfig.JhsAdminAddress, JHAdminConfig
                                                       .DefaultJhsAdminAddress, JHAdminConfig.DefaultJhsAdminPort);
            RefreshUserMappingsProtocol refreshProtocol = HSProxies.CreateProxy <RefreshUserMappingsProtocol
                                                                                 >(conf, address, UserGroupInformation.GetCurrentUser());

            // Refresh the user-to-groups mappings
            refreshProtocol.RefreshUserToGroupsMappings();
            return(0);
        }