hadoop运行PI报错
许老许 2017-06-30 08:46:56 运行 hadoop jar ~/hadoop-2.5.2/hadoop/mapreduce/hadoop-mapreduce-examples-2.5.1.jar pi 10 10报异常
异常如下
17/06/30 05:30:45 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Wrote input for Map #0
Wrote input for Map #1
Wrote input for Map #2
Wrote input for Map #3
Wrote input for Map #4
Wrote input for Map #5
Wrote input for Map #6
Wrote input for Map #7
Wrote input for Map #8
Wrote input for Map #9
Starting Job
17/06/30 05:30:55 INFO client.RMProxy: Connecting to ResourceManager at master/192.168.10.100:18040
17/06/30 05:30:58 INFO input.FileInputFormat: Total input paths to process : 10
17/06/30 05:30:59 INFO mapreduce.JobSubmitter: number of splits:10
17/06/30 05:31:01 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1498821078171_0002
17/06/30 05:31:05 INFO impl.YarnClientImpl: Submitted application application_1498821078171_0002
17/06/30 05:31:05 INFO mapreduce.Job: The url to track the job: http://master:18088/proxy/application_1498821078171_0002/
17/06/30 05:31:05 INFO mapreduce.Job: Running job: job_1498821078171_0002
17/06/30 05:31:06 INFO mapreduce.Job: Job job_1498821078171_0002 running in uber mode : false
17/06/30 05:31:06 INFO mapreduce.Job: map 0% reduce 0%
17/06/30 05:31:06 INFO mapreduce.Job: Job job_1498821078171_0002 failed with state FAILED due to: Application application_1498821078171_0002 failed 2 times due to Error launching appattempt_1498821078171_0002_000002. Got exception: org.apache.hadoop.yarn.exceptions.YarnException: Unauthorized request to start container.
This token is expired. current time is 1498852238058 found 1498826466312
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
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:122)
at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.run(AMLauncher.java:249)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
. Failing the application.
17/06/30 05:31:06 INFO mapreduce.Job: Counters: 0
Job Finished in 12.162 seconds
java.io.FileNotFoundException: File does not exist: hdfs://master:9000/user/zkpk/QuasiMonteCarlo_1498825843150_1916352402/out/reduce-out
at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1072)
at org.apache.hadoop.hdfs.DistributedFileSystem$17.doCall(DistributedFileSystem.java:1064)
at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1064)
at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1749)
at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1773)
at org.apache.hadoop.examples.QuasiMonteCarlo.estimatePi(QuasiMonteCarlo.java:314)
at org.apache.hadoop.examples.QuasiMonteCarlo.run(QuasiMonteCarlo.java:354)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.examples.QuasiMonteCarlo.main(QuasiMonteCarlo.java:363)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:72)
at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:145)
at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
求大神教我,刚学的对着文档敲下来最后一步启动验证,运行PI报错了