使用命令行启动和停止hadoop生态系统的最佳方式是什么? [英] What is best way to start and stop hadoop ecosystem, with command line?

查看:138
本文介绍了使用命令行启动和停止hadoop生态系统的最佳方式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到有几种方式可以启动hadoop生态系统,


  1. start-all。 sh& stop-all.sh
    其中说它已被弃用使用start-dfs.sh& start-yarn.sh。

  2. start-dfs.sh,stop-dfs.sh和start-yarn.sh,stop-yarn.sh c $ c $ <

  3. hadoop-daemon.sh namenode / datanode和yarn-deamon.sh resourcemanager 编辑:我认为每个命令都必须有一些特定的用例。

    $ b $
    $ b
  4. b

    解决方案

    start-all.sh& stop-all.sh:用于一次启动和停止hadoop守护进程。在主机上发布它将启动/停止群集中所有节点上的守护进程。已弃用,因为您已经注意到。



    start-dfs.sh,stop-dfs.sh和start-yarn.sh,stop-yarn.sh:与上面相同,但是在主机的所有节点上分别启动/停止HDFS和YARN守护进程。建议现在通过start-all.sh& amp; amp; stop-all.sh

    hadoop-daemon.sh namenode / datanode和yarn-deamon.sh resourcemanager :启动个人守护进程机器手动。您需要转到特定节点并发出这些命令。



    使用案例:假设您已向集群添加了新的DN,并且只需要启动DN守护程序在这台机器上,

      bin / hadoop-daemon.sh启动datanode 

    注意:如果您想从一台机器启动所有节点上的所有守护进程,则应启用ssh。



    希望这会回答您的查询。


    I see there are several ways we can start hadoop ecosystem,

    1. start-all.sh & stop-all.sh Which say it's deprecated use start-dfs.sh & start-yarn.sh.

    2. start-dfs.sh, stop-dfs.sh and start-yarn.sh, stop-yarn.sh

    3. hadoop-daemon.sh namenode/datanode and yarn-deamon.sh resourcemanager

    EDIT: I think there has to be some specific use cases for each command.

    解决方案

    start-all.sh & stop-all.sh : Used to start and stop hadoop daemons all at once. Issuing it on the master machine will start/stop the daemons on all the nodes of a cluster. Deprecated as you have already noticed.

    start-dfs.sh, stop-dfs.sh and start-yarn.sh, stop-yarn.sh : Same as above but start/stop HDFS and YARN daemons separately on all the nodes from the master machine. It is advisable to use these commands now over start-all.sh & stop-all.sh

    hadoop-daemon.sh namenode/datanode and yarn-deamon.sh resourcemanager : To start individual daemons on an individual machine manually. You need to go to a particular node and issue these commands.

    Use case : Suppose you have added a new DN to your cluster and you need to start the DN daemon only on this machine,

    bin/hadoop-daemon.sh start datanode
    

    Note : You should have ssh enabled if you want to start all the daemons on all the nodes from one machine.

    Hope this answers your query.

    这篇关于使用命令行启动和停止hadoop生态系统的最佳方式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