当前位置: 首页 > 工具软件 > libra-server > 使用案例 >

Java HotSpot(TM) Server VM warning: You have loaded library /usr/local/src/hadoop-2.6.5/lib/native/l

戚均
2023-12-01

Java HotSpot™ Server VM warning: You have loaded library /usr/local/src/hadoop-2.6.5/lib/native/libhadoop.so.1.0.0 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’.
19/12/18 21:31:28 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable

  官方版本都是基于32位的,这个问题一般出现在64位的机器上,在下面两个文件中加入以下两句话即可。

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" 
 类似资料: