Checkpoint触发条件:
hadoop 1.x版本:
hadoop-2.7.2/ect/core-site.xml:
<property>
<name>fs.checkpoint.period</name>
<value>3600</value>
<description>两次checkpoint的时间间隔为3600秒</description>
</property>
<property>
<name>fs.checkpoint.size</name>
<value>67108864</value>
<description> edtis文件大小达到64M时 </description>
</property>
hadoop 2.x 版本:
hadoop-2.7.2/share/doc/hadoop/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml
<property>
<name>dfs.namenode.checkpoint.period</name>
<value>3600</value>
</property>
<!--一分钟检查一次操作次数,当操作次数达到1百万时,SecondaryNameNode执行一次合并。-->
<property>
<name>dfs.namenode.checkpoint.txns</name>
<value>1000000</value>
<description>操作动作次数</description>
</property>
<property>
<name>dfs.namenode.checkpoint.check.period</name>
<value>60</value>
<description> 1分钟检查一次操作次数</description>
</property>