<configuration> <property> <name>dfs.replication</name> <value>1</value> </property> <property> <name>dfs.permissions</name> <value>false</value> <!--关闭防火墙--> </property> <property> <name>dfs.namenode.name.dir</name> <value>file:///Users/daren/devtool/hadoop-3.0.0/hadoop_data/name</value> </property> <property> <name>dfs.datanode.data.dir</name> <value>file:///Users/daren/devtool/hadoop-3.0.0/hadoop_data/data</value> </property> <property> <name>dfs.balance.bandwidthPerSec</name> <value>10485760</value> <description>Specifies the maximum bandwidth that each datanode can utilize for the balancing purpose in term of the number of bytes per second. </description> </property>
<property> <name>dfs.http.address</name> <value>m0.unicom:50070</value> <description>Secondary get fsimage and edits via dfs.http.address</description> </property>
<property> <name>dfs.namenode.checkpoint.dir</name> <value>file:/usr/unidata/hadoop/tmp/namesecondary</value> <description>Determines where on the local filesystem the DFS secondary name node should store the temporary images to merge. If this is a comma-delimited list of directories then the image is replicated in all of the directories for redundancy. </description> </property>
<property> <name>dfs.namenode.checkpoint.edits.dir</name> <value>file:/usr/unidata/hadoop/tmp/namesecondary</value> <description>Determines where on the local filesystem the DFS secondary name node should store the temporary edits to merge. If this is a comma-delimited list of directories then the edits is replicated in all of the directories for redundancy. Default value is same as dfs.namenode.checkpoint.dir </description> </property>
<property> <name>dfs.namenode.checkpoint.period</name> <value>3600</value> <description>The number of seconds between two periodic checkpoints. </description> </property>