CDH5上的启动/停止hadoop hdfs / mapred脚本在哪里

时间:2014-06-09 03:11:15

标签: hadoop cloudera-manager cloudera-cdh

CDH4的文档是指 /etc/init.d/hadoop - * 脚本,但CDH5中不再存在这些脚本。

我已经进入文档但是没有成功找到/理解什么是CDH5等价物。我能找到的最近的是SCM经理:

http://www.cloudera.com/content/cloudera-content/cloudera-docs/CM5/latest/Cloudera-Manager-Administration-Guide/cm5ag_agents.html

对新流程(/ es)的指示和解释将不胜感激。

1 个答案:

答案 0 :(得分:1)

我收到了Cloudera用户的回复'来自苛刻的邮件列表:

他们仍然在同一个位置,但只有你安装 遵循非CM指南。 CM依赖于自己的脚本。

我正在跟进Harsh,以确定如何改进当前安装以包含这些脚本。

更新关于邮件列表的进一步讨论:

来自Jarek:

  

不要因为我们没有使用" master"而感到不知所措。分支机构    - 你必须检查发布特定分支。例如,分支中可用的略多于一个旧的5.0.1源:

     

https://github.com/cloudera/hadoop-common/tree/cdh5-2.3.0_5.0.1

基于Jark的指针,以下是诀窍:

git clone -b  cdh5-2.3.0_5.0.1 https://github.com/cloudera/hadoop-common.git

让我们看一下结果:

hadoop-common $git status

On branch cdh5-2.3.0_5.0.1
Your branch is up-to-date with 'origin/cdh5-2.3.0_5.0.1'.

看起来我正在寻找的剧本就是为了拍摄:

07:41:00/hadoop-common $find . -name st\*.sh

./hadoop-common-project/hadoop-common/src/main/bin/start-all.sh
./hadoop-common-project/hadoop-common/src/main/bin/stop-all.sh
./hadoop-hdfs-project/hadoop-hdfs/src/main/bin/start-balancer.sh
./hadoop-hdfs-project/hadoop-hdfs/src/main/bin/start-dfs.sh
./hadoop-hdfs-project/hadoop-hdfs/src/main/bin/start-secure-dns.sh
./hadoop-hdfs-project/hadoop-hdfs/src/main/bin/stop-balancer.sh
./hadoop-hdfs-project/hadoop-hdfs/src/main/bin/stop-dfs.sh
./hadoop-hdfs-project/hadoop-hdfs/src/main/bin/stop-secure-dns.sh
./hadoop-mapreduce1-project/bin/start-mapred.sh
./hadoop-mapreduce1-project/bin/stop-mapred.sh
./hadoop-mapreduce1-project/src/contrib/thriftfs/scripts/start_thrift_server.sh
./hadoop-yarn-project/hadoop-yarn/bin/start-yarn.sh
./hadoop-yarn-project/hadoop-yarn/bin/stop-yarn.sh

那就是我在寻找的东西。