コード例 #1
0
ファイル: HSAdminServer.cs プロジェクト: orf53975/hadoop.net
        /// <exception cref="System.IO.IOException"/>
        public virtual void RefreshSuperUserGroupsConfiguration()
        {
            UserGroupInformation user = CheckAcls("refreshSuperUserGroupsConfiguration");

            ProxyUsers.RefreshSuperUserGroupsConfiguration(CreateConf());
            HSAuditLogger.LogSuccess(user.GetShortUserName(), "refreshSuperUserGroupsConfiguration"
                                     , HistoryAdminServer);
        }
コード例 #2
0
ファイル: HSAdminServer.cs プロジェクト: orf53975/hadoop.net
        /// <exception cref="System.IO.IOException"/>
        public virtual void RefreshUserToGroupsMappings()
        {
            UserGroupInformation user = CheckAcls("refreshUserToGroupsMappings");

            Groups.GetUserToGroupsMappingService().Refresh();
            HSAuditLogger.LogSuccess(user.GetShortUserName(), "refreshUserToGroupsMappings",
                                     HistoryAdminServer);
        }
コード例 #3
0
ファイル: HSAdminServer.cs プロジェクト: orf53975/hadoop.net
        /// <exception cref="System.IO.IOException"/>
        public virtual void RefreshAdminAcls()
        {
            UserGroupInformation user = CheckAcls("refreshAdminAcls");
            Configuration        conf = CreateConf();

            adminAcl = new AccessControlList(conf.Get(JHAdminConfig.JhsAdminAcl, JHAdminConfig
                                                      .DefaultJhsAdminAcl));
            HSAuditLogger.LogSuccess(user.GetShortUserName(), "refreshAdminAcls", HistoryAdminServer
                                     );
        }
コード例 #4
0
ファイル: HSAdminServer.cs プロジェクト: orf53975/hadoop.net
        /// <exception cref="System.IO.IOException"/>
        public virtual void RefreshJobRetentionSettings()
        {
            UserGroupInformation user = CheckAcls("refreshJobRetentionSettings");

            try
            {
                loginUGI.DoAs(new _PrivilegedExceptionAction_276(this));
            }
            catch (Exception e)
            {
                throw new IOException(e);
            }
            HSAuditLogger.LogSuccess(user.GetShortUserName(), "refreshJobRetentionSettings",
                                     HistoryAdminServer);
        }
コード例 #5
0
ファイル: HSAdminServer.cs プロジェクト: orf53975/hadoop.net
        /// <exception cref="System.IO.IOException"/>
        public virtual void RefreshLoadedJobCache()
        {
            UserGroupInformation user = CheckAcls("refreshLoadedJobCache");

            try
            {
                jobHistoryService.RefreshLoadedJobCache();
            }
            catch (NotSupportedException e)
            {
                HSAuditLogger.LogFailure(user.GetShortUserName(), "refreshLoadedJobCache", adminAcl
                                         .ToString(), HistoryAdminServer, e.Message);
                throw;
            }
            HSAuditLogger.LogSuccess(user.GetShortUserName(), "refreshLoadedJobCache", HistoryAdminServer
                                     );
        }