美文网首页
java.lang.UnsatisfiedLinkError:

java.lang.UnsatisfiedLinkError:

作者: liuzx32 | 来源:发表于2018-12-06 17:33 被阅读2次

    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

    #

    相关文章

      网友评论

          本文标题:java.lang.UnsatisfiedLinkError:

          本文链接:https://www.haomeiwen.com/subject/juoocqtx.html