Home >Java >javaTutorial >Why Does Hadoop Show 'Unable to Load Native-Hadoop Library' and How Can I Fix It?
Hadoop Warning: "Unable to Load Native-Hadoop Library for Your Platform"
When configuring Hadoop on a CentOS server, users may encounter the following error when running start-dfs.sh or stop-dfs.sh:
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
This warning, commonly encountered with Hadoop 2.2.0, primarily stems from a mismatch between the native Hadoop library and the platform architecture. In this specific case, the native library may have been compiled for a 32-bit system while the server is running on a 64-bit architecture.
Although the warning indicates a potential issue, it typically does not affect Hadoop's functionality. However, if you wish to resolve the warning, you can consider the following steps:
Detailed instructions for recompiling Hadoop on Ubuntu can be found at:
The above is the detailed content of Why Does Hadoop Show 'Unable to Load Native-Hadoop Library' and How Can I Fix It?. For more information, please follow other related articles on the PHP Chinese website!