Hadoopのmrbench

1183 ワード

必要:
機械mrの実行性能をテストする必要がある場合は、mrbenchでテストできます.
構文:
 
bin/hadoop jar share/hadoop/mapreduceX/hadoop-test-XXX.jar mrbench
[-baseDir <base DFS path for output/input, default is /benchmarks/MRBench>]
[-jar <local path to job jar file containing Mapper and Reducer implementations, default is current jar file>] 
[-numRuns <number of times to run the job, default is 1>]
[-maps <number of maps for each run, default is 2>] 
[-reduces <number of reduces for each run, default is 1>] 
[-inputLines <number of input lines to generate, default is 1>] 
[-inputType <type of input to generate, one of ascending (default), descending, random>]
[-verbose]

必要:
 
各ファイル100000行、1000 mapper、200 reducerを生成し、200回実行します.
 
bin/hadoop jar share/hadoop/mapreduceX/hadoop-test-XXX.jar mrbench -numRuns 200 -inputLines 100000 -maps 1000 -reduces 200

要約情報:
 
DataLines       Maps    Reduces AvgTime (milliseconds)
100000          1000      200      28522