錯誤1:在windows執行mr Exception in thread "main" java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I ...
錯誤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.重新執行;