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

后端 未结 21 1087
礼貌的吻别
礼貌的吻别 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 03:58

    export HADOOP_HOME=/home/hadoop/hadoop-2.4.1  
    export PATH=$HADOOP_HOME/bin:$PATH  
    export HADOOP_PREFIX=$HADOOP_HOME  
    export HADOOP_COMMON_HOME=$HADOOP_PREFIX  
    export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_PREFIX/lib/native  
    export HADOOP_CONF_DIR=$HADOOP_PREFIX/etc/hadoop  
    export HADOOP_HDFS_HOME=$HADOOP_PREFIX  
    export HADOOP_MAPRED_HOME=$HADOOP_PREFIX  
    export HADOOP_YARN_HOME=$HADOOP_PREFIX  
    export JAVA_LIBRARY_PATH=$HADOOP_HOME/lib/native:$JAVA_LIBRARY_PATH
    

提交回复
热议问题