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

后端 未结 21 1090
礼貌的吻别
礼貌的吻别 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:02

    I had the same issue. It's solved by adding following lines in .bashrc:

    export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
    export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"
    

提交回复
热议问题