(16)hadoop 集群重启与停止
来源:互联网 发布:linux svn 创建仓库 编辑:程序博客网 时间:2024/06/04 18:00
Once all the necessary configuration is complete, distribute the files to the HADOOP_CONF_DIR directory on all the machines.
Hadoop Startup
To start a Hadoop cluster you will need to start both the HDFS and YARN cluster.
Format a new distributed filesystem:
$ $HADOOP_PREFIX/bin/hdfs namenode -format <cluster_name>
Start the HDFS with the following command, run on the designated NameNode:
$ $HADOOP_PREFIX/sbin/hadoop-daemon.sh --config $HADOOP_CONF_DIR --script hdfs start namenode
Run a script to start DataNodes on all slaves:
$ $HADOOP_PREFIX/sbin/hadoop-daemon.sh --config $HADOOP_CONF_DIR --script hdfs start datanode
Start the YARN with the following command, run on the designated ResourceManager:
$ $HADOOP_YARN_HOME/sbin/yarn-daemon.sh --config $HADOOP_CONF_DIR start resourcemanager
Run a script to start NodeManagers on all slaves:
$ $HADOOP_YARN_HOME/sbin/yarn-daemon.sh --config $HADOOP_CONF_DIR start nodemanager
Start a standalone WebAppProxy server. If multiple servers are used with load balancing it should be run on each of them:
$ $HADOOP_YARN_HOME/sbin/yarn-daemon.sh start proxyserver --config $HADOOP_CONF_DIR
Start the MapReduce JobHistory Server with the following command, run on the designated server:
$ $HADOOP_PREFIX/sbin/mr-jobhistory-daemon.sh start historyserver --config $HADOOP_CONF_DIR
Hadoop Shutdown
Stop the NameNode with the following command, run on the designated NameNode:
$ $HADOOP_PREFIX/sbin/hadoop-daemon.sh --config $HADOOP_CONF_DIR --script hdfs stop namenode
Run a script to stop DataNodes on all slaves:
$ $HADOOP_PREFIX/sbin/hadoop-daemon.sh --config $HADOOP_CONF_DIR --script hdfs stop datanode
Stop the ResourceManager with the following command, run on the designated ResourceManager:
$ $HADOOP_YARN_HOME/sbin/yarn-daemon.sh --config $HADOOP_CONF_DIR stop resourcemanager
Run a script to stop NodeManagers on all slaves:
$ $HADOOP_YARN_HOME/sbin/yarn-daemon.sh --config $HADOOP_CONF_DIR stop nodemanager
Stop the WebAppProxy server. If multiple servers are used with load balancing it should be run on each of them:
$ $HADOOP_YARN_HOME/sbin/yarn-daemon.sh stop proxyserver --config $HADOOP_CONF_DIR
Stop the MapReduce JobHistory Server with the following command, run on the designated server:
$ $HADOOP_PREFIX/sbin/mr-jobhistory-daemon.sh stop historyserver --config $HADOOP_CONF_DIR
- (16)hadoop 集群重启与停止
- hadoop集群停止脚本
- 线上hadoop集群重启jobtracker
- hadoop集群坏点单独重启
- Hadoop集群重启过程记录
- 启动、重启与停止mysql服务
- Activity 的停止与重启
- Nginx的启动、停止与重启
- Nginx的启动、停止与重启
- Nginx的启动、停止与重启
- Nginx的启动、停止与重启
- Nginx的启动、停止与重启
- Nginx的启动、停止与重启
- Nginx的启动、停止与重启
- Nginx的启动、停止与重启
- Nginx的启动、停止与重启
- Nginx的启动、停止与重启
- Nginx的启动、停止与重启
- LeetCoder 8. String to Integer (atoi)
- Git简介
- vim使用之小窍门
- 计算机视觉、数字图像处理等领域相关资源
- Java8改进的接口
- (16)hadoop 集群重启与停止
- jmeter压测,并且用nmon进行内存分析
- iOS用Sketch制作APP下拉刷新的GIF动画
- 路由表与FIB, arp fdb
- 编码和加密
- 类加载器的原理
- C++中怎样将整型值转换为字符串
- 百度地图API详解之事件机制
- java实现排序(3)-希尔排序