spark-env.sh文件中添加如下配置
export JAVA_LIBRARY_PATH=$JAVA_LIBRARY_PATH:/usr/lib/hadoop/lib/native
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/hadoop/lib/native
export SPARK_YARN_USER_ENV="JAVA_LIBRARY_PATH=$JAVA_LIBRARY_PATH,LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
#
#refer1: https://datameer.zendesk.com/hc/en-us/articles/209728903-UnsatisfiedLinkError-org-apache-hadoop-util-NativeCodeLoader-buildSupportsSnappy-Z
#refer2: https://stackoverflow.com/questions/22150417/hadoop-mapreduce-java-lang-unsatisfiedlinkerror-org-apache-hadoop-util-nativec
#
网友评论