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

nlejzf6q  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(427)

cdh4的文档引用了/etc/init.d/hadoop-*脚本,但这些脚本在cdh5中已经不存在了。
我仔细阅读了文档,但没有成功地找到/理解什么是cdh5等效物。我能找到的最接近的是scm manager:
http://www.cloudera.com/content/cloudera-content/cloudera-docs/cm5/latest/cloudera-manager-administration-guide/cm5ag_agents.html
对新流程(/es)的说明和解释将不胜感激。

uplii1fm

uplii1fm1#

我在cloudera用户的邮件列表上收到了来自harsh的回复:
它们仍在同一位置,但只有在遵循非cm指南时才安装。cm依赖于它自己的脚本。
我正在跟进harsh,以确定如何对当前安装进行改造,以包含这些脚本。
更新关于邮件列表的进一步讨论:
来自jarek:
不要被我们没有使用“主”分支这一事实所欺骗——你必须检查发布特定的分支。例如,分支中有略多于一个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

这就是我要找的。

相关问题