Home >Java >javaTutorial >Why Does Hadoop 2.2.0 Issue a 'Native Library Loading' Warning on CentOS, and How Can I Fix It?
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!