Hadoop:键和值在输出文件中分隔。怎么做分号分隔? [英] Hadoop: key and value are tab separated in the output file. how to do it semicolon-separated?
本文介绍了Hadoop:键和值在输出文件中分隔。怎么做分号分隔?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
键(标签空间)值
into
key; value
在所有输出文件中,reducers从映射器的输出生成。
我使用谷歌找不到很好的文档。任何人都可以提供一些关于如何实现这一点的代码?
解决方案
设置配置属性 mapred .textoutputformat.separator
to ;
I think the title is already explaining my question. I would like to change
key (tab space) value
into
key;value
in all output files the reducers are generating from the output of mappers.
I could not find good documentation on this using google. Can anyone please give a fraction of code on how to achieve this?
解决方案
Set the configuration property mapred.textoutputformat.separator
to ";"
这篇关于Hadoop:键和值在输出文件中分隔。怎么做分号分隔?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文