我运行hadoop中的计算圆周率的demo报了如下的错误,请问是什么情况呢?
查找了很多资料都没能找到解决方法,求帮忙
1 catcher@catcher-vm:/usr/local/hadoop-2.7.1$ hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.1.jar pi 4 1000 2 Number of Maps = 4 3 Samples per Map = 1000 4 Java HotSpot(TM) Client VM warning: You have loaded library /usr/local/hadoop-2.7.1/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now. 5 It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 6 15/08/06 10:12:14 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 7 java.io.IOException: Cannot create input directory QuasiMonteCarlo_1438827132945_741189337/in 8 at org.apache.hadoop.examples.QuasiMonteCarlo.estimatePi(QuasiMonteCarlo.java:283) 9 at org.apache.hadoop.examples.QuasiMonteCarlo.run(QuasiMonteCarlo.java:354) 10 at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) 11 at org.apache.hadoop.examples.QuasiMonteCarlo.main(QuasiMonteCarlo.java:363) 12 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 13 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 14 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 15 at java.lang.reflect.Method.invoke(Method.java:606) 16 at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:71) 17 at org.apache.hadoop.util.ProgramDriver.run(ProgramDriver.java:144) 18 at org.apache.hadoop.examples.ExampleDriver.main(ExampleDriver.java:74) 19 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 20 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 21 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 22 at java.lang.reflect.Method.invoke(Method.java:606) 23 at org.apache.hadoop.util.RunJar.run(RunJar.java:221) 24 at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
不能创建你输入的目录,你去看看你代码那里对文件进行了操作,去看看那个操作出问题了,不是你算法有问题