<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question HBase Region Replica(Read Replica) doesn't work as expected. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-Region-Replica-Read-Replica-doesn-t-work-as-expected/m-p/62842#M72698</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on enabling the hbase read replica but it turns out to not work as expected.&lt;/P&gt;&lt;P&gt;The hbase version is&amp;nbsp;1.2.0-cdh5.10.0 and I did almost exactlly as described in the following documentation.&lt;/P&gt;&lt;PRE&gt;https://www.cloudera.com/documentation/enterprise/5-10-x/topics/admin_hbase_read_replicas.html&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things go well except that I cannot get the right value from secondary region replicas after I put a new row. It seems that the WAL replication doesn't work when data is put into the primary replica and all other replicas remain empty(I put the data, waited for 1 hour, and got nothing).&lt;/P&gt;&lt;PRE&gt;hbase(main):012:0&amp;gt; put 'myTable', 'r2', 'myCF:c', 'v2'
0 row(s) in 0.0850 seconds

hbase(main):013:0&amp;gt; get 'myTable', 'r2', {CONSISTENCY =&amp;gt; 'TIMELINE', REGION_REPLICA_ID =&amp;gt; 2}
COLUMN                                           CELL                                                                                                                                          
&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;0 row(s) in 0.0070 seconds&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;hbase(main):020:0&amp;gt; !desc 'myTable'&lt;BR /&gt;Table myTable is ENABLED &lt;BR /&gt;myTable, {TABLE_ATTRIBUTES =&amp;gt; {REGION_REPLICATION =&amp;gt; '3'} &lt;BR /&gt;COLUMN FAMILIES DESCRIPTION &lt;BR /&gt;{NAME =&amp;gt; 'myCF', BLOOMFILTER =&amp;gt; 'ROW', VERSIONS =&amp;gt; '1', IN_MEMORY =&amp;gt; 'false', KEEP_DELETED_CELLS =&amp;gt; 'FALSE', DATA_BLOCK_ENCODING =&amp;gt; 'NONE', TTL =&amp;gt; 'FOREVER', COMPRESSION =&amp;gt; 'NONE', MIN_VERSIO&lt;BR /&gt;NS =&amp;gt; '0', BLOCKCACHE =&amp;gt; 'true', BLOCKSIZE =&amp;gt; '65536', REPLICATION_SCOPE =&amp;gt; '0'}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is my configuration&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.regionserver.storefile.refresh.period&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;30000&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.ipc.client.allowsInterrupt&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
&amp;lt;description&amp;gt;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. &amp;lt;/description&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.client.primaryCallTimeout.get&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;10&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.client.primaryCallTimeout.multiget&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;10&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.region.replica.wait.for.primary.flush&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;false&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.region.replica.replication.memstore.enabled&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;hbase.region.replica.replication.enabled&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;hbase.replication&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Per the CDH documentation, the writes should be replicated to secondary replicas by hbase replication feature but it didn't.&amp;nbsp;A peer named '&lt;SPAN&gt;region_replica_replication&lt;/SPAN&gt;' is not found for replication.&lt;/P&gt;&lt;P&gt;I didn't find a way to set&amp;nbsp;&lt;SPAN&gt;REGION_MEMSTORE_REPLICATION to false as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please kindly share your thoughts to me. Any inputs will be helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 12:38:56 GMT</pubDate>
    <dc:creator>Ryan</dc:creator>
    <dc:date>2022-09-16T12:38:56Z</dc:date>
    <item>
      <title>HBase Region Replica(Read Replica) doesn't work as expected.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-Region-Replica-Read-Replica-doesn-t-work-as-expected/m-p/62842#M72698</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on enabling the hbase read replica but it turns out to not work as expected.&lt;/P&gt;&lt;P&gt;The hbase version is&amp;nbsp;1.2.0-cdh5.10.0 and I did almost exactlly as described in the following documentation.&lt;/P&gt;&lt;PRE&gt;https://www.cloudera.com/documentation/enterprise/5-10-x/topics/admin_hbase_read_replicas.html&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Things go well except that I cannot get the right value from secondary region replicas after I put a new row. It seems that the WAL replication doesn't work when data is put into the primary replica and all other replicas remain empty(I put the data, waited for 1 hour, and got nothing).&lt;/P&gt;&lt;PRE&gt;hbase(main):012:0&amp;gt; put 'myTable', 'r2', 'myCF:c', 'v2'
0 row(s) in 0.0850 seconds

hbase(main):013:0&amp;gt; get 'myTable', 'r2', {CONSISTENCY =&amp;gt; 'TIMELINE', REGION_REPLICA_ID =&amp;gt; 2}
COLUMN                                           CELL                                                                                                                                          
&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;0 row(s) in 0.0070 seconds&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;hbase(main):020:0&amp;gt; !desc 'myTable'&lt;BR /&gt;Table myTable is ENABLED &lt;BR /&gt;myTable, {TABLE_ATTRIBUTES =&amp;gt; {REGION_REPLICATION =&amp;gt; '3'} &lt;BR /&gt;COLUMN FAMILIES DESCRIPTION &lt;BR /&gt;{NAME =&amp;gt; 'myCF', BLOOMFILTER =&amp;gt; 'ROW', VERSIONS =&amp;gt; '1', IN_MEMORY =&amp;gt; 'false', KEEP_DELETED_CELLS =&amp;gt; 'FALSE', DATA_BLOCK_ENCODING =&amp;gt; 'NONE', TTL =&amp;gt; 'FOREVER', COMPRESSION =&amp;gt; 'NONE', MIN_VERSIO&lt;BR /&gt;NS =&amp;gt; '0', BLOCKCACHE =&amp;gt; 'true', BLOCKSIZE =&amp;gt; '65536', REPLICATION_SCOPE =&amp;gt; '0'}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is my configuration&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.regionserver.storefile.refresh.period&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;30000&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.ipc.client.allowsInterrupt&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
&amp;lt;description&amp;gt;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. &amp;lt;/description&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.client.primaryCallTimeout.get&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;10&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.client.primaryCallTimeout.multiget&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;10&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.region.replica.wait.for.primary.flush&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;false&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;hbase.region.replica.replication.memstore.enabled&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;hbase.region.replica.replication.enabled&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;property&amp;gt;&lt;BR /&gt; &amp;lt;name&amp;gt;hbase.replication&amp;lt;/name&amp;gt;&lt;BR /&gt; &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Per the CDH documentation, the writes should be replicated to secondary replicas by hbase replication feature but it didn't.&amp;nbsp;A peer named '&lt;SPAN&gt;region_replica_replication&lt;/SPAN&gt;' is not found for replication.&lt;/P&gt;&lt;P&gt;I didn't find a way to set&amp;nbsp;&lt;SPAN&gt;REGION_MEMSTORE_REPLICATION to false as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please kindly share your thoughts to me. Any inputs will be helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:38:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-Region-Replica-Read-Replica-doesn-t-work-as-expected/m-p/62842#M72698</guid>
      <dc:creator>Ryan</dc:creator>
      <dc:date>2022-09-16T12:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: HBase Region Replica(Read Replica) doesn't work as expected.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-Region-Replica-Read-Replica-doesn-t-work-as-expected/m-p/62845#M72699</link>
      <description>&lt;P&gt;Finally I found the root cause myself.&lt;/P&gt;&lt;P&gt;I just checked the checkbox which is only applied to region server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Enable Replication To Secondary Region Replicas 
hbase.region.replica.replication.enabled&lt;/PRE&gt;&lt;P&gt;It should be a defect of Cloudera Manager because this configuration is required by HMaster as well. It works when I add this configuration into 'Master Default Group / Advanced'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Sun, 17 Dec 2017 14:32:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HBase-Region-Replica-Read-Replica-doesn-t-work-as-expected/m-p/62845#M72699</guid>
      <dc:creator>Ryan</dc:creator>
      <dc:date>2017-12-17T14:32:33Z</dc:date>
    </item>
  </channel>
</rss>

