Exemplo n.º 1
0
        public virtual void TestToTaskAttemptID()
        {
            TaskAttemptId taid = MRApps.ToTaskAttemptID("attempt_0_1_m_2_3");

            NUnit.Framework.Assert.AreEqual(0, taid.GetTaskId().GetJobId().GetAppId().GetClusterTimestamp
                                                ());
            NUnit.Framework.Assert.AreEqual(1, taid.GetTaskId().GetJobId().GetAppId().GetId()
                                            );
            NUnit.Framework.Assert.AreEqual(1, taid.GetTaskId().GetJobId().GetId());
            NUnit.Framework.Assert.AreEqual(2, taid.GetTaskId().GetId());
            NUnit.Framework.Assert.AreEqual(3, taid.GetId());
        }
Exemplo n.º 2
0
 public virtual void TestTaskAttemptIDShort()
 {
     MRApps.ToTaskAttemptID("attempt_0_0_0_m_0");
 }