Hadoop “Unable to load native-hadoop library for your platform” warning

后端 未结 21 1473
礼貌的吻别
礼貌的吻别 2020-11-22 03:48

I\'m currently configuring hadoop on a server running CentOs. When I run start-dfs.sh or stop-dfs.sh, I get the following error:

21条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 04:08

    This line right here:

    export JAVA_LIBRARY_PATH=$HADOOP_HOME/lib/native:$JAVA_LIBRARY_PATH
    

    From KunBetter's answer, worked for me. Just append it to .bashrc file and reload .bashrc contents

    $ source ~/.bashrc
    

提交回复
热议问题