'The attemptid looks like this: attempt_201001301455_0001_m_000007_0'

def thriftattemptid_from_string(self, attemptid):

    (_, meat) = attemptid.split('_', maxsplit=1)
    (taskid, aid) = meat.rsplit('_', maxsplit=1)
    return ThriftTaskAttemptID(self.thrifttaskid_from_string(taskid), int(aid))
