<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License. See accompanying LICENSE file.
-->

<!-- Put site-specific property overrides in this file. -->

<configuration>
<property>
  <name>dfs.hosts.include</name>
  <value>${hadoop.home.dir}/etc/hadoop/slaves</value>
</property>

<property>
  <name>dfs.hosts.exclude</name>
  <value>${hadoop.home.dir}/etc/hadoop/exclude_slaves</value>
</property>

<property>
  <name>dfs.namenode.checkpoint.txns</name>
  <value>1000000</value>
</property>

<property>
  <name>dfs.namenode.checkpoint.period</name>
  <value>3600</value>
</property>

<property>
  <name>dfs.nameservices</name>
  <value>gmei-hdfs</value>
</property>

<property>
  <name>dfs.ha.namenodes.gmei-hdfs</name>
  <value>namenode1,namenode2</value>
</property>

<property>
  <name>dfs.namenode.name.dir.gmei-hdfs.namenode1</name>
  <value>file:///data1/dfs/nn</value>
</property>

<property>
  <name>dfs.namenode.shared.edits.dir.gmei-hdfs.namenode1</name>
  <value>qjournal://datacenter01:8485;datacenter02:8485;datacenter03:8485;datacenter04:8485;datacenter05:8485/gmei-hdfs</value>
</property>

<property>
  <name>dfs.journalnode.edits.dir</name>
  <value>/data1/qjm/journaldata</value>
</property>

<property>
  <name>dfs.namenode.rpc-address.gmei-hdfs.namenode1</name>
  <value>datacenter01:8020</value>
</property>

<property>
  <name>dfs.namenode.servicerpc-address.gmei-hdfs.namenode1</name>
  <value>datacenter01:8022</value>
</property>

<property>
  <name>dfs.namenode.http-address.gmei-hdfs.namenode1</name>
  <value>datacenter01:50070</value>
</property>

<property>
  <name>dfs.namenode.https-address.gmei-hdfs.namenode1</name>
  <value>datacenter01:50470</value>
</property>

<property>
  <name>dfs.namenode.name.dir.gmei-hdfs.namenode2</name>
  <value>file:///data1/dfs/nn</value>
</property>

<property>
  <name>dfs.namenode.shared.edits.dir.gmei-hdfs.namenode2</name>
  <value>qjournal://datacenter01:8485;datacenter02:8485;datacenter03:8485;datacenter04:8485;datacenter05:8485/gmei-hdfs</value>
</property>

<property>
    <name>dfs.namenode.rpc-address.gmei-hdfs.namenode2</name>
    <value>datacenter02:8020</value>
</property>

<property>
  <name>dfs.namenode.servicerpc-address.gmei-hdfs.namenode2</name>
  <value>datacenter02:8022</value>
</property>

<property>
  <name>dfs.namenode.http-address.gmei-hdfs.namenode2</name>
  <value>datacenter02:50070</value>
</property>

<property>
  <name>dfs.namenode.https-address.gmei-hdfs.namenode2</name>
  <value>datacenter02:50470</value>
</property>

<property>
  <name>dfs.client.failover.proxy.provider.gmei-hdfs</name>
  <value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</value>
</property>

<property>
  <name>dfs.ha.automatic-failover.enabled.gmei-hdfs</name>
  <value>true</value>
</property>

<property>
  <name>dfs.ha.fencing.methods</name>
  <value>sshfence</value>
</property>

<property>
  <name>dfs.ha.fencing.ssh.private-key-files</name>
  <value>/home/hadoop/.ssh/id_rsa</value>
</property>

<property>
  <name>ha.zookeeper.quorum</name>
  <value>zk-kafka01:2181,zk-kafka02:2181,zk-kafka03:2181</value>
</property>

<property>
  <name>dfs.block.size</name>
  <value>134217728</value>
</property>

<property>
  <name>dfs.replication</name>
  <value>3</value>
</property>

<property>
  <name>dfs.namenode.handler.count</name>
  <value>128</value>
</property>

<property>
  <name>dfs.namenode.service.handler.count</name>
  <value>640</value>
</property>

<property>
  <name>dfs.data.dir</name>
  <value>/data1/dfs/dn,/data2/dfs/dn</value>
</property>

<property>
  <name>dfs.datanode.handler.count</name>
  <value>64</value>
  <description>The number of server threads for the datanode.</description>
</property>

<property>
  <name>dfs.datanode.max.transfer.threads</name>
  <value>8192</value>
</property>

<property>
  <name>dfs.datanode.du.reserved</name>
  <value>53687091200</value>
  <description>reserve 150G per disk for mapreduce</description>
</property>

<property>
  <name>dfs.read.prefetch.size</name>
  <value>1342177280</value>
</property>

<property>
  <name>dfs.hosts.exclude</name>
  <value>${hadoop.home.dir}/etc/hadoop/exclude_slaves</value>
</property>

<property>
  <name>dfs.hosts</name>
  <value>${hadoop.home.dir}/etc/hadoop/slaves</value>
</property>

<property>
  <name>dfs.client.block.write.retries</name>
  <value>5</value>
</property>

<property>
  <name>dfs.datanode.max.xcievers</name>
  <value>4096</value>
</property>

<property>
  <name>dfs.safemode.threshold.pct</name>
  <value>0.999</value>
</property>

<property>
  <name>dfs.blockreport.intervalMsec</name>
  <value>10800000</value>
</property>

<property>
  <name>heartbeat.recheck.interval</name>
  <value>600000</value>
</property>

<property>
  <name>dfs.permissions.superusergroup</name>
  <value>supergroup</value>
</property>

<property>
  <name>dfs.namenode.name.dir.restore</name>
  <value>true</value>
</property>

<property>
  <name>dfs.webhdfs.enabled</name>
  <value>true</value>
</property>

<property>
  <name>dfs.permissions</name>
  <value>true</value>
</property>

<property>
  <name>dfs.namenode.acls.enabled</name>
  <value>true</value>
</property>

<!--
<property>
  <name>dfs.datanode.failed.volumes.tolerated</name>
  <value>1</value>
</property>
-->

<property>
  <name>dfs.datanode.balance.bandwidthPerSec</name>
  <value>67108864</value>
</property>

<property>
  <name>dfs.disk.balancer.enabled</name>
  <value>true</value>
</property>

</configuration>
