code: public void logTaskFailed(TaskID taskId, String taskType, long time,
        String error) {
      logTaskFailed(taskId, taskType, time, error, null);
    }
docs: Log job failed event.
  @param taskId task id
  @param taskType MAP or REDUCE.
  @param time timestamp when job failed detected.
  @param error error message for failure.