Home >Java >javaTutorial >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:
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!