public static TaskAttemptId ToYarn(TaskAttemptID id) { TaskAttemptId taskAttemptId = recordFactory.NewRecordInstance <TaskAttemptId>(); taskAttemptId.SetTaskId(ToYarn(id.GetTaskID())); taskAttemptId.SetId(id.GetId()); return(taskAttemptId); }
public static TaskAttemptId NewTaskAttemptId(TaskId taskId, int attemptId) { TaskAttemptId taskAttemptId = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <TaskAttemptId >(); taskAttemptId.SetTaskId(taskId); taskAttemptId.SetId(attemptId); return(taskAttemptId); }
public static TaskAttempt NewTaskAttempt(TaskId tid, int i) { TaskAttemptId taid = Org.Apache.Hadoop.Yarn.Util.Records.NewRecord <TaskAttemptId> (); taid.SetTaskId(tid); taid.SetId(i); TaskAttemptReport report = NewTaskAttemptReport(taid); return(new _TaskAttempt_248(taid, report)); }