aboutsummaryrefslogtreecommitdiff
path: root/core/src/hadoop2/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala
blob: 7afdbff3205c36b7c920ffa20851dfde06db3eec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
package org.apache.hadoop.mapreduce

import org.apache.hadoop.conf.Configuration
import task.{TaskAttemptContextImpl, JobContextImpl}

trait HadoopMapReduceUtil {
  def newJobContext(conf: Configuration, jobId: JobID): JobContext = new JobContextImpl(conf, jobId)

  def newTaskAttemptContext(conf: Configuration, attemptId: TaskAttemptID): TaskAttemptContext = new TaskAttemptContextImpl(conf, attemptId)
}