내용

글번호 891
작성자 허진경
작성일 2018-08-06 09:52:55
제목 하둡 노드 추가/제거를 위한 설정(3.x)
내용 마스터 네임노드의 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>