private static int getAttemptIdFromFilename(String filename) {
    return Integer.parseInt(getIdFromFilename(filename, true, true));
  }
Get the part-spec + task id from the filename. It is assumed that the filename is derived
from the output of getTaskId

@param filename
         filename to extract taskid from
ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java