everything is OK on the Namenode node, and there is no prompt for this information, but the following message appears on Datanode:15/01/14 16:42:09 WARN util. nativecodeloader:unable to load Native-hadoop library for your platform ... using Builtin-java classes where applicableafter checking the original is Datanode sub-node /home/hadoop/hadoop2.2/lib directory does not have native folder, and Namenode above is the folder, Now you want to copy this folder from Namenode to all the Datanode nodes:go to the Lib folder on Namenode and copy it using the SCP command:scp-r native/ [email protected]:/home/hadoop/ Hadoop2.2/lib
Some summary of the SCP command:Copy from local to server:
SCP Sourcefilepath [email protected]:d estination file pathcopy multiple files:
SCP file1 file2 [email protected]:destination file path copy from server to Local:
scp-pr [email protected]:/home/linux/soft//home/linux/others/Copy the entire directory:
scp-r native/ [email protected]:/home/hadoop/hadoop2.2/lib
Hadoop "Unable to load Native-hadoop library for your platform" error on CentOS