TestDFSIO测试集群性能

本文记录了使用Hadoop进行不同大小文件的读写性能测试过程及结果,包括100MB和1GB的数据处理情况,并详细展示了测试过程中涉及的各项性能指标。

hadoop jar   hadoop-mapreduce-client-jobclient-2.2.0-tests.jar   TestDFSIO -write -size 108KB


hadoop jar   hadoop-mapreduce-client-jobclient-2.2.0-tests.jar   TestDFSIO -read -size 100B


16/03/05 21:19:45 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

16/03/05 21:19:46 INFO fs.TestDFSIO: creating control file: 104857600 bytes, 1 files
16/03/05 21:19:46 INFO fs.TestDFSIO: created control files for: 1 files
16/03/05 21:19:46 INFO client.RMProxy: Connecting to ResourceManager at /192.168.0.123:8032
16/03/05 21:19:46 INFO client.RMProxy: Connecting to ResourceManager at /192.168.0.123:8032
16/03/05 21:19:47 INFO mapred.FileInputFormat: Total input paths to process : 1
16/03/05 21:19:47 INFO mapreduce.JobSubmitter: number of splits:1
16/03/05 21:19:47 INFO Configuration.deprecation: user.name is deprecated. Instead, use mapreduce.job.user.name
16/03/05 21:19:47 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar
16/03/05 21:19:47 INFO Configuration.deprecation: mapred.reduce.tasks is deprecated. Instead, use mapreduce.job.reduces
16/03/05 21:19:47 INFO Configuration.deprecation: mapred.output.value.class is deprecated. Instead, use mapreduce.job.output.value.class
16/03/05 21:19:47 INFO Configuration.deprecation: mapred.job.name is deprecated. Instead, use mapreduce.job.name
16/03/05 21:19:47 INFO Configuration.deprecation: mapred.input.dir is deprecated. Instead, use mapreduce.input.fileinputformat.inputdir
16/03/05 21:19:47 INFO Configuration.deprecation: mapred.output.dir is deprecated. Instead, use mapreduce.output.fileoutputformat.outputdir
16/03/05 21:19:47 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps
16/03/05 21:19:47 INFO Configuration.deprecation: mapred.output.key.class is deprecated. Instead, use mapreduce.job.output.key.class
16/03/05 21:19:47 INFO Configuration.deprecation: mapred.working.dir is deprecated. Instead, use mapreduce.job.working.dir
16/03/05 21:19:47 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1457182542695_0004
16/03/05 21:19:47 INFO impl.YarnClientImpl: Submitted application application_1457182542695_0004 to ResourceManager at /192.168.0.123:8032
16/03/05 21:19:47 INFO mapreduce.Job: The url to track the job: http://192.168.0.123:8088/proxy/application_1457182542695_0004/
16/03/05 21:19:47 INFO mapreduce.Job: Running job: job_1457182542695_0004
16/03/05 21:19:59 INFO mapreduce.Job: Job job_1457182542695_0004 running in uber mode : false
16/03/05 21:19:59 INFO mapreduce.Job:  map 0% reduce 0%
16/03/05 21:20:05 INFO mapreduce.Job:  map 100% reduce 0%
16/03/05 21:20:12 INFO mapreduce.Job:  map 100% reduce 100%
16/03/05 21:20:18 INFO mapreduce.Job: Job job_1457182542695_0004 completed successfully
16/03/05 21:20:18 INFO mapreduce.Job: Counters: 43
        File System Counters
                FILE: Number of bytes read=90
                FILE: Number of bytes written=160769
                FILE: Number of read operations=0
                FILE: Number of large read operations=0
                FILE: Number of write operations=0
                HDFS: Number of bytes read=239
                HDFS: Number of bytes written=104857674
                HDFS: Number of read operations=7
                HDFS: Number of large read operations=0
                HDFS: Number of write operations=3
        Job Counters 
                Launched map tasks=1
                Launched reduce tasks=1
                Data-local map tasks=1
                Total time spent by all maps in occupied slots (ms)=4794
                Total time spent by all reduces in occupied slots (ms)=2916
        Map-Reduce Framework
                Map input records=1
                Map output records=5
                Map output bytes=74
                Map output materialized bytes=90
                Input split bytes=127
                Combine input records=0
                Combine output records=0
                Reduce input groups=5
                Reduce shuffle bytes=90
                Reduce input records=5
                Reduce output records=5
                Spilled Records=10
                Shuffled Maps =1
                Failed Shuffles=0
                Merged Map outputs=1
                GC time elapsed (ms)=53
                CPU time spent (ms)=3380
                Physical memory (bytes) snapshot=595660800
                Virtual memory (bytes) snapshot=2552078336
                Total committed heap usage (bytes)=1008730112
        Shuffle Errors
                BAD_ID=0
                CONNECTION=0
                IO_ERROR=0
                WRONG_LENGTH=0
                WRONG_MAP=0
                WRONG_REDUCE=0
        File Input Format Counters 
                Bytes Read=112
        File Output Format Counters 
                Bytes Written=74
