博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
HDFS 实验 (四) 集群操作
阅读量:6300 次
发布时间:2019-06-22

本文共 3363 字,大约阅读时间需要 11 分钟。

集群设置

用户手册

Daemon

Environment Variable

NameNode

HDFS_NAMENODE_OPTS

DataNode

HDFS_DATANODE_OPTS

Secondary NameNode

HDFS_SECONDARYNAMENODE_OPTS

ResourceManager

YARN_RESOURCEMANAGER_OPTS

NodeManager

YARN_NODEMANAGER_OPTS

WebAppProxy

YARN_PROXYSERVER_OPTS

Map Reduce Job History Server

MAPRED_HISTORYSERVER_OPTS

To start a Hadoop cluster you will need to start both the HDFS and YARN cluster.

The first time you bring up HDFS, it must be formatted. Format a new distributed filesystem as hdfs:

[hdfs]$ $HADOOP_HOME/bin/hdfs namenode -format <cluster_name>

Start the HDFS NameNode with the following command on the designated node as hdfs:

[hdfs]$ $HADOOP_HOME/bin/hdfs --daemon start namenode

Start a HDFS DataNode with the following command on each designated node as hdfs:

[hdfs]$ $HADOOP_HOME/bin/hdfs --daemon start datanode

If etc/hadoop/workers and ssh trusted access is configured (see ), all of the HDFS processes can be started with a utility script. As hdfs:

[hdfs]$ $HADOOP_HOME/sbin/start-dfs.sh

Start the YARN with the following command, run on the designated ResourceManager as yarn:

[yarn]$ $HADOOP_HOME/bin/yarn --daemon start resourcemanager

Run a script to start a NodeManager on each designated host as yarn:

[yarn]$ $HADOOP_HOME/bin/yarn --daemon start nodemanager

Start a standalone WebAppProxy server. Run on the WebAppProxy server as yarn. If multiple servers are used with load balancing it should be run on each of them:

[yarn]$ $HADOOP_HOME/bin/yarn --daemon start proxyserver

If etc/hadoop/workers and ssh trusted access is configured (see ), all of the YARN processes can be started with a utility script. As yarn:

[yarn]$ $HADOOP_HOME/sbin/start-yarn.sh

Start the MapReduce JobHistory Server with the following command, run on the designated server as mapred:

[mapred]$ $HADOOP_HOME/bin/mapred --daemon start historyserver

Hadoop Shutdown

Stop the NameNode with the following command, run on the designated NameNode as hdfs:

[hdfs]$ $HADOOP_HOME/bin/hdfs --daemon stop namenode

Run a script to stop a DataNode as hdfs:

[hdfs]$ $HADOOP_HOME/bin/hdfs --daemon stop datanode

If etc/hadoop/workers and ssh trusted access is configured (see ), all of the HDFS processes may be stopped with a utility script. As hdfs:

[hdfs]$ $HADOOP_HOME/sbin/stop-dfs.sh

Stop the ResourceManager with the following command, run on the designated ResourceManager as yarn:

[yarn]$ $HADOOP_HOME/bin/yarn --daemon stop resourcemanager

Run a script to stop a NodeManager on a worker as yarn:

[yarn]$ $HADOOP_HOME/bin/yarn --daemon stop nodemanager

If etc/hadoop/workers and ssh trusted access is configured (see ), all of the YARN processes can be stopped with a utility script. As yarn:

[yarn]$ $HADOOP_HOME/sbin/stop-yarn.sh

Stop the WebAppProxy server. Run on the WebAppProxy server as yarn. If multiple servers are used with load balancing it should be run on each of them:

[yarn]$ $HADOOP_HOME/bin/yarn stop proxyserver

Stop the MapReduce JobHistory Server with the following command, run on the designated server as mapred:

[mapred]$ $HADOOP_HOME/bin/mapred --daemon stop historyserver

Web Interfaces

Once the Hadoop cluster is up and running check the web-ui of the components as described below:

Daemon

Web Interface

Notes

NameNode

Default HTTP port is 9870.

ResourceManager

Default HTTP port is 8088.

MapReduce JobHistory Server

Default HTTP port is 19888.

转载地址:http://yqrta.baihongyu.com/

你可能感兴趣的文章
SPOJ 10628 Count on a tree (lca+主席树)
查看>>
Drupal7.8的安装注意的问题
查看>>
【POJ 2983】Is the Information Reliable?(差分约束系统)
查看>>
.net基础系列
查看>>
程序猿生存定律--细论影响人生成绩的四个要素(1)
查看>>
返回零长度的数组或者集合,而不是null
查看>>
Mosquito的优化——订阅树优化(八)
查看>>
IBM MQ + WebSphere + Spring JMS配置方法
查看>>
【JS小技巧】JavaScript 函数用作对象的隐藏问题(F.ui.name)
查看>>
LCD设备驱动程序
查看>>
layer:好看的弹出窗口
查看>>
mysql服务里面没有启动项
查看>>
通过kubeadm安装kubernetes 1.7文档记录[docker容器方式]
查看>>
ES6中变量解构的用途—遍历Map结构
查看>>
JSON相关
查看>>
https://github.com/CocoaPods/CocoaPods/search?q=No+such+file+or+directory报错解决方式
查看>>
Android反编译 -- 错误代码还原
查看>>
oracle11g 在azure云中使用rman进行实例迁移
查看>>
【Python】 uuid生成唯一ID
查看>>
elk系列7之通过grok分析apache日志【转】
查看>>