Home >Java >javaTutorial >Why Does Hadoop 2.2.0 Issue a 'Native Library Loading' Warning on CentOS, and How Can I Fix It?

Why Does Hadoop 2.2.0 Issue a 'Native Library Loading' Warning on CentOS, and How Can I Fix It?

Patricia Arquette
Patricia ArquetteOriginal
2024-12-25 03:06:09807browse

Why Does Hadoop 2.2.0 Issue a

Trouble with Hadoop: Warning on Native Library Loading

When initiating Hadoop 2.2.0 on CentOS with start-dfs.sh or stop-dfs.sh, users encounter the following error: "WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable." This notice arises due to discrepancies in the native library compilation platform.

Despite setting the necessary environment variables, the issue persists due to the native Hadoop library (libhadoop.so.1.0.0) being compiled on a 32-bit system instead of the expected 64-bit CentOS environment.

While this warning does not affect Hadoop's functionality, it can be eliminated by recompiling libhadoop.so.1.0.0 on a 64-bit system and replacing the existing 32-bit version.

For Ubuntu users, step-by-step instructions for recompiling the source code can be found at: http://www.ercoppa.org/Linux-Compile-Hadoop-220-fix-Unable-to-load-native-hadoop-library.htm

The above is the detailed content of Why Does Hadoop 2.2.0 Issue a 'Native Library Loading' Warning on CentOS, and How Can I Fix It?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn