HDFS基准测试
a 测试写入速度
向HDFS文件系统中写入数据,10个文件,每个文件10MB,文件存到、/benchmarks/TestDFSIO中
hadoop jar /opt/software/hadoop-2.7.5/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.5.jar TestDFSIO -write -nrFiles 10 -fileSize 10MB
结果显示在当前目录中
b 测试读取速度
hadoop jar /opt/software/hadoop-2.7.5/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.5.jar TestDFSIO -read -nrFiles 10 -fileSize 10MB
c 清除测试数据
hadoop jar /opt/software/hadoop-2.7.5/share/hadoop/mapreduce/hadoop-mapreduce-client-jobclient-2.7.5.jar TestDFSIO -clean
网友评论