在Windows上使用miniDFSCluster时出错 [英] error using miniDFSCluster on windows
本文介绍了在Windows上使用miniDFSCluster时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用miniDFSCluster编写单元测试,并将错误抛出以下
java.lang.UnsatisfiedLinkError:org.apache.hadoop.io.nativeio.NativeIO $ Windows.access0(Ljava/lang/String; I)Z
是否有解决此问题的指针?
解决方案
对于这样的错误,我使用三个步骤
-
找出所需内容
在这种情况下,* org.apache.hadoop.io.nativeio.NativeIO $ Windows.access0 *
-
找出其中的jar/lib.
我不使用Windows版本,但我相信它在hadoop.dll中-您必须检查一下.
-
找出我告诉它使用那个jar/lib的地方
更新:另请参见答案.>
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?
解决方案
With errors like this, I use three steps
Find out what it is looking for
In this case, *org.apache.hadoop.io.nativeio.NativeIO$Windows.access0*
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.
Find out where I'm telling it to use that jar/lib
Update: See also this Answer.
这篇关于在Windows上使用miniDFSCluster时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文