Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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.replication</name>
- <value>3</value>
- </property>
- <property>
- <name>dfs.namenode.name.dir</name>
- <value>file:/opt/hadoop-data/hdfs/namenode</value>
- </property>
- <property>
- <name>dfs.datanode.data.dir</name>
- <value>file:/opt/hadoop-data/hdfs/datanode</value>
- </property>
- <property>
- <name>dfs.nameservices</name>
- <value>sidcluster</value>
- </property>
- <property>
- <name>dfs.ha.namenodes.sidcluster</name>
- <value>nn1,nn2</value>
- </property>
- <property>
- <name>dfs.namenode.rpc-address.sidcluster.nn1</name>
- <value>node1.sidbd.cluster:8020</value>
- </property>
- <property>
- <name>dfs.namenode.rpc-address.sidcluster.nn2</name>
- <value>node2.sidbd.cluster:8020</value>
- </property>
- <property>
- <name>dfs.namenode.http-address.sidcluster.nn1</name>
- <value>node1.sidbd.local:50070</value>
- </property>
- <property>
- <name>dfs.namenode.http-address.sidcluster.nn2</name>
- <value>node2.sidbd.local:50070</value>
- </property>
- <property>
- <name>dfs.namenode.shared.edits.dir</name>
- <value>qjournal://node1.sidbd.local:8485;node2.sidbd.local:8485;node3.sidbd.local:8485/sidcluster</value>
- </property>
- <property>
- <name>dfs.journalnode.edits.dir</name>
- <value>/opt/hadoop-data/1/dfs/jn</value>
- </property>
- <property>
- <name>dfs.client.failover.proxy.provider.mycluster</name>
- <value>org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider</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>dfs.ha.namenode.id</name>
- <value>nn1</value>
- </property>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement