[hadoop@hadoop000 hadoop]$ ldd --version ldd (GNU libc) 2.12 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 由 Roland McGrath 和 Ulrich Drepper 编写。
原来系统预装的glibc库是2.12版本,而hadoop期望是2.14版本,所以打印警告信息。
解决办法如下:
在hadoop的安装目录下(例如:/home/hadoop/app/hadoop-2.6.0-cdh5.7.0/etc/hadoop)执行以下命令:
log4j.logger.org.apache.hadoop.util.NativeCodeLoader=ERROR