내용

글번호 754
작성자 허진경
작성일 2017-09-20 10:02:49
제목 노드 추가 및 제거를 위한 설정
내용 마스터 네임노드의 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/hadoop/hadoop-2.8.1/etc/hadoop/include.hosts</value> </property> <property> <name>dfs.hosts.exclude</name> <value>/home/hadoop/hadoop-2.8.1/etc/hadoop/exclude.hosts</value> </property> <property> <name>dfs.namenode.secondary.http-address</name> <value>backup:50090</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/hadoop/hadoop-2.8.1/etc/hadoop/include.hosts</value> </property> <property> <name>mapreduce.jobtracker.hosts.exclude.filename</name> <value>/home/hadoop/hadoop-2.8.1/etc/hadoop/exclude.hosts</value> </property> </configuration>