hadoop实例 RandomWriter
参考文献:http://www.hadooper.cn/dct/page/65778 1.概述 RandomWriter(随机写)例子利用 Map/Reduce把 数据随机的写到dfs中。每个map输入单个文件名,然后随机写BytesWritable的键和值到DFS顺序文件。map没有产生任何输出,所以reduce没有执行。产生的数据是可以配置的。配置变量如下 名字 默认值 描述 test.randomwriter.maps_per_host 10 每个节点运行的map任务数 test.randomwrite.bytes_per_map 1073741824 每个map任务产生的数据量 test.randomwrite.min_key 10 minimum size of the key in bytes test.randomwrite.max_key 1000 maximum size of the key in bytes test.randomwrite.min_value 0 minimum size of the value test.randomwrite.max_val...