Handling the "HBase ignores HDFS client configuration" issue
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.
Getting ready
Log ...
Get HBase Administration Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.