hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zg...@apache.org
Subject hbase git commit: HBASE-18626 Handle the incompatible change about the replication TableCFs' config
Date Sat, 02 Dec 2017 00:59:33 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.4 fd1f62079 -> 0e930bdd5


HBASE-18626 Handle the incompatible change about the replication TableCFs' config


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/0e930bdd
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/0e930bdd
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/0e930bdd

Branch: refs/heads/branch-1.4
Commit: 0e930bdd516b69fb0b87be1c6082f8b5f365489a
Parents: fd1f620
Author: Guanghao Zhang <zghao@apache.org>
Authored: Sat Nov 18 15:33:08 2017 +0800
Committer: Guanghao Zhang <zghao@apache.org>
Committed: Sat Dec 2 08:59:00 2017 +0800

----------------------------------------------------------------------
 src/main/asciidoc/_chapters/upgrading.adoc | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/0e930bdd/src/main/asciidoc/_chapters/upgrading.adoc
----------------------------------------------------------------------
diff --git a/src/main/asciidoc/_chapters/upgrading.adoc b/src/main/asciidoc/_chapters/upgrading.adoc
index 9c02210..4256e47 100644
--- a/src/main/asciidoc/_chapters/upgrading.adoc
+++ b/src/main/asciidoc/_chapters/upgrading.adoc
@@ -175,6 +175,26 @@ In the minor version-particular sections below, we call out where the
versions a
 
 == Upgrade Paths
 
+[[upgrade1.4]]
+=== Upgrading to 1.4+
+
+==== Replication peer's TableCFs config
+
+Before 1.4, the table name can't include namespace for replication peer's TableCFs config.
It was fixed by add TableCFs to ReplicationPeerConfig which was stored on Zookeeper. So when
upgrade to 1.4, you have to update the original ReplicationPeerConfig data on Zookeeper firstly.
There are four steps to upgrade when your cluster have a replication peer with TableCFs config.
+
+* Disable the replication peer.
+* If master has permission to write replication peer znode, then rolling update master directly.
If not, use TableCFsUpdater tool to update the replication peer's config.
+[source,bash]
+----
+$ bin/hbase org.apache.hadoop.hbase.replication.master.TableCFsUpdater update
+----
+* Rolling update regionservers.
+* Enable the replication peer.
+
+Notes:
+
+* Can't use the old client(before 1.4) to change the replication peer's config. Because the
client will write config to Zookeeper directly, the old client will miss TableCFs config.
And the old client write TableCFs config to the old tablecfs znode, it will not work for new
version regionserver.
+
 [[upgrade1.0]]
 === Upgrading from 0.98.x to 1.x
 


Mime
View raw message