使用命令行启动Hadoop服务(CDH 5) [英] Starting Hadoop Services using Command Line (CDH 5)
问题描述
我知道如何使用Cloudera管理器界面启动服务,但我更愿意知道幕后发生的事情,而不是依赖魔术。
我阅读此页,但它确实不提供所需的信息
我知道有一些.sh文件可以使用,但它们似乎因版本而异,而且我使用的是最新的今天(5.3)。
我希望能有一个服务启动命令(特别是HDFS)的列表
PS:看起来像不知何故 Cloudera放弃了传统的Apache脚本(start-dfs.sh等)
您可以通过安装Cloudera的可选服务包来了解这一点。
这些使用service命令启动服务,而不是Cloudera Manager。
- hadoop-hdfs -namenode - 用于namenode
- hadoop-hdfs-secondarynamenode - 用于secondary namenode
- hadoop-hdfs-datanode - 用于datanode
- hadoop-hdfs-journalnode - 用于journalnode
您可以在这里看到CDH5.9 RPMs:
http://archive.cloudera.com/cdh5 /redhat/6/x86_64/cdh/5.9/RPMS/x86_64/
安装完成后,您可以查看相应的/ etc / init。 d / SERVICENAME
来理解它们是如何运行的(假设你很喜欢看shell脚本)。
I know how to start services using Cloudera manager interface, but I prefer to know what is really happening behind the scene and not rely on "magic".
I read this page but it does not give the desired information
I know there are some .sh files to be used but they seem to vary from version to version, and I'm using the latest as of today (5.3).
I would be grateful to have a list of service starting commands (specifically HDFS)
PS : Looks like somehow Cloudera ditched the classic Apache scripts (start-dfs.sh etc.)
You can figure this out by installing Cloudera's optional service packages.
These use the service command to start services instead of Cloudera Manager.
- hadoop-hdfs-namenode - for namenode
- hadoop-hdfs-secondarynamenode - for secondary namenode
- hadoop-hdfs-datanode - for datanode
- hadoop-hdfs-journalnode - for journalnode
You can see the CDH5.9 RPMs here: http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5.9/RPMS/x86_64/
After you install them, you can look at the respective /etc/init.d/SERVICENAME to understand how they are run (assuming you're comfortable looking at shell scripts).
这篇关于使用命令行启动Hadoop服务(CDH 5)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!