16/03/05 21:20:18 INFO fs.TestDFSIO: ----- TestDFSIO ----- : write
16/03/05 21:20:18 INFO fs.TestDFSIO:            Date & time: Sat Mar 05 21:20:18 CST 2016
16/03/05 21:20:18 INFO fs.TestDFSIO:        Number of files: 1
16/03/05 21:20:18 INFO fs.TestDFSIO: Total MBytes processed: 100.0
16/03/05 21:20:18 INFO fs.TestDFSIO:      Throughput mb/sec: 55.370985603543744
16/03/05 21:20:18 INFO fs.TestDFSIO: Average IO rate mb/sec: 55.37098693847656
16/03/05 21:20:18 INFO fs.TestDFSIO:  IO rate std deviation: 0.009722219803739806

16/03/05 21:20:18 INFO fs.TestDFSIO:     Test exec time sec: 31.687


以上是写100MB


以下是读100MB


uard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
16/03/05 21:24:42 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
16/03/05 21:24:42 INFO fs.TestDFSIO: creating control file: 104857600 bytes, 1 files
16/03/05 21:24:42 INFO fs.TestDFSIO: created control files for: 1 files
16/03/05 21:24:42 INFO client.RMProxy: Connecting to ResourceManager at /192.168.0.123:8032
16/03/05 21:24:43 INFO client.RMProxy: Connecting to ResourceManager at /192.168.0.123:8032
16/03/05 21:24:43 INFO mapred.FileInputFormat: Total input paths to process : 1
16/03/05 21:24:43 INFO mapreduce.JobSubmitter: number of splits:1
16/03/05 21:24:43 INFO Configuration.deprecation: user.name is deprecated. Instead, use mapreduce.job.user.name
16/03/05 21:24:43 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar
16/03/05 21:24:43 INFO Configuration.deprecation: mapred.reduce.tasks is deprecated. Instead, use mapreduce.job.reduces
16/03/05 21:24:43 INFO Configuration.deprecation: mapred.output.value.class is deprecated. Instead, use mapreduce.job.output.value.class
16/03/05 21:24:43 INFO Configuration.deprecation: mapred.job.name is deprecated. Instead, use mapreduce.job.name
16/03/05 21:24:43 INFO Configuration.deprecation: mapred.input.dir is deprecated. Instead, use mapreduce.input.fileinputformat.inputdir
16/03/05 21:24:43 INFO Configuration.deprecation: mapred.output.dir is deprecated. Instead, use mapreduce.output.fileoutputformat.outputdir
16/03/05 21:24:43 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps
16/03/05 21:24:43 INFO Configuration.deprecation: mapred.output.key.class is deprecated. Instead, use mapreduce.job.output.key.class
16/03/05 21:24:43 INFO Configuration.deprecation: mapred.working.dir is deprecated. Instead, use mapreduce.job.working.dir
16/03/05 21:24:43 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1457182542695_0006
16/03/05 21:24:44 INFO impl.YarnClientImpl: Submitted application application_1457182542695_0006 to ResourceManager at /192.168.0.123:8032
16/03/05 21:24:44 INFO mapreduce.Job: The url to track the job: http://192.168.0.123:8088/proxy/application_1457182542695_0006/
16/03/05 21:24:44 INFO mapreduce.Job: Running job: job_1457182542695_0006
16/03/05 21:24:51 INFO mapreduce.Job: Job job_1457182542695_0006 running in uber mode : false
16/03/05 21:24:51 INFO mapreduce.Job:  map 0% reduce 0%
16/03/05 21:24:57 INFO mapreduce.Job:  map 100% reduce 0%
16/03/05 21:25:03 INFO mapreduce.Job:  map 100% reduce 100%
16/03/05 21:25:04 INFO mapreduce.Job: Job job_1457182542695_0006 completed successfully
16/03/05 21:25:04 INFO mapreduce.Job: Counters: 43
        File System Counters
                FILE: Number of bytes read=90
                FILE: Number of bytes written=160765
                FILE: Number of read operations=0
                FILE: Number of large read operations=0
                FILE: Number of write operations=0
                HDFS: Number of bytes read=104857839
                HDFS: Number of bytes written=74
                HDFS: Number of read operations=8
                HDFS: Number of large read operations=0
                HDFS: Number of write operations=2
        Job Counters 
                Launched map tasks=1
                Launched reduce tasks=1
                Rack-local map tasks=1
                Total time spent by all maps in occupied slots (ms)=4716
                Total time spent by all reduces in occupied slots (ms)=2953
        Map-Reduce Framework
                Map input records=1
                Map output records=5
                Map output bytes=74
                Map output materialized bytes=90
                Input split bytes=127
                Combine input records=0
                Combine output records=0
                Reduce input groups=5
                Reduce shuffle bytes=90
                Reduce input records=5
                Reduce output records=5
                Spilled Records=10
                Shuffled Maps =1
                Failed Shuffles=0
                Merged Map outputs=1
                GC time elapsed (ms)=28
                CPU time spent (ms)=2210
                Physical memory (bytes) snapshot=578883584
                Virtual memory (bytes) snapshot=2543214592
                Total committed heap usage (bytes)=1008730112
        Shuffle Errors
                BAD_ID=0
                CONNECTION=0
                IO_ERROR=0
                WRONG_LENGTH=0
                WRONG_MAP=0
                WRONG_REDUCE=0
        File Input Format Counters 
                Bytes Read=112
        File Output Format Counters 
                Bytes Written=74
