About hdfs site.xml - mikec964/chelmbigstock GitHub Wiki
You can find the docs for this here: https://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml
There are several differences between the 1.2.1 and 2.6.0 versions of this file:
- dfs.blocksize becomes dfs.block.size
- dfs.name.dir becomes dfs.namenode.name.dir
- dfs.data.dir becomes dfs.datanode.data.dir
<?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. -->
<!-- https://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-hdfs/hdfs-default.xml -->
<!-- You can replace r2.6.0 with the keyword stable -->
<configuration>
<!-- Use 3 for a cluster, 1 for psuedo-distributed. Default 3. -->
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<!-- NameNode blocks -->
<!-- Hadoop 1.2: dfs.name.dir Created with bin/hadoop namenode -format -->
<!-- Hadoop 2.6: dfs.namenode.name.dir Created with bin/hdfs namenode -format -->
<!-- <property>
<name>dfs.namenode.name.dir</name>
<value>file:///Users/hadoop/hadoop/dfs2name</value>
</property>
-->
<!-- DataNode blocks -->
<!-- Hadoop 1.2: dfs.data.dir Created with bin/start-all.sh -->
<!-- Hadoop 2.6: dfs.datanode.data.dir Created with sbin/start-dfs.sh -->
<!-- <property>
<name>dfs.datanode.data.dir</name>
<value>file:///Users/hadoop/hadoop/dfs2data</value>
</property>
-->
<!-- Block size.
Hadoop 1.2: Use dfs.block.size
Hadoop 2.x: Use dfs.blocksize
4194304 = 4MB
67108864 = 64MB
134217728 = 128MB (default)
268435456 = 256MB
-->
<property>
<name>dfs.blocksize</name>
<value>4194304</value>
</property>
</configuration>