Configure read replicas using Cloudera Manager
You can configure read replicas using Cloudera Manager.
-
Before you can use replication to keep replicas current, you must set the
column attribute
REGION_MEMSTORE_REPLICATION
tofalse
for the HBase table, using HBase Shell or the client API. - In Cloudera Manager, select the HBase service.
- Click the Configuration tab.
- Select Scope > HBase or HBase Service-Wide.
- Select Category > Advanced.
- Locate the HBase Service Advanced Configuration Snippet (Safety Valve) for hbase-site.xml property or search for it by typing its name in the Search box.
-
Create a configuration and paste it into the text field. The following example
configuration demonstrates the syntax:
<property> <name>hbase.regionserver.storefile.refresh.period</name> <value>0</value> </property> <property> <name>hbase.ipc.client.allowsInterrupt</name> <value>true</value> <description>Whether to enable interruption of RPC threads at the client. The default value of true is required to enable Primary RegionServers to access other RegionServers in secondary mode. </description> </property> <property> <name>hbase.client.primaryCallTimeout.get</name> <value>10</value> </property> <property> <name>hbase.client.primaryCallTimeout.multiget</name> <value>10</value> </property>
- Click Save Changes to commit the changes.
- Restart the HBase service.