gpt4 book ai didi

linux - 如何启动hadoop中的所有守护进程 - 就像linux中的start-all.sh

转载 作者:太空宇宙 更新时间:2023-11-04 04:05:18 25 4
gpt4 key购买 nike

我刚刚开始在 Windows 7 中使用 hadoop、cygwin。我需要知道,是否有任何方法可以使用 Linux 中的 start-all.sh 等命令启动所有服务。我在cygwin中使用这个命令不起作用。如果可能的话,请建议我任何有关在 Windows 7 中使用 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

请任何 body 帮助

最佳答案

更改 for 条件以匹配 Hadoop 守护程序的路径:

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

关于linux - 如何启动hadoop中的所有守护进程 - 就像linux中的start-all.sh,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21413768/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com