public virtual void TestZeroMaps() { MRApp app = new MRApp(0, 1, true, this.GetType().FullName, true); Org.Apache.Hadoop.Mapreduce.V2.App.Job.Job job = app.Submit(new Configuration()); app.WaitForState(job, JobState.Succeeded); app.VerifyCompleted(); }
public virtual void TestMapReduce() { MRApp app = new MRApp(2, 2, true, this.GetType().FullName, true); Org.Apache.Hadoop.Mapreduce.V2.App.Job.Job job = app.Submit(new Configuration()); app.WaitForState(job, JobState.Succeeded); app.VerifyCompleted(); NUnit.Framework.Assert.AreEqual(Runtime.GetProperty("user.name"), job.GetUserName ()); }