16/03/05 21:25:04 INFO fs.TestDFSIO: ----- TestDFSIO ----- : read
16/03/05 21:25:04 INFO fs.TestDFSIO:            Date & time: Sat Mar 05 21:25:04 CST 2016
16/03/05 21:25:04 INFO fs.TestDFSIO:        Number of files: 1
16/03/05 21:25:04 INFO fs.TestDFSIO: Total MBytes processed: 100.0
16/03/05 21:25:04 INFO fs.TestDFSIO:      Throughput mb/sec: 99.30486593843098
16/03/05 21:25:04 INFO fs.TestDFSIO: Average IO rate mb/sec: 99.30486297607422
16/03/05 21:25:04 INFO fs.TestDFSIO:  IO rate std deviation: 0.01562019922593262
16/03/05 21:25:04 INFO fs.TestDFSIO:     Test exec time sec: 21.8
16/03/05 21:25:04 INFO fs.TestDFSIO: 




读1GB数据:



16/03/05 21:25:55 INFO mapreduce.Job: Job job_1457182542695_0007 running in uber mode : false
16/03/05 21:25:55 INFO mapreduce.Job:  map 0% reduce 0%
16/03/05 21:26:02 INFO mapreduce.Job:  map 100% reduce 0%
16/03/05 21:26:09 INFO mapreduce.Job:  map 100% reduce 100%
16/03/05 21:26:14 INFO mapreduce.Job: Job job_1457182542695_0007 completed successfully
16/03/05 21:26:14 INFO mapreduce.Job: Counters: 43
        File System Counters
                FILE: Number of bytes read=91
                FILE: Number of bytes written=160767
                FILE: Number of read operations=0
                FILE: Number of large read operations=0
                FILE: Number of write operations=0
                HDFS: Number of bytes read=104857839
                HDFS: Number of bytes written=75
                HDFS: Number of read operations=8
                HDFS: Number of large read operations=0
                HDFS: Number of write operations=2
        Job Counters 
                Launched map tasks=1
                Launched reduce tasks=1
                Rack-local map tasks=1
                Total time spent by all maps in occupied slots (ms)=3849
                Total time spent by all reduces in occupied slots (ms)=3647
        Map-Reduce Framework
                Map input records=1
                Map output records=5
                Map output bytes=75
                Map output materialized bytes=91
                Input split bytes=127
                Combine input records=0
                Combine output records=0
                Reduce input groups=5
                Reduce shuffle bytes=91
                Reduce input records=5
                Reduce output records=5
                Spilled Records=10
                Shuffled Maps =1
                Failed Shuffles=0
                Merged Map outputs=1
                GC time elapsed (ms)=26
                CPU time spent (ms)=2190
                Physical memory (bytes) snapshot=572350464
                Virtual memory (bytes) snapshot=2537316352
                Total committed heap usage (bytes)=1008730112
        Shuffle Errors
                BAD_ID=0
                CONNECTION=0
                IO_ERROR=0
                WRONG_LENGTH=0
                WRONG_MAP=0
                WRONG_REDUCE=0
        File Input Format Counters 
                Bytes Read=112
        File Output Format Counters 
                Bytes Written=75
