修复-运行hadoop作业时出现警告“使用GenericOptionsParser解析参数”?
当我提交hadoop作业时,它总是说 警告[JobClient]使用GenericOptionsParser解析参数。应用程序应该为相同的应用程序实现工具 我怎样才能解决这个问题?修复-运行hadoop作业时出现警告“使用GenericOptionsParser解析参数”?,hadoop,Hadoop,当我提交hadoop作业时,它总是说 警告[JobClient]使用GenericOptionsParser解析参数。应用程序应该为相同的应用程序实现工具 我怎样才能解决这个问题? 我使用的是CDH 4.6.0。您应该使用以下类似的驱动程序代码来启动MapReduce作业,以消除警告,尽管它不会造成任何伤害: public class MyClass extends Configured implements Tool { public int run(String [] args)
我使用的是CDH 4.6.0。您应该使用以下类似的驱动程序代码来启动MapReduce作业,以消除警告,尽管它不会造成任何伤害:
public class MyClass extends Configured implements Tool {
public int run(String [] args) throws IOException {
JobConf conf = new JobConf(getConf(), MyClass.class);
// run the job here.
return 0;
}
public static void main(String [] args) throws Exception {
int status = ToolRunner.run(new MyClass(), args); // calls your run() method.
System.exit(status);
}
}