我是hadoop的新手,我不明白一切,我安装了hadoop 2.5,我想运行这些命令才能启动hadoop:
$ yarn-daemon.sh start resourcemanager
$ yarn-daemon.sh start nodemanager
$ hadoop-daemon.sh start namenode
$ hadoop-daemon.sh start datanode
$ mr-jobhistory-daemon.sh start historyserver
当我输入时:
which hadoop
我有这个:
/usr/bin/hadoop
但这链接到:
/opt/cloudera/parcels/CDH-5.3.2-1.cdh5.3.2.p0.10/bin/hadoop
我应该将HADOOP_PREFIX设置为什么?为了开始hadoop 确实我有这个错误:yarn-daemon.sh:command not found
答案 0 :(得分:0)
在.bashrc
中添加以下内容,它应该有效:
export HADOOP_PREFIX=/opt/cloudera/parcels/CDH-5.3.2-1.cdh5.3.2.p0.10
export PATH=$PATH:$HADOOP_PREFIX/bin