You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2011/02/06 06:45:45 UTC

svn commit: r1067596 - in /hbase/branches/0.90: CHANGES.txt src/main/javadoc/org/apache/hadoop/hbase/replication/package.html src/site/xdoc/replication.xml

Author: stack
Date: Sun Feb  6 05:45:45 2011
New Revision: 1067596

URL: http://svn.apache.org/viewvc?rev=1067596&view=rev
Log:
HBASE-3500 Documentation update for replication

Modified:
    hbase/branches/0.90/CHANGES.txt
    hbase/branches/0.90/src/main/javadoc/org/apache/hadoop/hbase/replication/package.html
    hbase/branches/0.90/src/site/xdoc/replication.xml

Modified: hbase/branches/0.90/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/CHANGES.txt?rev=1067596&r1=1067595&r2=1067596&view=diff
==============================================================================
--- hbase/branches/0.90/CHANGES.txt (original)
+++ hbase/branches/0.90/CHANGES.txt Sun Feb  6 05:45:45 2011
@@ -20,6 +20,7 @@ Release 0.90.1 - Unreleased
    HBASE-3502  Can't open region because can't open .regioninfo because
                AlreadyBeingCreatedException
    HBASE-3501  Remove the deletion limit in LogCleaner
+   HBASE-3500  Documentation update for replicatio
 
 
   IMPROVEMENTS

Modified: hbase/branches/0.90/src/main/javadoc/org/apache/hadoop/hbase/replication/package.html
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/javadoc/org/apache/hadoop/hbase/replication/package.html?rev=1067596&r1=1067595&r2=1067596&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/javadoc/org/apache/hadoop/hbase/replication/package.html (original)
+++ hbase/branches/0.90/src/main/javadoc/org/apache/hadoop/hbase/replication/package.html Sun Feb  6 05:45:45 2011
@@ -92,6 +92,7 @@ to another.
   <name>hbase.replication</name>
   <value>true</value>
 &lt;/property&gt;</pre>
+      deploy the files, and then restart HBase if it was running.
     </li>
     <li>Run the following command in the master's shell while it's running
     <pre>add_peer</pre>
@@ -100,6 +101,18 @@ to another.
     to use a different <b>zookeeper.znode.parent</b> since they can't
     write in the same folder.
     </li>
+    <li>
+    Once you have a peer, you need to enable replication on your column families.
+    One way to do it is to alter the table and to set the scope like this:
+    <pre>
+      disable 'your_table'
+      alter 'your_table', {NAME => 'family_name', REPLICATION_SCOPE => '1'}
+      enable 'your_table'
+    </pre>
+    Currently, a scope of 0 (default) means that it won't be replicated and a
+    scope of 1 means it's going to be. In the future, different scope can be
+    used for routing policies.
+    </li>
 </ol>
 
 You can confirm that your setup works by looking at any region server's log

Modified: hbase/branches/0.90/src/site/xdoc/replication.xml
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/site/xdoc/replication.xml?rev=1067596&r1=1067595&r2=1067596&view=diff
==============================================================================
--- hbase/branches/0.90/src/site/xdoc/replication.xml (original)
+++ hbase/branches/0.90/src/site/xdoc/replication.xml Sun Feb  6 05:45:45 2011
@@ -43,7 +43,10 @@
         other well known solutions like MySQL master/slave replication where
         there’s only one bin log to keep track of. One master cluster can
         replicate to any number of slave clusters, and each region server will
-        participate to replicate their own stream of edits.
+        participate to replicate their own stream of edits. For more information
+        on the different properties of master/slave replication and other types
+        of replication, please consult <a href="http://highscalability.com/blog/2009/8/24/how-google-serves-data-from-multiple-datacenters.html">
+        How Google Serves Data From Multiple Datacenters</a>.
       </p>
       <p>
         The replication is done asynchronously, meaning that the clusters can
@@ -73,6 +76,17 @@
       </p>
       <img src="images/replication_overview.png"/>
     </section>
+    <section name="Enabling replication">
+      <p>
+        The guide on enabling and using cluster replication is contained
+        in the API documentation shipped with your HBase distribution.
+      </p>
+      <p>
+        The most up-to-date documentation is
+        <a href="apidocs/org/apache/hadoop/hbase/replication/package-summary.html#requirements">
+        available at this address</a>.
+      </p>
+    </section>
     <section name="Life of a log edit">
       <p>
         The following sections describe the life of a single edit going from a
@@ -350,15 +364,6 @@
       </section>
     </section>
     <section name="FAQ">
-      <section name="Why do all clusters need to be in the same timezone?">
-        <p>
-          Suppose an edit to cell X happens in a EST cluster, then 2 minutes
-          later a new edits happens to the same cell in a PST cluster and that
-          both clusters are in a master-master replication. The second edit is
-          considered younger, so the first will always hide it while in fact the
-          second is older.
-        </p>
-      </section>
       <section name="GLOBAL means replicate? Any provision to replicate only to cluster X and not to cluster Y? or is that for later?">
         <p>
           Yes, this is for much later.