Ejemplo n.º 1
0
 private void CheckExpected(Org.Apache.Hadoop.Mapreduce.Counters counters)
 {
     NUnit.Framework.Assert.AreEqual(FrameworkCounterValue, counters.FindCounter(FrameworkCounter
                                                                                 ).GetValue());
     NUnit.Framework.Assert.AreEqual(FsCounterValue, counters.FindCounter(FsScheme, FsCounter
                                                                          ).GetValue());
 }
Ejemplo n.º 2
0
 private void TestMaxGroups(Org.Apache.Hadoop.Mapreduce.Counters counters)
 {
     Log.Info("counter groups max=" + Limits.GetGroupsMax());
     for (int i = 0; i < Limits.GetGroupsMax(); ++i)
     {
         // assuming COUNTERS_MAX > GROUPS_MAX
         counters.FindCounter("test" + i, "test");
     }
     SetExpected(counters);
     ShouldThrow(typeof(LimitExceededException), new _Runnable_124(counters));
     CheckExpected(counters);
 }
Ejemplo n.º 3
0
 private void SetExpected(Org.Apache.Hadoop.Mapreduce.Counters counters)
 {
     counters.FindCounter(FrameworkCounter).SetValue(FrameworkCounterValue);
     counters.FindCounter(FsScheme, FsCounter).SetValue(FsCounterValue);
 }
Ejemplo n.º 4
0
 public _Runnable_124(Org.Apache.Hadoop.Mapreduce.Counters counters)
 {
     this.counters = counters;
 }