namenode没有出现hadoop YARN



我在ubuntu上使用hadoop YARN。我已经在/usr/local目录中设置了hadoop目录(以及datanode和namenode目录)。每当我运行start-dfs.sh时,namenode都不会出现——屏幕输出中的消息会抱怨缺少bin/hdfs文件,即使该文件在那里(具有读/写访问权限)。我已经用Hadoop环境变量设置了bashrc(复制如下)。有什么想法吗?

#HADOOP VARIABLES START
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export HADOOP_INSTALL=/usr/local/hadoop/hadoop-2.5.1
export PATH=$PATH:$HADOOP_INSTALL/bin
export PATH=$PATH:$HADOOP_INSTALL/sbin
export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_HOME=$HADOOP_INSTALL
export HADOOP_HDFS_HOME=$HADOOP_INSTALL
export HADOOP_YARN_HOME=$HADOOP_INSTALL  ##added because I was not sure about the line below
export YARN_HOME=$HADOOP_INSTALL
export HADOOP_CONF_DIR=$HADOOP_INSTALL/etc/hadoop
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_INSTALL/lib"
#HADOOP VARIABLES END
Try running namenode with the following (as opposed to using the start-dfs.sh) and see if that works.  
        hadoop-daemon.sh start namenode
        hadoop-daemon.sh start secondarynamenode
        hadoop-daemon.sh start datanode
        hadoop-daemon.sh start nodemanager
        mr-jobhistory-daemon.sh start historyserver

相关内容

  • 没有找到相关文章

最新更新