마스터 네임노드의 hdfs-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>dfs.replication</name>
<value>2</value>
</property>
<property>
<name>dfs.namenode.name.dir</name>
<value>file:///home/hadoop/dfs/name</value>
</property>
<property>
<name>dfs.namenode.edits.dir</name>
<value>file:///home/hadoop/dfs/edits</value>
</property>
<property>
<name>dfs.hosts</name>
<value>/home/nova/hadoop-3.0.3/etc/hadoop/include.hosts</value>
</property>
<property>
<name>dfs.hosts.exclude</name>
<value>/home/nova/hadoop-3.0.3/etc/hadoop/exclude.hosts</value>
</property>
<property>
<name>dfs.namenode.secondary.http-address</name>
<value>backup:9878</value>
</property>
</configuration>
마스터 네임노드의 mapred-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
<property>
<name>mapreduce.framework.name</name>
<value>yarn</value>
</property>
<property>
<name>mapreduce.jobtracker.hosts.filename</name>
<value>/home/nova/hadoop-3.0.3/etc/hadoop/include.hosts</value>
</property>
<property>
<name>mapreduce.jobtracker.hosts.exclude.filename</name>
<value>/home/nova/hadoop-3.0.3/etc/hadoop/exclude.hosts</value>
</property>
</configuration>
|