hadoop-2.6.2版本,使用hdfs命令时总会提示如下的告警:
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
有人说这是hadoop的预编译包是32bit的,运行在64bit上就会有问题。不少人都重新进行编译源码重新安装。结果问题依然存在。
问题详细信息如下:
#1.开启hadoop调试信息
[root@hadoop1 hadoop]# export HADOOP_ROOT_LOGGER=DEBUG,console
#2.执行hdfs命令查看调试信息
[root@hadoop0 hadoop]# hadoop fs -ls
20/04/21 15:43:46 DEBUG util.Shell: setsid exited with exit code 0
20/04/21 15:43:47 DEBUG conf.Configuration: parsing URL jar:file:/usr/local/hadoop-2.6.2/share/hadoop/common/hadoop-common-2.6.2.jar!/core-default.xml
20/04/21 15:43:47 DEBUG conf.Configuration: parsing input stream sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@5593d23b
20/04/21 15:43:47 DEBUG conf.Configuration: parsing URL file:/usr/local/hadoop-2.6.2/etc/hadoop/core-site.xml
20/04/21 15:43:47 DEBUG conf.Configuration: parsing input stream java.io.BufferedInputStream@201da694
20/04/21 15:43:47 DEBUG lib.MutableMetricsFactory: field org.apache.hadoop.metrics2.lib.MutableRate org.apache.hadoop.security.UserGroupInformation$UgiMetrics.loginSuccess with annotation @org.apache.hadoop.metrics2.annotation.Metric(value=[Rate of successful kerberos logins and latency (milliseconds)], valueName=Time, about=, type=DEFAULT, always=false, sampleName=Ops)
20/04/21 15:43:47 DEBUG lib.MutableMetricsFactory: fie