博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
hadoop基准_Hadoop上的简单排序基准
阅读量:2518 次
发布时间:2019-05-11

本文共 2596 字,大约阅读时间需要 8 分钟。

hadoop基准

After , we usually run some benchmark programs to test whether the system works well. In the post of the install , we show a very simple to grep strings from a simple sets of . In this post, we introduce the Sort for testing and benchmarking Hadoop. The Sort program is also included in the Hadoop distribution package, and the package also includes a input data generator which generate 10 GB * (number of slave nodes) input data to sort. This program processes larger a datasets, which gives some strength to Hadoop including the execution engine and HDFS.

,我们通常会运行一些基准程序来测试系统是否运行良好。 在安装 ,我们显示了来自一组简单的非常简单的grep字符串。 在本文中,我们介绍了用于对Hadoop进行测试和基准测试的Sort。 Hadoop分发软件包中还包含Sort程序,该软件包还包括一个输入数据生成器,该生成器生成10 GB *(从属节点数)输入数据进行排序。 该程序处理更大的数据集,这为Hadoop提供了一些优势,包括执行引擎和HDFS。

The Sort example program simply uses the MapReduce framework to sort the input directory into the output directory. The mapper is the predefined IdentityMapper and the reducer is the predefined IdentityReducer, both of which just pass their inputs directly to the output. The inputs and outputs must be Sequence files where the keys and values are BytesWritable.

Sort示例程序仅使用MapReduce框架将输入目录排序到输出目录中。 映射器是预定义的IdentityMapper,而reducer是预定义的IdentityReducer,两者都只是将其输入直接传递到输出。 输入和输出必须是Sequence文件,其中的键和值是BytesWritable。

The RandomWriter example program writes 10 GB (by default) of random data per host to HDFS using MapReduce. Each map takes a single file name as input and writes random BytesWritable keys and values to the DFS sequence file. The maps do not emit any output and the reduce phase is not used.

RandomWriter示例程序使用MapReduce将每个主机的10 GB(默认)随机数据写入HDFS。 每个映射都使用一个文件名作为输入,并将随机的BytesWritable键和值写入DFS序列文件。 映射不发出任何输出,并且不使用reduce阶段。

For a quick test of the Sort benchmark, just execute these two commands after ] (here we are in the Hadoop directory. If run the commands outside the Hadoop directory, simply use the full/relative path for the jar file):

为了快速测试Sort基准,只需在之后执行这两个命令(此处位于Hadoop目录中。如果在Hadoop目录之外运行命令,只需使用jar的完整/相对路径文件):

  1. hadoop jar hadoop-*-examples.jar randomwriter rand

    hadoop jar hadoop-*-examples.jar randomwriter rand
  2. hadoop jar hadoop-*-examples.jar sort rand rand-sort

    hadoop jar hadoop-*-examples.jar排序rand rand-sort

The first command generates the random data into rand and the second commands sorts the generated data in rand and the result is put into rand-sort.

第一个命令将随机数据生成为rand,第二个命令将生成的数据按rand排序,并将结果放入rand-sort。

For more details and more options of the Sort and RandomWriter example programs, please refer to the Hadoop Wiki: and .

有关Sort和RandomWriter示例程序的更多详细信息和更多选项,请参考Hadoop Wiki: 和 。

翻译自:

hadoop基准

转载地址:http://ryowd.baihongyu.com/

你可能感兴趣的文章
【Django实战开发】案例一:创建自己的blog站点-1.安装及搭建开发环境
查看>>
Pie(二分)
查看>>
Mysql 索引优化
查看>>
09湖州二模(自选模块不等式)
查看>>
Mybatis Batch 批量操作
查看>>
Ubuntu server搭建Java web服务器
查看>>
WSGI学习系列WSME
查看>>
java读取xml配置文件和properties配置文件
查看>>
HDU 4300 Contest 1
查看>>
POJ 3311
查看>>
Button MouseEvent颜色变化
查看>>
Volist标签
查看>>
浅谈模块化
查看>>
14个免费访客行为分析工具
查看>>
beego orm关联查询之多对多(m2m)
查看>>
(转)arguments.callee移除AS3匿名函数的侦听
查看>>
onNewIntent调用时机
查看>>
MYSQL GTID使用运维介绍(转)
查看>>
Fail to start neutron-server
查看>>
景安快运挂在磁盘-支持宝塔
查看>>