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

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

    Firstly: You can modify the glibc version.CentOS provides safe softwares tranditionally,it also means the version is old such as glibc,protobuf ...

    ldd --version
    ldd /opt/hadoop/lib/native/libhadoop.so.1.0.0
    

    You can compare the version of current glibc with needed glibc.

    Secondly: If the version of current glibc is old,you can update the glibc. DownLoad Glibc

    If the version of current glibc id right,you can append word native to your HADOOP_OPTS

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

提交回复
热议问题