Environment: Hadoop1.2.1
Configuring the Secondarynamenode Node
[email protected] hadoop-1.2.1]$ cat./conf/mastershadoop2
Configuring Namenode nodes, synchronizing check time
[email protected] hadoop-1.2.1]$ cat./conf/core-site.xml<?xml version= "1.0"? ><?xml-stylesheet type= "text/ XSL "href=" configuration.xsl "? ><configuration><property><name>fs.checkpoint.period</ Name><value>20</value><description>the number of seconds between, periodic checkpoints.</ description></property><property><name>fs.default.name</name><value>hdfs:// Hadoop1:9000</value></property><property><name>hadoop.tmp.dir</name><value >/home/grid/hadoop-1.2.1/tmp</value></property></configuration>
Configure dfs.http.address, if not configured, Secondary Namenode Sync folder is always empty
[email protected] hadoop-1.2.1]$ cat./conf/hdfs-site.xml<?xml version= "1.0"? ><?xml-stylesheet type= "text/ XSL "href=" configuration.xsl "? ><configuration><property><name>dfs.http.address</name ><value>hadoop1:50070</value> <!--your namenode IP--><description>the address and the base Port where the Dfs Namenode Web UI would listen on. If the port is 0 then the server would start on a free PORT.</DESCRIPTION></PROPERTY><PROPERTY><NAME&G T;dfs.replication</name><value>2</value></property></configuration>
Configuring Secondarynamenode and Namenode Separations