OpenJDK 64-Bit Server VM warning: You have loaded library /home/soulmachine/local/opt/hadoop-2.2.0/lib/native/libhadoop.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
在百度上看到分析原因, 但具体不明白怎么解决
原因:
dns中找不到机器名
另外一种原因是 机器是64位的,但是native库是32位的。需要在64位机器上重新编译native库。
解决方法
配置文件指定一个 ServerName localhost 即可
另外一种解决方法
我们从官方下载的Hadoop发布包中native library的版本都是32位的,如果要支持64位,必须自己重新编译(搞不懂官网为啥默认是32位,目前基本上我们的OS都是运行在64位,更不用说生产环境)。
其实YARN的官方文档中有说明:”The pre-built 32-bit i386-Linux native hadoop library is available as part of the hadoop distribution and is located in the lib/native directory. You can download the hadoop distribution from Hadoop Common Releases.”