Hi,
   I am trying use Phoenix to put data, and seems hbase replication can not
work. Below is my detail steps I followed. BTW, I am using hbase 1.2.4 and
phoenix 4.6

(1) Enable HBase replication, like setting hbase.replication=true.
//HBase replication works fine without Phoenix after step (1)

(2) Change WALCellCodec to IndexedWALEditCodec in hbase-site.xml on both
source and destination cluster
(3) Using Phoenix create command to create same table on both source and
destination cluster, (Notice that I just create a normal table, and did not
create index on this table)
(4) Run Add_peers  to add destination as replication peers in source
cluster hbase shell
(5) For the table created in Phoenix, alter its replication_scope in hbase
shell to enable its replication.
(6) Using UPSERT command in Phoenix to put data.
//After step (2) to (4), the data only inserted into source cluster, but
not into destination cluster

(7) Change IndexedWALEditCodec back to WALCellCodec,
//the replication works fine now, the data UPSERT at source phoenix now
replicated to destination cluster.

So, I guess there might be more configuration I need to do, or the
IndexedWALEditCodec may break the replication.

Thanks

Yi

Reply via email to