ほとんどの Hadoop MapReduce プログラムは次のようなものです。
public class MyApp extends Configured Implements Tool {
@Override
public int run(String[] args) throws Exception {
Job job = new Job(getConf());
/* process command line options */
return job.waitForCompletion(true) ? 0 : 1;
}
public static void main(String[] args) throws Exception {
int exitCode = ToolRunner.run(new MyApp(), args);
System.exit(exitCode);
}
}
の使用法はConfigured何ですか? asToolとConfiguredどちらにもgetConf()とsetConf()共通点があります。それは私たちのアプリケーションに何を提供しますか?