hadoop map-reduce倒排索引过程
2016-07-29 23:14
281 查看
---------------------------------mapper //context.wirte("hello->a.txt", "1") //context.wirte("hello->a.txt", "1") //context.wirte("hello->a.txt", "1") <"hello->a.txt", {1,1,1}> ---------------------------------reducer /context.write("hello", "a.txt->3") //context.write("hello", "b.txt->2") //context.write("hello", "c.txt->2") -----------------------------------------------mapper //context.write("hello", "a.txt->3") //context.write("hello", "b.txt->2") //context.write("hello", "c.txt->2") <"hello", {"a.txt->3", "b.txt->2", "c.txt->2"}> -------------------------------- reducer context.write("hello", "a.txt->3 b.txt->2 c.txt->2") hello a.txt->3 b.txt->2 c.txt->2 jerry a.txt->1 b.txt->3 c.txt->1 tom a.txt->2 b.txt->1 c.txt->1 hello hdfs://itcast:9000/ii/b.txt->2 hdfs://itcast:9000/ii/a.txt->3 jerry hdfs://itcast:9000/ii/a.txt->1 hdfs://itcast:9000/ii/b.txt->3 tom hdfs://itcast:9000/ii/b.txt->1 hdfs://itcast:9000/ii/a.txt->2
相关文章推荐
- 详解HDFS Short Circuit Local Reads
- Hadoop_2.1.0 MapReduce序列图
- 使用Hadoop搭建现代电信企业架构
- 单机版搭建Hadoop环境图文教程详解
- PostgreSQL教程(八):索引详解
- Oracle外键不加索引引起死锁示例
- oracle 索引的相关介绍(创建、简介、技巧、怎样查看) .
- 用SQL建立索引的方法步骤
- SQL2005重新生成索引的的存储过程 sp_rebuild
- SQL效率提升之一些SQL编写建议并有效利用索引
- SQLSERVER的非聚集索引结构深度理解
- SQL Server误区30日谈 第8天 有关对索引进行在线操作的误区
- SQL Server 索引介绍
- SqlServer 索引自动优化工具
- mysql 中存在null和空时创建唯一索引的方法
- 详解sqlserver查询表索引
- 优化 SQL Server 索引的小技巧
- sqlserver 索引的一些总结
- MySQL下使用Inplace和Online方式创建索引的教程
- mysql中索引使用不当速度比没加索引还慢的测试