예제 #1
0
        public virtual void TestToJobID()
        {
            JobId jid = MRApps.ToJobID("job_1_1");

            NUnit.Framework.Assert.AreEqual(1, jid.GetAppId().GetClusterTimestamp());
            NUnit.Framework.Assert.AreEqual(1, jid.GetAppId().GetId());
            NUnit.Framework.Assert.AreEqual(1, jid.GetId());
        }
예제 #2
0
 /// <summary>Computes a serial number used as part of directory naming for the given jobId.
 ///     </summary>
 /// <param name="id">the jobId.</param>
 /// <returns>the serial number used as part of directory naming for the given jobid</returns>
 public static int JobSerialNumber(JobId id)
 {
     return(id.GetId());
 }
예제 #3
0
        public static JobID FromYarn(JobId id)
        {
            string identifier = FromClusterTimeStamp(id.GetAppId().GetClusterTimestamp());

            return(new JobID(identifier, id.GetId()));
        }