louiscool 寫:
RT,namenode写入本地edits时,是否会同时写入远程secondarynamenode?
Secondary NameNode 只有負責協助
每小時合併 fsimage 跟 edits,
所以如果需要另外一份 edits,請直接寫兩個寫入路徑在 hdfs-site.xml 指定 dfs.name.dir
<name>dfs.name.dir</name>
<value>${hadoop.tmp.dir}/dfs/name
, ${NFS mount PATH} </value>
<description>Determines where on the local filesystem the DFS name node
should store the name table(fsimage).
If this is a comma-delimited list
of directories then the name table is replicated in all of the
directories, for redundancy. </description>
- Jazz