diff options
author | Mridul Muralidharan <mridul@gmail.com> | 2013-04-07 17:47:38 +0530 |
---|---|---|
committer | Mridul Muralidharan <mridul@gmail.com> | 2013-04-07 17:47:38 +0530 |
commit | 6798a09df84fb97e196c84d55cf3e21ad676871f (patch) | |
tree | 0d0f16518dfcfcdc10fd60ce49c860ed9bfc8c25 /core/src/hadoop1/scala/org/apache/hadoop/mapreduce | |
parent | 9831bc1a09fa7fd56f55c3df4f448bc37b3d7d9a (diff) | |
download | spark-6798a09df84fb97e196c84d55cf3e21ad676871f.tar.gz spark-6798a09df84fb97e196c84d55cf3e21ad676871f.tar.bz2 spark-6798a09df84fb97e196c84d55cf3e21ad676871f.zip |
Add support for building against hadoop2-yarn : adding new maven profile for it
Diffstat (limited to 'core/src/hadoop1/scala/org/apache/hadoop/mapreduce')
-rw-r--r-- | core/src/hadoop1/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/hadoop1/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala b/core/src/hadoop1/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala index de7b0f81e3..264d421d14 100644 --- a/core/src/hadoop1/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala +++ b/core/src/hadoop1/scala/org/apache/hadoop/mapreduce/HadoopMapReduceUtil.scala @@ -6,4 +6,7 @@ trait HadoopMapReduceUtil { def newJobContext(conf: Configuration, jobId: JobID): JobContext = new JobContext(conf, jobId) def newTaskAttemptContext(conf: Configuration, attemptId: TaskAttemptID): TaskAttemptContext = new TaskAttemptContext(conf, attemptId) + + def newTaskAttemptID(jtIdentifier: String, jobId: Int, isMap: Boolean, taskId: Int, attemptId: Int) = new TaskAttemptID(jtIdentifier, + jobId, isMap, taskId, attemptId) } |