error using miniDFSCluster on windows

旧巷老猫 提交于 2020-01-02 06:47:51

问题


I'm trying to write unit tests using miniDFSCluster and it's throwing the error below

java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z

any pointers to resolve this issue?


回答1:


With errors like this, I use three steps

  1. Find out what it is looking for

         In this case, *org.apache.hadoop.io.nativeio.NativeIO$Windows.access0*
    
  2. Find out what jar/lib it is in.

         I don't use the Windows version, but I believe it is in hadoop.dll - 
         you'll have to check this.
    
  3. Find out where I'm telling it to use that jar/lib

Update: See also this Answer.



来源:https://stackoverflow.com/questions/27685836/error-using-minidfscluster-on-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!