hadoop mr程序出现The constructor Job(Configuration, String) is deprecated

来源:互联网 发布:fopen提高权限 linux 编辑:程序博客网 时间:2024/05/16 08:16

解决方法如下:

1.添加注解

@SuppressWarnings("deprecation")
Job job = new Job(conf, "star");
 
2.使用 Job.getInstance(Configuration conf,String jobName )静态方法,创建job对象:
Job job = Job.getInstance(conf, "star");
阅读全文
0 0
原创粉丝点击