如何在hadoop中启动所有守护进程-类似于linux中的start-all.sh

ccrfmcuu  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(346)

我刚刚开始研究hadoop,windows7中的cygwin。我需要知道,在linux中有没有任何方法可以使用-start-all.sh这样的命令来启动所有服务。我在cygwin中使用了这个命令不起作用。如果可能的话,请建议我任何参考工作在Windows7与cygwin的hadoop。
每次启动五个守护进程都需要执行以下步骤

Start the namenode in the first window by executing
cd hadoop
bin/hadoop namenode

Start the secondary namenode in the second window by executing
cd hadoop
bin/hadoop secondarynamenode

Start the job tracker the third window by executing
cd hadoop
bin/haoop jobtracker

Start the data node the fourth window by executing
cd hadoop
bin/haoop datanode

Start the task tracker the fifth window by executing
cd hadoop
bin/haoop tasktracker

请任何人帮忙

pcrecxhr

pcrecxhr1#

更改 for 匹配hadoop守护进程路径的条件:


# !/bin/bash

 for service in /etc/init.d/hadoop-hdfs-* /etc/init.d/hadoop-0.20-mapreduce-*
 do
   sudo $service start
 done

相关问题