Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local

警告信息如下:

Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local/hadoop252/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'.

译文:

Java HotSpot(TM) 64位服务器VM警告:您已经加载了库/usr/local/hadoop252/ ib/native/libhadoop。所以这可能•已禁用堆栈保护。VM现在将尝试修复堆栈保护强烈建议您使用“execstack-c ”修复库,或者使用“-z noexecstack”链接它。

Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /usr/local_第1张图片

解决方法:

第一种:在64位操作系统上重写编译Hadoop文件

 

第二种:在etc/hadoop/目录中的 hadoop-env.sh和yarn-env.sh 这两个文件中添加如下两行代码:

export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"

 

你可能感兴趣的:(error,Hadoop)