错误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源码文件,找到orgapachehadoopio ativeioNativeIO.java源码的570行;
2.修改源代码NativeIO.java
// return access0(path, desiredAccess.accessRight());
return true;
并将此文件放到相应的工程的源码目录下,package也要一样;
3.重新执行;