hadoop probing for task-specific information

在mapper/reducer configure()阶段:

		String str = job.get("map.input.file");
		System.out.println(str);
		System.out.println(job.get("job.local.dir"));
		System.out.println(job.get("mapred.jar"));
		System.out.println(job.get("mapred.tip.id"));
		System.out.println(job.get("mapred.task.id"));
		System.out.println(job.get("mapred.task.is.map"));
		System.out.println(job.get("mapred.task.partition"));
		System.out.println(job.get("map.input.start"));
		System.out.println(job.get("map.input.length"));
		System.out.println(job.get("mapred.work.output.dir"));


hdfs://localhost:9000/user/kexie-pc/kexie/mpinput/A.txt
null
hdfs://localhost:9000/tmp/hadoop-KeXie/mapred/system/job_local_0001/job.jar
task_local_0001_m_000000
attempt_local_0001_m_000000_0
true
0
0
26
hdfs://localhost:9000/user/kexie-pc/kexie/mpoutput/_temporary/_attempt_local_0001_m_000000_0


hdfs://localhost:9000/user/kexie-pc/kexie/mpinput/B.txt
null
hdfs://localhost:9000/tmp/hadoop-KeXie/mapred/system/job_local_0001/job.jar
task_local_0001_m_000001
attempt_local_0001_m_000001_0
true
1
0
19
hdfs://localhost:9000/user/kexie-pc/kexie/mpoutput/_temporary/_attempt_local_0001_m_000001_0
 

你可能感兴趣的:(hadoop)