./bin/hadoop jar share/hadoop/mapreduce/sources/hadoop-mapreduce-examples-2.8.0-sources.jar org.apache.hadoop.examples.WordCount /user/guoyakui/hadoopfile/data /user/guoyakui/hadoopfile/data-output
即: ./bin/hadoop jar example的jar包地址 具体的功能 输入源 输出地
输出:(输出内容较多,只截取了一部分)
17/05/2315:50:16 INFO mapred.LocalJobRunner: reduce > reduce
17/05/2315:50:16 INFO mapred.Task: Task 'attempt_local1414386995_0001_r_000000_0' done.
17/05/2315:50:16 INFO mapred.LocalJobRunner: Finishing task: attempt_local1414386995_0001_r_000000_0
17/05/2315:50:16 INFO mapred.LocalJobRunner: reduce task executor complete.
17/05/2315:50:17 INFO mapreduce.Job: map 100% reduce 100%
17/05/2315:50:17 INFO mapreduce.Job: Job job_local1414386995_0001 completed successfully
17/05/2315:50:17 INFO mapreduce.Job: Counters: 35File System Counters
FILE: Number of bytes read=4121088
FILE: Number of bytes written=8782066
FILE: Number of read operations=0
FILE: Number of large read operations=0
FILE: Number of write operations=0
HDFS: Number of bytes read=11959179
HDFS: Number of bytes written=879197
HDFS: Number of read operations=33
HDFS: Number of large read operations=0
HDFS: Number of write operations=6Map-Reduce Framework
Map input records=78096Map output records=629882Map output bytes=6091113Map output materialized bytes=1454541Input split bytes=403
Combine input records=629882
Combine output records=100609Reduce input groups=81942Reduce shuffle bytes=1454541Reduce input records=100609Reduce output records=81942
Spilled Records=201218
Shuffled Maps =3
Failed Shuffles=0
Merged Map outputs=3
GC time elapsed (ms)=14Total committed heap usage (bytes)=1789919232
Shuffle Errors
BAD_ID=0
CONNECTION=0
IO_ERROR=0
WRONG_LENGTH=0
WRONG_MAP=0
WRONG_REDUCE=0FileInputFormat Counters
Bytes Read=3684290File Output Format Counters
Bytes Written=879197