RefreshUserToGroupsMappings(RpcController controller, RefreshUserMappingsProtocolProtos.RefreshUserToGroupsMappingsRequestProto request) { try { impl.RefreshUserToGroupsMappings(); } catch (IOException e) { throw new ServiceException(e); } return(VoidRefreshUserGroupsMappingResponse); }
/// <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); }