Hadoop Problem : hadoop0.20.2中的KeyValueTextInputFormat
2014-09-19 13:28
148 查看
from:http://blog.csdn.net/yutinghao/article/details/22868767
今天想用数据输入格式KeyValueInputFormat,API文档上的方法,我使用job.setInputFormatClass(KeyValueTextInputFormat.class);结果却报错The method setInputFormatClass(Class<? extends InputFormat>) in the type Job is not applicable for the arguments (Class<KeyValueTextInputFormat>)
我重新看了下API文档,确定这种写法应该是没问题的,可是怎么报错了呢?然后我google了相关内容,终于找到了原因。
http://lucene.472066.n3.nabble.com/No-KeyValueTextInputFormat-in-hadoop-0-20-2-td894459.html
对于这个问题,大家在这个链接里进行了讨论,结果是The new api KeyValueTextInputFormat is not available in branch 0.20. It is added in branch 0.21 through https://issues.apache.org/jira/browse/MAPREDUCE-655.
好吧,也就是在这个版本不能使用KeyValueInputFormat。除非自己去写了。
今天想用数据输入格式KeyValueInputFormat,API文档上的方法,我使用job.setInputFormatClass(KeyValueTextInputFormat.class);结果却报错The method setInputFormatClass(Class<? extends InputFormat>) in the type Job is not applicable for the arguments (Class<KeyValueTextInputFormat>)
我重新看了下API文档,确定这种写法应该是没问题的,可是怎么报错了呢?然后我google了相关内容,终于找到了原因。
http://lucene.472066.n3.nabble.com/No-KeyValueTextInputFormat-in-hadoop-0-20-2-td894459.html
对于这个问题,大家在这个链接里进行了讨论,结果是The new api KeyValueTextInputFormat is not available in branch 0.20. It is added in branch 0.21 through https://issues.apache.org/jira/browse/MAPREDUCE-655.
好吧,也就是在这个版本不能使用KeyValueInputFormat。除非自己去写了。
相关文章推荐
- Hadoop on Mac with IntelliJ IDEA - 6 解决KeyValueTextInputFormat读取时只有key值问题
- hadoop0.20.2中的KeyValueInputFormat
- KeyValueTextInputFormat 分割key value For hadoop 1.0
- KeyValueTextInputFormat 分割key value For hadoop 1.0
- hadoop 之 InputFormat类 --- KeyValueTextInputFormat 实例
- KeyValueTextInputFormat 分割key value 设置问题:key.value.separator.in.input.line
- KeyValueTextInputFormat用法
- KeyValueTextInputFormat 重写
- MapReduce的KeyValueTextInputFormat
- KeyValueTextInputFormat实例
- Hadoop中的KeyValueInputFormat
- MapReduce的输入格式---KeyValueTextInputFormat---源码分析
- MapReduce的KeyValueTextInputFormat使用
- Hadoop源码解析之: TextInputFormat如何处理跨split的行
- Hadoop源码解析之: TextInputFormat如何处理跨split的行
- Hadoop源码解析之: TextInputFormat如何处理跨split的行
- Hadoop源代码分析(一)——输入(TextInputFormat,FileSplit,LineRecordReader)
- KeyValueInputFormat自定义分割符
- Hadoop源码解析之: TextInputFormat如何处理跨split的行
- 由TextInputFormat编译错误到Hadoop.mapred包和Hadoop.mapreduce包 9f3f 的区别