问答详情
源自:3-2 开发第一个Spark程序

启动spark woker时,提示native-hadoop不存在

19/01/14 15:47:20 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

提问者:慕粉3358788 2019-01-14 15:56

个回答

  • adime
    2019-04-28 15:34:33

    办法一:在spark的conf目录下,在spark-env.sh文件中加入LD_LIBRARY_PATH环境变量LD_LIBRARY_PATH=$HADOOP_HOME/lib/native

    办法二:在 ~/.bashrc 设置一下 export LD_LIBRARY_PATH=$HADOOP_HOME/lib/native

    试试看有没有用