Hadoop:键和值在输出文件中以制表符分隔.如何做到分号分隔? [英] Hadoop: key and value are tab separated in the output file. how to do it semicolon-separated?

查看:19
本文介绍了Hadoop:键和值在输出文件中以制表符分隔.如何做到分号分隔?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为标题已经在解释我的问题.我想改变

I think the title is already explaining my question. I would like to change

key (tab space) value

进入

key;value

在所有输出文件中,reducer 都是从映射器的输出生成的.

in all output files the reducers are generating from the output of mappers.

我无法使用 google 找到关于此的良好文档.谁能提供一小部分代码来说明如何实现这一点?

I could not find good documentation on this using google. Can anyone please give a fraction of code on how to achieve this?

推荐答案

设置配置属性mapred.textoutputformat.separator";"

这篇关于Hadoop:键和值在输出文件中以制表符分隔.如何做到分号分隔?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