Hadoop 64 fix
https://blog.csdn.net/sunflower_cao/article/details/38513839
解决办法一:
hadoop@master~: sudo gedit ~/.bash_profile 然后输入如下内容并保存:
1
2
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"
解决办法二:
打开$HADOOP_HOME/etc/hadoop/hadoop-env.sh文件,输入如下内容并保存
1
2
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"
解决办法三:
打开$HADOOP_HOME/etc/hadoop/yarn-env.sh,在任意位置输入如下内容
1
2
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_PREFIX}/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_PREFIX/lib"
最后在运行$HADOOP_HOME/sbin/start-all.sh
This post is licensed under CC BY 4.0 by the author.