Environment
[Email protected] soft]#Cat/etc/Issuecentos Release6.5(Final) Kernel \ r \m[[email protected] soft]#uname-Alinux vm80282.6. +-431. el6.x86_64 #1SMP Fri Nov A Geneva: the: theUtc -x86_64 x86_64 x86_64 gnu/Linux[[email protected] soft]# Hadoop versionhadoop2.7.1Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git-r 15ecc87ccf4a0228f35af08fc56de536e6ce657aCompiled by Jenkins on -- .-29t06:04zcompiled with Protoc2.5.0From source with checksum fc0a1a23fc1868e4d5ee7fa2b28a58athis command is run using/usr/local/hadoop-2.7.1/share/hadoop/common/hadoop-common-2.7.1. jar
Issue, the operations report is a warning after installing Hadoop, but does not affect the use of
[WARN] 2018-04-18 18:07:39,897 method:org.apache.hadoop.util.nativecodeloader.<clinit> ( NATIVECODELOADER.JAVA:62)
Unable to load Native-hadoop library for your platform ... using Builtin-java classes where applicable
[Email protected] ~]# Hadoop FS-ls/[WARN]2018-Geneva- - -: -: the,897Method:org.apache.hadoop.util.nativecodeloader.<clinit> (Nativecodeloader.java: +) Unable to load native-hadoop Library forYour platform ... using builtin-Java classes where Applicablefound2ITEMSDRWXR-xr-x-root supergroup0 2018-Geneva- - -: the/PARKDRWXR-xr-x-root supergroup0 2018-Geneva- - -: +/user
Cause of the problem:
Since the native library for Hadoop provided by Apache is 32-bit, our operating system is 64-bit, so we need to compile with a 64-bit operating system. or download the compiled 64-bit local package
A http://dl.bintray.com/sequenceiq/sequenceiq-bin/is provided here
Because no version 2.7.1 was found, (not using Hadoop-native-64.tar) downloaded Hadoop-native-64-2.7.0.tar replace local library
[Email protected] soft]#Tar-XVF hadoop-native- --2.7.0.Tar-C hadoop-native- --2.7.0[email protected] lib]#MV/home/soft/hadoop-native- --2.7.0./[email protected] lib]#MVhadoop-native- --2.7.0Native[[email protected] lib]#Chown-R Hadoop.hadoop Native
Problem solving after restarting Hadoop
[[email protected] ~]# Hadoop FS-LS /2 itemsdrwxr-xr-x -root supergroup c6>02018-about-£/parkdrwxr-xr-x -Root SuperGroup 02018-£/user
[Email protected] ~]# Hadoop fs-ls/
[WARN] 2018-04-18 18:07:39,897 method:org.apache.hadoop.util.nativecodeloader.<clinit> ( NATIVECODELOADER.JAVA:62)
Unable to load Native-hadoop library for your platform ... using Builtin-java classes where applicable
Hadoop unable to the load Native-hadoop library for your platform ... using Builtin-java classes where applicable problem resolution