Java Code Examples for org.apache.hadoop.mapreduce.TaskType#valueOf()
The following examples show how to use
org.apache.hadoop.mapreduce.TaskType#valueOf() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReduceAttemptFinishedEvent.java From hadoop with Apache License 2.0 | 6 votes |
public void setDatum(Object oDatum) { this.datum = (ReduceAttemptFinished)oDatum; this.attemptId = TaskAttemptID.forName(datum.attemptId.toString()); this.taskType = TaskType.valueOf(datum.taskType.toString()); this.taskStatus = datum.taskStatus.toString(); this.shuffleFinishTime = datum.shuffleFinishTime; this.sortFinishTime = datum.sortFinishTime; this.finishTime = datum.finishTime; this.hostname = datum.hostname.toString(); this.rackName = datum.rackname.toString(); this.port = datum.port; this.state = datum.state.toString(); this.counters = EventReader.fromAvro(datum.counters); this.clockSplits = AvroArrayUtils.fromAvro(datum.clockSplits); this.cpuUsages = AvroArrayUtils.fromAvro(datum.cpuUsages); this.gpuUsages = AvroArrayUtils.fromAvro(datum.gpuUsages); this.vMemKbytes = AvroArrayUtils.fromAvro(datum.vMemKbytes); this.physMemKbytes = AvroArrayUtils.fromAvro(datum.physMemKbytes); }
Example 2
Source File: TaskAttemptUnsuccessfulCompletionEvent.java From hadoop with Apache License 2.0 | 6 votes |
public void setDatum(Object odatum) { this.datum = (TaskAttemptUnsuccessfulCompletion)odatum; this.attemptId = TaskAttemptID.forName(datum.attemptId.toString()); this.taskType = TaskType.valueOf(datum.taskType.toString()); this.finishTime = datum.finishTime; this.hostname = datum.hostname.toString(); this.rackName = datum.rackname.toString(); this.port = datum.port; this.status = datum.status.toString(); this.error = datum.error.toString(); this.counters = EventReader.fromAvro(datum.counters); this.clockSplits = AvroArrayUtils.fromAvro(datum.clockSplits); this.cpuUsages = AvroArrayUtils.fromAvro(datum.cpuUsages); this.gpuUsages = AvroArrayUtils.fromAvro(datum.gpuUsages); this.vMemKbytes = AvroArrayUtils.fromAvro(datum.vMemKbytes); this.physMemKbytes = AvroArrayUtils.fromAvro(datum.physMemKbytes); }
Example 3
Source File: MapAttemptFinishedEvent.java From big-c with Apache License 2.0 | 6 votes |
public void setDatum(Object oDatum) { this.datum = (MapAttemptFinished)oDatum; this.attemptId = TaskAttemptID.forName(datum.attemptId.toString()); this.taskType = TaskType.valueOf(datum.taskType.toString()); this.taskStatus = datum.taskStatus.toString(); this.mapFinishTime = datum.mapFinishTime; this.finishTime = datum.finishTime; this.hostname = datum.hostname.toString(); this.rackName = datum.rackname.toString(); this.port = datum.port; this.state = datum.state.toString(); this.counters = EventReader.fromAvro(datum.counters); this.clockSplits = AvroArrayUtils.fromAvro(datum.clockSplits); this.cpuUsages = AvroArrayUtils.fromAvro(datum.cpuUsages); this.vMemKbytes = AvroArrayUtils.fromAvro(datum.vMemKbytes); this.physMemKbytes = AvroArrayUtils.fromAvro(datum.physMemKbytes); }
Example 4
Source File: TaskFailedEvent.java From big-c with Apache License 2.0 | 6 votes |
public void setDatum(Object odatum) { this.datum = (TaskFailed)odatum; this.id = TaskID.forName(datum.taskid.toString()); this.taskType = TaskType.valueOf(datum.taskType.toString()); this.finishTime = datum.finishTime; this.error = datum.error.toString(); this.failedDueToAttempt = datum.failedDueToAttempt == null ? null : TaskAttemptID.forName( datum.failedDueToAttempt.toString()); this.status = datum.status.toString(); this.counters = EventReader.fromAvro(datum.counters); }
Example 5
Source File: TaskFailedEvent.java From hadoop with Apache License 2.0 | 6 votes |
public void setDatum(Object odatum) { this.datum = (TaskFailed)odatum; this.id = TaskID.forName(datum.taskid.toString()); this.taskType = TaskType.valueOf(datum.taskType.toString()); this.finishTime = datum.finishTime; this.error = datum.error.toString(); this.failedDueToAttempt = datum.failedDueToAttempt == null ? null : TaskAttemptID.forName( datum.failedDueToAttempt.toString()); this.status = datum.status.toString(); this.counters = EventReader.fromAvro(datum.counters); }
Example 6
Source File: TaskAttemptUnsuccessfulCompletionEvent.java From big-c with Apache License 2.0 | 6 votes |
public void setDatum(Object odatum) { this.datum = (TaskAttemptUnsuccessfulCompletion)odatum; this.attemptId = TaskAttemptID.forName(datum.attemptId.toString()); this.taskType = TaskType.valueOf(datum.taskType.toString()); this.finishTime = datum.finishTime; this.hostname = datum.hostname.toString(); this.rackName = datum.rackname.toString(); this.port = datum.port; this.status = datum.status.toString(); this.error = datum.error.toString(); this.counters = EventReader.fromAvro(datum.counters); this.clockSplits = AvroArrayUtils.fromAvro(datum.clockSplits); this.cpuUsages = AvroArrayUtils.fromAvro(datum.cpuUsages); this.vMemKbytes = AvroArrayUtils.fromAvro(datum.vMemKbytes); this.physMemKbytes = AvroArrayUtils.fromAvro(datum.physMemKbytes); }
Example 7
Source File: MapAttemptFinishedEvent.java From hadoop with Apache License 2.0 | 6 votes |
public void setDatum(Object oDatum) { this.datum = (MapAttemptFinished)oDatum; this.attemptId = TaskAttemptID.forName(datum.attemptId.toString()); this.taskType = TaskType.valueOf(datum.taskType.toString()); this.taskStatus = datum.taskStatus.toString(); this.mapFinishTime = datum.mapFinishTime; this.finishTime = datum.finishTime; this.hostname = datum.hostname.toString(); this.rackName = datum.rackname.toString(); this.port = datum.port; this.state = datum.state.toString(); this.counters = EventReader.fromAvro(datum.counters); this.clockSplits = AvroArrayUtils.fromAvro(datum.clockSplits); this.cpuUsages = AvroArrayUtils.fromAvro(datum.cpuUsages); this.gpuUsages = AvroArrayUtils.fromAvro(datum.gpuUsages); this.vMemKbytes = AvroArrayUtils.fromAvro(datum.vMemKbytes); this.physMemKbytes = AvroArrayUtils.fromAvro(datum.physMemKbytes); }
Example 8
Source File: ReduceAttemptFinishedEvent.java From big-c with Apache License 2.0 | 6 votes |
public void setDatum(Object oDatum) { this.datum = (ReduceAttemptFinished)oDatum; this.attemptId = TaskAttemptID.forName(datum.attemptId.toString()); this.taskType = TaskType.valueOf(datum.taskType.toString()); this.taskStatus = datum.taskStatus.toString(); this.shuffleFinishTime = datum.shuffleFinishTime; this.sortFinishTime = datum.sortFinishTime; this.finishTime = datum.finishTime; this.hostname = datum.hostname.toString(); this.rackName = datum.rackname.toString(); this.port = datum.port; this.state = datum.state.toString(); this.counters = EventReader.fromAvro(datum.counters); this.clockSplits = AvroArrayUtils.fromAvro(datum.clockSplits); this.cpuUsages = AvroArrayUtils.fromAvro(datum.cpuUsages); this.vMemKbytes = AvroArrayUtils.fromAvro(datum.vMemKbytes); this.physMemKbytes = AvroArrayUtils.fromAvro(datum.physMemKbytes); }
Example 9
Source File: Version20LogInterfaceUtils.java From big-c with Apache License 2.0 | 5 votes |
static TaskType get20TaskType(String taskType) { try { return TaskType.valueOf(taskType); } catch (IllegalArgumentException e) { if ("CLEANUP".equals(taskType)) { return TaskType.JOB_CLEANUP; } if ("SETUP".equals(taskType)) { return TaskType.JOB_SETUP; } return null; } }
Example 10
Source File: TaskAttemptFinishedEvent.java From hadoop with Apache License 2.0 | 5 votes |
public void setDatum(Object oDatum) { this.datum = (TaskAttemptFinished)oDatum; this.attemptId = TaskAttemptID.forName(datum.attemptId.toString()); this.taskType = TaskType.valueOf(datum.taskType.toString()); this.taskStatus = datum.taskStatus.toString(); this.finishTime = datum.finishTime; this.rackName = datum.rackname.toString(); this.hostname = datum.hostname.toString(); this.state = datum.state.toString(); this.counters = EventReader.fromAvro(datum.counters); }
Example 11
Source File: TaskFinishedEvent.java From big-c with Apache License 2.0 | 5 votes |
public void setDatum(Object oDatum) { this.datum = (TaskFinished)oDatum; this.taskid = TaskID.forName(datum.taskid.toString()); if (datum.successfulAttemptId != null) { this.successfulAttemptId = TaskAttemptID .forName(datum.successfulAttemptId.toString()); } this.finishTime = datum.finishTime; this.taskType = TaskType.valueOf(datum.taskType.toString()); this.status = datum.status.toString(); this.counters = EventReader.fromAvro(datum.counters); }
Example 12
Source File: TaskAttemptFinishedEvent.java From big-c with Apache License 2.0 | 5 votes |
public void setDatum(Object oDatum) { this.datum = (TaskAttemptFinished)oDatum; this.attemptId = TaskAttemptID.forName(datum.attemptId.toString()); this.taskType = TaskType.valueOf(datum.taskType.toString()); this.taskStatus = datum.taskStatus.toString(); this.finishTime = datum.finishTime; this.rackName = datum.rackname.toString(); this.hostname = datum.hostname.toString(); this.state = datum.state.toString(); this.counters = EventReader.fromAvro(datum.counters); }
Example 13
Source File: Version20LogInterfaceUtils.java From hadoop with Apache License 2.0 | 5 votes |
static TaskType get20TaskType(String taskType) { try { return TaskType.valueOf(taskType); } catch (IllegalArgumentException e) { if ("CLEANUP".equals(taskType)) { return TaskType.JOB_CLEANUP; } if ("SETUP".equals(taskType)) { return TaskType.JOB_SETUP; } return null; } }
Example 14
Source File: TaskFinishedEvent.java From hadoop with Apache License 2.0 | 5 votes |
public void setDatum(Object oDatum) { this.datum = (TaskFinished)oDatum; this.taskid = TaskID.forName(datum.taskid.toString()); if (datum.successfulAttemptId != null) { this.successfulAttemptId = TaskAttemptID .forName(datum.successfulAttemptId.toString()); } this.finishTime = datum.finishTime; this.taskType = TaskType.valueOf(datum.taskType.toString()); this.status = datum.status.toString(); this.counters = EventReader.fromAvro(datum.counters); }
Example 15
Source File: TaskAttemptStartedEvent.java From hadoop with Apache License 2.0 | 4 votes |
/** Get the task type */ public TaskType getTaskType() { return TaskType.valueOf(datum.taskType.toString()); }
Example 16
Source File: TaskAttemptUnsuccessfulCompletionEvent.java From big-c with Apache License 2.0 | 4 votes |
/** Get the task type */ public TaskType getTaskType() { return TaskType.valueOf(taskType.toString()); }
Example 17
Source File: TaskStartedEvent.java From big-c with Apache License 2.0 | 4 votes |
/** Get the task type */ public TaskType getTaskType() { return TaskType.valueOf(datum.taskType.toString()); }
Example 18
Source File: TaskStartedEvent.java From hadoop with Apache License 2.0 | 4 votes |
/** Get the task type */ public TaskType getTaskType() { return TaskType.valueOf(datum.taskType.toString()); }
Example 19
Source File: TaskAttemptStartedEvent.java From big-c with Apache License 2.0 | 4 votes |
/** Get the task type */ public TaskType getTaskType() { return TaskType.valueOf(datum.taskType.toString()); }
Example 20
Source File: TaskAttemptUnsuccessfulCompletionEvent.java From hadoop with Apache License 2.0 | 4 votes |
/** Get the task type */ public TaskType getTaskType() { return TaskType.valueOf(taskType.toString()); }