hadoop counter介绍和自定义counter
来源:互联网 发布:php好难学 编辑:程序博客网 时间:2024/06/13 07:44
示例一个counter
show code
预定义基本的数据描述和分组
public class JobCountersData { public static final String ALL_OUTPUT_ITEMS = "All Output Items"; public static final String GROUP = "Conuter"; }
使用
context.getCounter(JobCountersData.GROUP,JobCountersData.ALL_OUTPUT_ITEMS).increment(1);
上述示例只是简单统计reduce写出数据条数,
当然可以实现其他的比如reduce端分类统计数据输出条数,只需要加上简单的预定义和判断即可。
hadoop系统也提供了自己的counter,详细介绍见:
http://langyu.iteye.com/blog/1171091
0 0
- hadoop counter介绍和自定义counter
- Hadoop自定义Counter
- Hadoop自定义计数器Counter
- hadoop counter
- Hadoop Counter
- Hadoop Counter
- counter
- counter
- Counter
- hadoop自定义counter简单java Demo
- hadoop知识之counter
- counter-reset属性和counter-increment属性
- css的counter-increment和counter-reset
- [hadoop源码阅读][5]-counter的使用和默认counter的含义
- Hadoop中counter的使用和默认counter的含义<转>
- Hadoop源码分析[5]-counter的使用和默认counter的含义
- smarty 中的自定义函数counter
- python开发_re和counter
- UI_UINavigationController
- CocoaPods 0.35.0版本, 出现循环依赖的解决办法
- 达创笔试一
- IOS三种线程技术各自优缺点
- c#中abstract和virtual区别
- hadoop counter介绍和自定义counter
- Redis数据结构详解
- MATLAB getframe用法
- ACE反应器框架简介
- 算法导论 第19章 二项堆
- hdoj.1881 毕业bg【DP】 2015/03/26
- 高并发的socket的高性能设计
- “线程不安全”就是这样任性
- Android JSON解析(1)