hadoop相关命令

Spring Wu 230 2021-02-03

start

  • 启动NameNode: hadoop-daemon.sh start namenode
  • 启动DataNode:hadoop-daemon.sh start datanode
  • yarn启动resourcemanager:yarn-daemon.sh start resourcemanager
  • yarn启动nodemanager:yarn-daemon.sh start nodemanager
  • yarn启动historyserver:yarn-daemon.sh start historyserver
  • mrjob启动historyserver:mr-jobhistory-daemon.sh start historyserver

stop

  • 停止NameNode:hadoop-daemon.sh stop namenode
  • 停止DataNode:hadoop-daemon.sh stop datanode
  • yarn停止resourcemanager:yarn-daemon.sh stop resourcemanager
  • yarn停止nodemanager:yarn-daemon.sh stop nodemanager
  • yarn停止historyserver:yarn-daemon.sh stop historyserver
  • mrjob停止historyserver:mr-jobhistory-daemon.sh stop historyserver