We Are Going To Discuss About Exception in thread “main” java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z. So lets Start this Java Article.
Exception in thread “main” java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z
- Exception in thread “main” java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z
After putting
haddop.dll
andwinutils
inhadoop/bin
folder and adding the folder of hadoop toPATH
, we also need to puthadoop.dll
into theC:\Windows\System32
folder - Exception in thread “main” java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z
After putting
haddop.dll
andwinutils
inhadoop/bin
folder and adding the folder of hadoop toPATH
, we also need to puthadoop.dll
into theC:\Windows\System32
folder
Solution 1
After putting haddop.dll
and winutils
in hadoop/bin
folder and adding the folder of hadoop to PATH
, we also need to put hadoop.dll
into the C:\Windows\System32
folder
Original Author JasonWayne Of This Content
Solution 2
In addition to other solutions, Please download winutil.exe and hadoop.dll and add to $HADOOP_HOME/bin. It works for me.
https://github.com/steveloughran/winutils/tree/master/hadoop-2.7.1/bin
Original Author Thirupathi Chavati Of This Content
Solution 3
In my case I was having this issue when running unit tests on local machine after upgrading dependencies to CDH6
. I already had HADOOP_HOME
and PATH
variables configured properly but I had to copy the hadoop.ddl
to C:\Windows\System32
as suggested in the other answer.
Original Author OsvaldoP Of This Content
Solution 4
After trying all the above, things worked after putting hadoop.dll to windows/System32
Original Author mohit bhindwal Of This Content
Conclusion
So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.