问题
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