/// <exception cref="System.Exception"/> public virtual void TestHDFSRMStateStore() { HdfsConfiguration conf = new HdfsConfiguration(); UserGroupInformation yarnAdmin = UserGroupInformation.CreateUserForTesting("yarn" , new string[] { "admin" }); MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).NumDataNodes(1).Build(); cluster.GetFileSystem().Mkdir(new Path("/yarn"), FsPermission.ValueOf("-rwxrwxrwx" )); cluster.GetFileSystem().SetOwner(new Path("/yarn"), "yarn", "admin"); UserGroupInformation hdfsAdmin = UserGroupInformation.GetCurrentUser(); RMStateStoreTestBase.StoreStateVerifier verifier = new _StoreStateVerifier_200(this , hdfsAdmin, cluster); // Wait for things to settle // Wait for things to settle try { yarnAdmin.DoAs(new _PrivilegedExceptionAction_243(this, cluster, verifier)); } finally { cluster.Shutdown(); } }
public _PrivilegedExceptionAction_228(_StoreStateVerifier_200 _enclosing, MiniDFSCluster cluster, RMStateStore store, ApplicationAttemptId appAttId) { this._enclosing = _enclosing; this.cluster = cluster; this.store = store; this.appAttId = appAttId; }