You may have noticed that HBase ignores your HDFS client configuration, for example the dfs.replication
setting. In the following example, we have set a replication factor of 2
for our HDFS client:
$ grep -A 1 "dfs.replication" $HADOOP_HOME/conf/hdfs-site.xml
<name>dfs.replication</name>
<value>2</value>
However, the HBase files on HDFS show a factor of 3
, which is the default replication factor of HDFS:
This is not what we expected—the replication factor was expected to be 2, but the actual value is 3.
We will describe why this happens and how to fix it, in this recipe.