We don't need a separate call to rawService here.  We already have the history file contents present in the Result instance passed in to the map() method.  Just do something like (taken from JobHistoryRawService.getJobHistoryInputStreamFromResult()):

    KeyValue keyValue = result.getColumnLatest(Constants.RAW_FAM_BYTES,
        Constants.JOBHISTORY_COL_BYTES);

    byte[] historyFileContents = null;
    if (keyValue == null) {
      throw new MissingColumnInResultException(Constants.RAW_FAM_BYTES,
          Constants.JOBHISTORY_COL_BYTES);
    } else {
      historyFileContents = keyValue.getValue();
    }