项目场景:

MapReduce程序运行报错:

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

原因分析:

【MapReduce】报错:java.lang.UnsatisfiedLinkError : org.apache.hadoop.io.nativeio_hadoop


【MapReduce】报错:java.lang.UnsatisfiedLinkError : org.apache.hadoop.io.nativeio_java_02


查看了编辑器的hadoop版本后,才发现,C:\Windows\System32目录下的​hadoop.dill​版本号不一致,导致与​jar包​冲突。编辑器是​2.7.2​,本人的hadoop.dill是​2.2.0​


解决方案:

1) 查看MR程序的Hadoop jar包版本
2) 将对应版本2.7.2​hadoop.dll​放置到{​C:\Windows\System32​}下即可。