一、secondnamenode是做什么的
The Secondary Namenode is a helper to the primary Namenode. The Secondary is responsible for supporting periodic checkpoints of the HDFS metadata. The current design allows only one Secondary Namenode per HDFs cluster. The Secondary Namenode is a daemon that periodically wakes up (determined by the schedule specified in the configuration), triggers a periodic checkpoint and then goes back to sleep. The Secondary Namenode uses the ClientProtocol to talk to the primary Namenode.
二、将hadoop的namenode和secondnamenode分离在不同的服务器上
1. master
将secondnamenode的ip配置在master中
2.hdfs-site.xml
将namenode配置在hdfs-site.xml中
<property> <name>dfs.http.address</name> <value>slave-01:50070</value> <description> The address and the base port where the dfs namenode web ui will listen on. If the port is 0 then the server will start on a free port. </description> </property>
3.core-site.xml
<property> <name>fs.checkpoint.period</name> <value>3600</value> <description>The number of seconds between two periodic checkpoints. </description> </property> <property> <name>fs.checkpoint.size</name> <value>67108864</value> <description>The size of the current edit log (in bytes) that triggers a periodic checkpoint even if the fs.checkpoint.period hasn't expired. </description> </property>
fs.checkpoint.period表示多长时间记录一次hdfs的镜像
fs.checkpoint.size表示一次记录多大的size,默认64M
相关推荐
Hadoop 2.2.0 配置文件 在4台CentOs 6.4版本下运行成功
Hadoop3.1.3 配置文件
hadoop安装配置文档,hadoop是云计算的基础。绝大部分的云计算中的分布式存储和计算都是使用hadoop的。简单的理解的话,云计算是系统工程的蓝图,hadoop是基础层面的重要的必不可少的工具
详细的hadoop单机配置步骤,非常好的一个文档。
安hadoop集群配置,hadoop集群配置,hadoop集群配置,hadoop集群配置
hadoop的默认配置文件,下载记得关注我哦
Windows 7 or 10 eclipse hadoop2.7.1 配置需要文件和工具
本文档用于说明hadoop1.0.3安装配置的步骤 以及其中需要注意的事项
Hadoop安装配置过程和注意事项
Hadoop部署和配置Kerberos安全认证全套流程。已经过实测并部署与生产环境。
利用shell脚本 对Hadoop环境进行傻瓜式配置 先解压! 环节包括: 1.修改hostname 2.修改hosts 3.配置免密 4.Hadoop配置文件的更改 !!!!!!!!!!!!!!!!!!!! ps 请特别注意以下几个问题: 1....
hadoop配置属性hadoop配置属性hadoop配置属性hadoop配置属性hadoop配置属性
Hadoop集群配置及MapReduce开发手册
本文档列出了hadoop的常用配置说明,对hadoop的学习很有帮助。
经过多次反复试验,完全可用的hadoop配置,有0.19的版本,也有0.20的版本。并且有脚本可以在两个版本之间切换,无需格式化文件系统。Without "hadoop namenode -format" 目录结构: /data/hadoop 为工作目录,实际为...
hadoop config 配置文件
配置hadoop2.0,按照文档执行就可以了
Hadoop配置文件说明;4.1.1 Hadoop环境配置;4.1.2 Hadoop守护进程环境配置;4.1.3 Hadoop配置参数格式;4.1.3 Hadoop配置参数格式;4.1.4 获得Hadoop集群全部配置信息;4.2 在Master节点上安装Hadoop;(1)解压缩hadoop-...
hadoop安装配置,轻松搞定hadoop集群配置安装