private void initAttempId(JobConf conf) {
		String taskId = conf.get("mapred.task.id");
		if (taskId == null) {
			throw new IllegalArgumentException(
					"Configutaion does not contain the property mapred.task.id");
		}
		
		String[] parts = taskId.split("_");
		if (    parts.length != 6 || !parts[0].equals("attempt") 
				|| (!"m".equals(parts[3]) && !"r".equals(parts[3]))) {
			throw new IllegalArgumentException(
					"TaskAttemptId string : " + taskId + " is not properly formed");
		}
		attemptId = parts[4]+parts[3];
		System.out.println("attempId: " + attemptId);
	}