1. 程式人生 > >eclipse執行mapereduce程式時報如下錯誤:org.apache.hadoop.io.nativeio.NativeIO$Windows.createDirectoryWithMode0(

eclipse執行mapereduce程式時報如下錯誤:org.apache.hadoop.io.nativeio.NativeIO$Windows.createDirectoryWithMode0(

eclipse執行mapereduce程式時報如下錯誤:
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread “main” java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO W

i n d o w s . c r e a
t e D i r e c t o r y
W i t h M o d e 0 ( L j a v a / l a n g / S t r i n g ; I ) V a t o r g . a p a c h e . h a d o o p . i o . n a t i v e i o . N a t i v e I O Windows.createDirectoryWithMode0(Ljava/lang/String;I)V at org.apache.hadoop.io.nativeio.NativeIO Windows.createDirectoryWithMode0(Native Method)
at org.apache.hadoop.io.nativeio.NativeIO$Windows.createDirectoryWithMode(NativeIO.java:524)
at org.apache.hadoop.fs.RawLocalFileSystem.mkOneDirWithMode(RawLocalFileSystem.java:478)
at org.apache.hadoop.fs.RawLocalFileSystem.mkdirsWithOptionalPermission(RawLocalFileSystem.java:531)
at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:509)
at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:305)
at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:133)
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:144)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290)
at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1698)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:1287)
at com.zhiyou.hadoop.mr.WordCountDriver.main(WordCountDriver.java:65)

百度答案都是hadoop.dll檔案的問題,網上的各種問題都試了,還是不行,最後老師就說替換bin目錄,,
雲盤連線:https://pan.baidu.com/s/17CJOsc2zzEaKwI158tXdmA
提取碼:khew
第一次發文章,能力有限,望各位多多包涵