Database Reference
In-Depth Information
System.exit(-1);
}
JobConf conf = new JobConf(OldMaxTemperature.class);
conf
.setJobName("Max temperature");
FileInputFormat.addInputPath(
conf
, new Path(args[0]));
FileOutputFormat.setOutputPath(
conf
, new Path(args[1]));
conf
.setMapperClass(OldMaxTemperatureMapper.class);
conf
.setReducerClass(OldMaxTemperatureReducer.class);
conf
.setOutputKeyClass(Text.class);
conf
.setOutputValueClass(IntWritable.class);
JobClient.runJob(conf);
}
}
[
168
]
Technically, such a change would almost certainly break implementations that already define a method
with the same signature as Jim des Rivières explains in
“Evolving Java-based APIs,”
for all practical pur-
poses this is treated as a compatible change.
[
169
]
“Java theory and practice: Dealing with InterruptedException”
by Brian Goetz explains this technique
in detail.