public static TaskAttemptID deserializeTaskId(byte[] arr) {
ByteArrayInputStream bis = new ByteArrayInputStream(arr);
DataInputStream in = new DataInputStream(bis);
TaskAttemptID id = new TaskAttemptID();
try {
id.readFields(in);
} catch (IOException e) {
LOG.error(e);
} finally {
try {
in.close();