One-Way
爱一人,攀一山,追一梦

错误1:在windows执行mr

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z
at org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Native Method)
at org.apache.hadoop.io.nativeio.NativeIO$Windows.access(NativeIO.java:570)

解决办法:

1.下载hadoop源码文件,找到org\apache\hadoop\io\nativeio\NativeIO.java源码的570行;

2.修改源代码NativeIO.java

// return access0(path, desiredAccess.accessRight());
return true;

并将此文件放到相应的工程的源码目录下,package也要一样;

3.重新执行;

 

posted on 2016-07-07 16:28  单行道|  阅读(498)  评论(0编辑  收藏  举报