2

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

新进程的指针和解释将不胜感激。

4

1 回答 1

1

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

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

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

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

来自贾雷克:

不要被我们没有使用“主”分支这一事实所欺骗——您必须查看特定于发布的分支。例如,分支中提供了超过 1 个月的 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

这就是我一直在寻找的。

于 2014-06-10T14:17:20.333 回答