15

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?

chrisaycock
  • 36,470
  • 14
  • 88
  • 125
user2123572
  • 151
  • 1
  • 1
  • 4
  • 1
    are you running hadoop 1.1.2 ? I have the same issue, however it is a warning and the job runs fine, I also have WARN snappy.LoadSnappy: Snappy native library not loaded ... Have you found a solution? – lizzie Mar 26 '13 at 09:39
  • Does this answer your question? [Hadoop "Unable to load native-hadoop library for your platform" warning](https://stackoverflow.com/questions/19943766/hadoop-unable-to-load-native-hadoop-library-for-your-platform-warning) – OneCricketeer Nov 17 '22 at 22:16

1 Answers1

4

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

8.8.8.8
  • 678
  • 7
  • 11
  • What is {YOUR_HADOOP_HOME}? is it my hadoop installed location? – Bala Subramanyam Apr 04 '15 at 18:14
  • @BalaSubramanyam Yes, {YOUR_HADOOP_HOME} corresponds to $HADOOP_HOME or %HADOOP_HOME%, depending on your system and whether you have those env vars set (assuming $HADOOP_HOME, since the question asked about Mac). – Tristan Reid Sep 16 '15 at 23:02