Hadoop "Unable to Load Native-Hadoop Library For Your Platform" Warning

Hadoop Unable to load native-hadoop library for your platform warning

I assume you're running Hadoop on 64bit CentOS. The reason you saw that warning is the native Hadoop library $HADOOP_HOME/lib/native/libhadoop.so.1.0.0 was actually compiled on 32 bit.

Anyway, it's just a warning, and won't impact Hadoop's functionalities.

Here is the way if you do want to eliminate this warning, download the source code of Hadoop and recompile libhadoop.so.1.0.0 on 64bit system, then replace the 32bit one.

Steps on how to recompile source code are included here for Ubuntu:

  • http://www.ercoppa.org/Linux-Compile-Hadoop-220-fix-Unable-to-load-native-hadoop-library.htm

Good luck.

Spark: unable to load native-hadoop library for platform

Java 17 isn't supported - Spark runs on Java 8/11 (source: https://spark.apache.org/docs/latest/).

So install Java 11 and point Spark to that.

The warning unable to load native-hadoop library for platform is quite common and doesn't mean that anything's wrong.

Hadoop “Unable to load native-hadoop library for your platform” warning

This is just a warning, you can ignore it.
Spark and pyspark can be used without hadoop.

You can take a loop at this link:

https://community.hortonworks.com/questions/19897/apache-spark-error-unable-to-load-native-hadoop-li.html

Pyspark Mac NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

  1. Download hadoop binary (link) and put it in your home directory (you can choose a different hadoop version if you like and change the next steps accordingly)
  2. Unzip the folder in your home directory using the following command. tar -zxvf hadoop_file_name
  3. Now add export HADOOP_HOME=~/hadoop-2.8.0 to your .bashrc file. Open a new terminal and try again.
    Source: Install PySpark on Mac


Related Topics



Leave a reply



Submit