Starting Hadoop Services using Command Line (CDH 5)

半城伤御伤魂 提交于 2020-01-25 22:05:08

问题


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.)


回答1:


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).



来源:https://stackoverflow.com/questions/43165272/starting-hadoop-services-using-command-line-cdh-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!