1、启动Hadoop提示WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
在/etc/profile中添加
export HADOOP_OPTS="\$HADOOP_OPTS -Djava.library.path=/hadoop/hadoop-2.9.2/lib/native/"
参考链接
https://wenku.baidu.com/view/9f526961650e52ea55189897.html
2、运行mrjob任务提示Unable to load native-hadoop library for your platform… using builtin-java classes where applicable
在hadoop-env.sh 中添加:
export HADOOP_OPTS="\$HADOOP_OPTS -D