Creating Highly Available HBase Tables with the HBase Shell
Create HA tables using the HBase shell using the REGION_REPLICATION
keyword.
HBase Shell
Valid values are 1
, 2
, and 3
, indicating the
total number of copies. The default value is 1
.
The following example creates a table named t1
that is replicated to one secondary replica:
CREATE 't1', 'f1', {REGION_REPLICATION => 2}
To replicate t1
to two secondary regions, set REGION_REPLICATION
to 3:
CREATE 't1', 'f1', {REGION_REPLICATION => 3}