HOW TO CHANGE THE DEFAULT KEY-VALUE SEPARATOR OF A MAPREDUCE JOB
2015-08-05 11:19
537 查看
The default MapReduce output format, TextOutputFormat, writes records as lines of text. Its keys and values may be of any type, since TextOutputFormat turns them to strings by calling toString() on them.
Each key-value pair is separated by a tab character. We can change this separator to some character of our choice using themapreduce.output.textoutputformat.separator (In the older MapReduce API this was mapred.textoutputformat.separator).
To do this you have to add this line in your driver function -
Configuration.set("mapreduce.output.key.field.separator", ",");
Each key-value pair is separated by a tab character. We can change this separator to some character of our choice using themapreduce.output.textoutputformat.separator (In the older MapReduce API this was mapred.textoutputformat.separator).
To do this you have to add this line in your driver function -
Configuration.set("mapreduce.output.key.field.separator", ",");
相关文章推荐
- iOS开发问题——UISearchBar背景颜色去除问题
- easyui datagrid打印
- Tesseract-OCR引擎试用 rebuild on vs2012【testing】
- 集训第四周(高效算法设计)A题 Ultra-QuickSort
- error C1189: #error : Please use the /MD switch for _AFXDLL builds---解决方案
- NGUI 3.9.0 Tween实现Toggle点击下拉菜单(游戏中常见的边角主菜单入口)
- 截取UIImage指定大小区域
- 图片切圆,label文字底部加一条线,自定义view的透明度渐变效果
- Guava缓存值CacheBuilder介绍
- POJ 2299 Ultra-QuickSort
- 五种创建UIImage的类方法
- iOS开发之UIImage等比缩放
- SAPUI5 table getRows方法
- 自定义导航按钮UIBarButtonItem
- Cpp的队列(Queue)学习笔记
- Starting MySQL.Manager of pid-file quit without updating file.[FAILED]解决方法
- 【leetcode】Distinct Subsequences
- SAPUI5 标准控件 事件 addEventDelegate
- 使用SQLQuery 在Hibernate中使用sql语句
- XIB或者storyboard中嵌入自定义view(xib)的方法