16/03/05 21:26:14 INFO fs.TestDFSIO: ----- TestDFSIO ----- : read
16/03/05 21:26:14 INFO fs.TestDFSIO:            Date & time: Sat Mar 05 21:26:14 CST 2016
16/03/05 21:26:14 INFO fs.TestDFSIO:        Number of files: 1
16/03/05 21:26:14 INFO fs.TestDFSIO: Total MBytes processed: 100.0
16/03/05 21:26:14 INFO fs.TestDFSIO:      Throughput mb/sec: 101.01010101010101
16/03/05 21:26:14 INFO fs.TestDFSIO: Average IO rate mb/sec: 101.01010131835938
16/03/05 21:26:14 INFO fs.TestDFSIO:  IO rate std deviation: 0.02114898989674338
16/03/05 21:26:14 INFO fs.TestDFSIO:     Test exec time sec: 27.846



写1GB数据:


It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
16/03/05 21:27:38 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
16/03/05 21:27:38 INFO fs.TestDFSIO: creating control file: 1048576000 bytes, 1 files
16/03/05 21:27:39 INFO fs.TestDFSIO: created control files for: 1 files
16/03/05 21:27:39 INFO client.RMProxy: Connecting to ResourceManager at /192.168.0.123:8032
16/03/05 21:27:39 INFO client.RMProxy: Connecting to ResourceManager at /192.168.0.123:8032
16/03/05 21:27:39 INFO mapred.FileInputFormat: Total input paths to process : 1
16/03/05 21:27:40 INFO mapreduce.JobSubmitter: number of splits:1
16/03/05 21:27:40 INFO Configuration.deprecation: user.name is deprecated. Instead, use mapreduce.job.user.name
16/03/05 21:27:40 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar
16/03/05 21:27:40 INFO Configuration.deprecation: mapred.reduce.tasks is deprecated. Instead, use mapreduce.job.reduces
16/03/05 21:27:40 INFO Configuration.deprecation: mapred.output.value.class is deprecated. Instead, use mapreduce.job.output.value.class
16/03/05 21:27:40 INFO Configuration.deprecation: mapred.job.name is deprecated. Instead, use mapreduce.job.name
16/03/05 21:27:40 INFO Configuration.deprecation: mapred.input.dir is deprecated. Instead, use mapreduce.input.fileinputformat.inputdir
16/03/05 21:27:40 INFO Configuration.deprecation: mapred.output.dir is deprecated. Instead, use mapreduce.output.fileoutputformat.outputdir
16/03/05 21:27:40 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps
16/03/05 21:27:40 INFO Configuration.deprecation: mapred.output.key.class is deprecated. Instead, use mapreduce.job.output.key.class
16/03/05 21:27:40 INFO Configuration.deprecation: mapred.working.dir is deprecated. Instead, use mapreduce.job.working.dir
16/03/05 21:27:40 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1457182542695_0008
16/03/05 21:27:40 INFO impl.YarnClientImpl: Submitted application application_1457182542695_0008 to ResourceManager at /192.168.0.123:8032
16/03/05 21:27:40 INFO mapreduce.Job: The url to track the job: http://192.168.0.123:8088/proxy/application_1457182542695_0008/
16/03/05 21:27:40 INFO mapreduce.Job: Running job: job_1457182542695_0008
16/03/05 21:27:46 INFO mapreduce.Job: Job job_1457182542695_0008 running in uber mode : false
16/03/05 21:27:46 INFO mapreduce.Job:  map 0% reduce 0%
16/03/05 21:27:57 INFO mapreduce.Job:  map 67% reduce 0%
16/03/05 21:28:07 INFO mapreduce.Job:  map 100% reduce 0%
16/03/05 21:28:15 INFO mapreduce.Job:  map 100% reduce 100%
16/03/05 21:28:20 INFO mapreduce.Job: Job job_1457182542695_0008 completed successfully
16/03/05 21:28:20 INFO mapreduce.Job: Counters: 43
        File System Counters
                FILE: Number of bytes read=93
                FILE: Number of bytes written=160775
                FILE: Number of read operations=0
                FILE: Number of large read operations=0
                FILE: Number of write operations=0
                HDFS: Number of bytes read=239
                HDFS: Number of bytes written=1048576077
                HDFS: Number of read operations=7
                HDFS: Number of large read operations=0
                HDFS: Number of write operations=3
        Job Counters 
                Launched map tasks=1
                Launched reduce tasks=1
                Rack-local map tasks=1
                Total time spent by all maps in occupied slots (ms)=18431
                Total time spent by all reduces in occupied slots (ms)=3719
        Map-Reduce Framework
                Map input records=1
                Map output records=5
                Map output bytes=77
                Map output materialized bytes=93
                Input split bytes=127
                Combine input records=0
                Combine output records=0
                Reduce input groups=5
                Reduce shuffle bytes=93
                Reduce input records=5
                Reduce output records=5
                Spilled Records=10
                Shuffled Maps =1
                Failed Shuffles=0
                Merged Map outputs=1
                GC time elapsed (ms)=133
                CPU time spent (ms)=15410
                Physical memory (bytes) snapshot=570277888
                Virtual memory (bytes) snapshot=2536431616
                Total committed heap usage (bytes)=979369984
        Shuffle Errors
                BAD_ID=0
                CONNECTION=0
                IO_ERROR=0
                WRONG_LENGTH=0
                WRONG_MAP=0
                WRONG_REDUCE=0
        File Input Format Counters 
                Bytes Read=112
        File Output Format Counters 
                Bytes Written=77
16/03/05 21:28:20 INFO fs.TestDFSIO: ----- TestDFSIO ----- : write
16/03/05 21:28:20 INFO fs.TestDFSIO:            Date & time: Sat Mar 05 21:28:20 CST 2016
16/03/05 21:28:20 INFO fs.TestDFSIO:        Number of files: 1
16/03/05 21:28:20 INFO fs.TestDFSIO: Total MBytes processed: 1000.0
16/03/05 21:28:20 INFO fs.TestDFSIO:      Throughput mb/sec: 63.94270733422853
16/03/05 21:28:20 INFO fs.TestDFSIO: Average IO rate mb/sec: 63.94270706176758
16/03/05 21:28:20 INFO fs.TestDFSIO:  IO rate std deviation: 0.010423658009744381
16/03/05 21:28:20 INFO fs.TestDFSIO:     Test exec time sec: 40.966


评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值