Esempio n. 1
0
        public static TaskAttemptId ToYarn(TaskAttemptID id)
        {
            TaskAttemptId taskAttemptId = recordFactory.NewRecordInstance <TaskAttemptId>();

            taskAttemptId.SetTaskId(ToYarn(id.GetTaskID()));
            taskAttemptId.SetId(id.GetId());
            return(taskAttemptId);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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));
        }