无法创建hadoop集群

时间:2014-09-20 15:25:49

标签: hadoop hdfs centos6

我正在关注http://alanxelsys.com/hadoop-v2-single-node-installation-on-centos-6-5安装hadoop
在我的群集上

我在/ usr / local / hadoop / sbin目录下安装了hadoop,当我尝试执行bash脚本时

start-all.sh; system gives below error;
start-all.sh: command not found

知道我尝试了什么

1. Tried  setting SSH again
2. Recheck the java path

我设置的变量是

export JAVA_HOME=/usr/java/latest
export HADOOP_INSTALL=/usr/local/hadoop
export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_HOME=$HADOOP_INSTALL
export HADOOP_HDFS_HOME=$HADOOP_INSTALL
export YARN_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin

1 个答案:

答案 0 :(得分:0)

start-all.sh脚本说“这个脚本已弃用。而是使用start-dfs.sh和start-yarn.sh”,所以你应该使用start-dfs.sh和start-yarn.sh