[root@master hadoop-2.6.5]# hadoop jar /opt/hadoop-mapreduce-examples-2.6.5.jar wordcount /user/root/ds1.txt /user/root/ds_out
17/07/28 02:50:53 INFO client.RMProxy: Connecting to ResourceManager at master/192.168.88.68:8032
17/07/28 02:50:54 INFO input.FileInputFormat: Total input paths to process : 1
17/07/28 02:50:54 INFO mapreduce.JobSubmitter: number of splits:1
17/07/28 02:50:54 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1501233893701_0001
17/07/28 02:50:55 INFO impl.YarnClientImpl: Submitted application application_1501233893701_0001
17/07/28 02:50:55 INFO mapreduce.Job: The url to track the job: http://master:8088/proxy/application_1501233893701_0001/
17/07/28 02:50:55 INFO mapreduce.Job: Running job: job_1501233893701_0001
17/07/28 02:50:57 INFO mapreduce.Job: Job job_1501233893701_0001 running in uber mode : false
17/07/28 02:50:57 INFO mapreduce.Job: map 0% reduce 0%
17/07/28 02:50:57 INFO mapreduce.Job: Job job_1501233893701_0001 failed with state FAILED due to: Application application_1501233893701_0001 failed 2 times due to Error launching appattempt_1501233893701_0001_000002.
Got exception: org.apache.hadoop.yarn.exceptions.YarnException: Unauthorized request to start container.
This token is expired. current time is 1501697320756 found 1501236056864
Note: System times on machines may be out of sync. Check system time and time zones.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.hadoop.yarn.api.records.impl.pb.SerializedExceptionPBImpl.instantiateException(SerializedExceptionPBImpl.java:168)
at org.apache.hadoop.yarn.api.records.impl.pb.SerializedExceptionPBImpl.deSerialize(SerializedExceptionPBImpl.java:106)
at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.launch(AMLauncher.java:123)
at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.run(AMLauncher.java:251)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
. Failing the application.
17/07/28 02:50:57 INFO mapreduce.Job: Counters: 0
多个datanode与namenode进行时间同步,在每台服务器执行如下两个命令进行同步
1)输入 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
2)输入 ntpdate pool.ntp.org