Interface HadoopShims

All Known Implementing Classes:
HadoopShimsImpl

public interface HadoopShims
A compatibility shim layer for interacting with different versions of Hadoop.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T, J> T
    Returns a TaskAttemptContext instance created from the given parameters.
  • Method Details

    • createTestTaskAttemptContext

      <T, J> T createTestTaskAttemptContext(J job, String taskId)
      Returns a TaskAttemptContext instance created from the given parameters.
      Parameters:
      job - an instance of o.a.h.mapreduce.Job
      taskId - an identifier for the task attempt id. Should be parsable by TaskAttemptId.forName()
      Returns:
      a concrete TaskAttemptContext instance of o.a.h.mapreduce.TaskAttemptContext