Home >Java >javaTutorial >Hadoop Native Library Loading Error: Ignore or Recompile?

Hadoop Native Library Loading Error: Ignore or Recompile?

Linda Hamilton
Linda HamiltonOriginal
2024-12-21 07:41:10288browse

Hadoop Native Library Loading Error: Ignore or Recompile?

Hadoop Library Loading Error: Resolving "Unable to Load Native-Hadoop Library" Warning

When executing Hadoop commands like start-dfs.sh or stop-dfs.sh, a user may encounter the warning:

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

This issue arises due to a mismatch between the Hadoop native library and the platform's architecture. In the case of CentOS, the native library included in Hadoop 2.2.0 was likely compiled for a 32-bit system, while your server is running a 64-bit version of CentOS.

To address this warning, one can opt for two courses of action:

  1. Ignore the Warning:
    The warning poses no critical impact on Hadoop's functionality and can be ignored without affecting its operations.
  2. Recompile the Native Library:
    To eliminate the warning, you can recompile the Hadoop source code to generate a native library specifically for your 64-bit CentOS system. Detailed instructions on how to do this can be found at the following link:

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

The above is the detailed content of Hadoop Native Library Loading Error: Ignore or Recompile?. 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