The constructor Job(Configuration,String) is deprecated
来源:互联网 发布:用友是什么软件 编辑:程序博客网 时间:2024/04/29 18:03
如果你跟我一样有强迫症,可以通过下面两种方式去掉这个提示:
1.添加注解
@SuppressWarnings("deprecation")
Job job = new Job(conf, "word count");
2.使用 Job.getInstance(Configuration conf,String jobName )静态方法,创建job对象:
Configuration conf = new Configuration();
Job job = Job.getInstance(conf,"word count");
0 0
- The constructor Job(Configuration,String) is deprecated
- hadoop mr程序出现The constructor Job(Configuration, String) is deprecated
- The constructor SchemaExport(Configuration) is deprecated
- The Constructor Date(String) is Deprecated since of JDK 1.1 you should not use it
- Android The constructor GestureDetector(GestureDetector.OnGestureListener) is deprecated
- The method buildSessionFactory() from the type Configuration is deprecated
- WARN conf.Configuration: mapred.output.value.class is deprecated. Instead, use mapreduce.job.output.
- 报错The constructor worker(int, String, float) is undefined
- The constructor UrlEncodedFormEntity(List<NameValuePair>, String) is undefined
- ORA-23421: job number string is not a job in the job queue
- The constructor WeiboAuth(new View.OnClickListener(){}, String, String, String) is undefined
- The type Contacts is deprecated
- The type SmsMessage is deprecated
- The type SmsMessage is deprecated
- The type MultipartEntity is deprecated
- The type ActionBarActivity is deprecated
- The type SmsMessage is deprecated
- The "Android" command is deprecated.
- JSON 之FastJson解析
- HTTP协议上的文件上传
- 两种单例模式区别
- Win7、Ubuntu双系统正确卸载Ubuntu系统
- Android学习系列二:SVN安装及检出工程
- The constructor Job(Configuration,String) is deprecated
- 锤子宣布调整T1手机价格 降价幅度达千元
- LeetCode 131 Palindrome Partitioning
- 第九周项目五:程序填充题
- 电子商务投诉与维权 京东白条
- 网络爬虫
- IOS征途之C语言-学习IOS开发工具Xcode的笔记与总结
- TCP协议通过哪些差错检测和纠正方法来保证传输的可靠性?
- http协议上传实现