Configuring Secondarynamenode and Namenode Separations

Source: Internet
Author: User
Tags xsl

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.