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()); }
/// <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()); }
public static JobID FromYarn(JobId id) { string identifier = FromClusterTimeStamp(id.GetAppId().GetClusterTimestamp()); return(new JobID(identifier, id.GetId())); }