结果如下:
19/03/05 22:19:20 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
19/03/05 22:19:21 INFO client.RMProxy: Connecting to ResourceManager at hadoop001/127.0.0.1:8032
19/03/05 22:19:22 INFO input.FileInputFormat: Total input paths to process : 1
19/03/05 22:19:22 INFO mapreduce.JobSubmitter: number of splits:1
19/03/05 22:19:22 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1551795550448_0001
19/03/05 22:19:23 INFO impl.YarnClientImpl: Submitted application application_1551795550448_0001
19/03/05 22:19:23 INFO mapreduce.Job: The url to track the job: http://localhost:8088/proxy/application_1551795550448_0001/
19/03/05 22:19:23 INFO mapreduce.Job: Running job: job_1551795550448_0001
注意倒数第二行,The url to track the job:
应该是没有工作这个链接
后来看到这篇文章,真是神来之笔,我看到了那么多屁用没有
https://blog.csdn.net/chenjiale0102/article/details/78820302
修改一下mapred-site.xml
终于运行成功开心
Map-Reduce Framework
Map input records=4
Map output records=6
Map output bytes=67
Map output materialized bytes=71
Input split bytes=114
Combine input records=6
Combine output records=5
Reduce input groups=5
Reduce shuffle bytes=71
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)=0
Total committed heap usage (bytes)=548405248
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=43
File Output Format Counters
Bytes Written=45