资源简介
完整的词频统计MapReduce版本。基于Hadoop2.2.0,包含一个十万单词左右的测试文件。请参照 http://blog.csdn.net/zythy/article/details/17888439 获取详细解说。
代码片段和文件信息
package com.oserp.wordsfrequencies;
import java.io.IOException;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
public class WordsFrequenciesCombiner extends org.apache.hadoop.mapreduce.Reducer{
@Override
protected void reduce(Text key Iterable values
Context context)
throws IOException InterruptedException {
long counts = 0;
for (LongWritable value : values) {
counts += value.get();
}
context.write(key new LongWritable(counts));
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3278 2014-01-05 11:02 WordsFrequencies\bin\com\oserp\wordsfrequencies\WordsFrequenciesRunner.class
文件 2316 2014-01-05 09:48 WordsFrequencies\bin\com\oserp\wordsfrequencies\WordsFrequenciesReducer.class
文件 2275 2014-01-05 10:40 WordsFrequencies\bin\com\oserp\wordsfrequencies\WordsFrequenciesMapper2.class
文件 1066 2014-01-05 09:29 WordsFrequencies\bin\com\oserp\wordsfrequencies\WordsFrequenciesPartitioner.class
文件 2358 2014-01-05 09:29 WordsFrequencies\bin\com\oserp\wordsfrequencies\WordsFrequenciesMapper.class
文件 2319 2014-01-05 09:51 WordsFrequencies\bin\com\oserp\wordsfrequencies\WordsFrequenciesCombiner.class
文件 2300 2014-01-05 10:48 WordsFrequencies\bin\com\oserp\wordsfrequencies\WordsFrequenciesReducer2.class
文件 663 2014-01-05 08:01 WordsFrequencies\src\com\oserp\wordsfrequencies\WordsFrequenciesMapper.java
文件 578 2014-01-05 09:48 WordsFrequencies\src\com\oserp\wordsfrequencies\WordsFrequenciesReducer.java
文件 2845 2014-01-05 11:02 WordsFrequencies\src\com\oserp\wordsfrequencies\WordsFrequenciesRunner.java
文件 508 2014-01-04 14:03 WordsFrequencies\src\com\oserp\wordsfrequencies\WordsFrequenciesPartitioner.java
文件 557 2014-01-05 09:51 WordsFrequencies\src\com\oserp\wordsfrequencies\WordsFrequenciesCombiner.java
文件 488 2014-01-05 10:40 WordsFrequencies\src\com\oserp\wordsfrequencies\WordsFrequenciesMapper2.java
文件 573 2014-01-05 10:48 WordsFrequencies\src\com\oserp\wordsfrequencies\WordsFrequenciesReducer2.java
文件 427 2014-01-03 08:44 WordsFrequencies\.project
文件 14523 2014-01-03 08:44 WordsFrequencies\.classpath
目录 0 2014-01-05 09:30 WordsFrequencies\bin\com\oserp\wordsfrequencies\
目录 0 2014-01-05 09:30 WordsFrequencies\src\com\oserp\wordsfrequencies\
目录 0 2014-01-05 09:29 WordsFrequencies\bin\com\oserp\
目录 0 2014-01-03 08:54 WordsFrequencies\src\com\oserp\
目录 0 2014-01-05 09:29 WordsFrequencies\bin\com\
目录 0 2014-01-03 08:54 WordsFrequencies\src\com\
目录 0 2014-01-05 09:29 WordsFrequencies\bin\
目录 0 2014-01-03 08:54 WordsFrequencies\src\
目录 0 2014-01-03 08:44 WordsFrequencies\
文件 430201 2014-01-03 23:09 10 Steps To Sales Success.txt
- 上一篇:cad插件之统计线段长度
- 下一篇:Spectrum-2010自动生成反应谱程序
相关资源
- hadoop+lucene几种结合形式
- 大数据培训视频教程.zip
- Hadoop MapReduce实现tfidf源码
- 整理的大数据hadoop教学视频尚硅谷,
- hadoop3.0.0以上版本的winutil
- Hue之编译之后的压缩包
- windows64位平台的hadoop2.5.2插件包(ha
- Hadoop课程实验和报告——Apriori算法并
- 实验题目:基于Hadoop的并行贝叶斯分
- win10编译hadoop2.6.4后的bin
- hadoop-common-2.7.3-bin-master包含hadoop.dll、
-
coursera Hadoop Platform and Application fr
- hadoop全分布式-脚本一键安装
- Hadoop 2.7.4 Windows 7 64Bit 编译bin含winut
- windows环境下hadoop依赖
- 学习大数据Hadoop的笔记,自己整理的
- gRPC+官方文档中文版_1.0
- winutils.exe和hadoop.dllhadoop-common-2.2.0-b
- 自适应布谷鸟搜索的并行K-means聚类算
- 基于hadoopp平台的推荐系统
- Hadoop与Spark安装配置手册
- 大数据培训视频网盘 永久有效
- HadoopHA高可用配置文件
- IT十八掌徐培成HADOOP笔记
- hadoop框架复习思维导图
- 从零开始学习Hadoop
- hadoop2.7.2windows10编译后的bin目录文件
- hadoop伪分布式搭建centos6.5+hadoop2.7
- hadoop-2.7.1.tar.gz-百度网盘链接
- hadoop.dll & winutils.exe For hadoop-2.8.0
评论
共有 条评论