Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to load native hadoop library for Mac OS X

I am using Hadoop in Mac OS X. I think I installed Hadoop properly. When I tried to run an example WordCount problem, I got this error:

INFO util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

From Googling this error, I learned that Hadoop Native Libraries are not supported in Mac OS.

Is there a way to load the Native Hadoop Library for Mac using some third-party software?

like image 536
user2123572 Avatar asked Mar 01 '13 12:03

user2123572


1 Answers

Run the example with an argument like this -Djava.library.path={YOUR_HADOOP_HOME}/lib/native/Linux-amd64-64/ will probably fix the problem on the condition that Mac has something native under native directory

like image 115
8.8.8.8 Avatar answered Nov 03 '22 03:11

8.8.8.8