HBASE-16045 endtime argument for VerifyReplication was incorrectly specified in 
usage


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

Branch: refs/heads/hbase-12439
Commit: d8902ba0e68ec7bc38a8aa8d212353c380e5d378
Parents: 62a4a2c
Author: tedyu <[email protected]>
Authored: Thu Jun 16 15:50:29 2016 -0700
Committer: tedyu <[email protected]>
Committed: Thu Jun 16 15:50:29 2016 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/mapreduce/replication/VerifyReplication.java  | 6 +++++-
 src/main/asciidoc/_chapters/ops_mgt.adoc                       | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/d8902ba0/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java
----------------------------------------------------------------------
diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java
index 655c71a..f3175fd 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java
@@ -400,6 +400,10 @@ public class VerifyReplication extends Configured 
implements Tool {
           continue;
         }
 
+        if (cmd.startsWith("--")) {
+          printUsage("Invalid argument '" + cmd + "'");
+        }
+
         if (i == args.length-2) {
           peerId = cmd;
         }
@@ -435,7 +439,7 @@ public class VerifyReplication extends Configured 
implements Tool {
       System.err.println("ERROR: " + errorMsg);
     }
     System.err.println("Usage: verifyrep [--starttime=X]" +
-        " [--stoptime=Y] [--families=A] [--row-prefixes=B] <peerid> 
<tablename>");
+        " [--endtime=Y] [--families=A] [--row-prefixes=B] <peerid> 
<tablename>");
     System.err.println();
     System.err.println("Options:");
     System.err.println(" starttime    beginning of the time range");

http://git-wip-us.apache.org/repos/asf/hbase/blob/d8902ba0/src/main/asciidoc/_chapters/ops_mgt.adoc
----------------------------------------------------------------------
diff --git a/src/main/asciidoc/_chapters/ops_mgt.adoc 
b/src/main/asciidoc/_chapters/ops_mgt.adoc
index e7ca940..590854e 100644
--- a/src/main/asciidoc/_chapters/ops_mgt.adoc
+++ b/src/main/asciidoc/_chapters/ops_mgt.adoc
@@ -1384,7 +1384,7 @@ The `VerifyReplication` MapReduce job, which is included 
in HBase, performs a sy
 +
 [source,bash]
 ----
-$ HADOOP_CLASSPATH=`${HBASE_HOME}/bin/hbase classpath` 
"${HADOOP_HOME}/bin/hadoop" jar "${HBASE_HOME}/hbase-server-VERSION.jar" 
verifyrep --starttime=<timestamp> --stoptime=<timestamp> --families=<myFam> 
<ID> <tableName>
+$ HADOOP_CLASSPATH=`${HBASE_HOME}/bin/hbase classpath` 
"${HADOOP_HOME}/bin/hadoop" jar "${HBASE_HOME}/hbase-server-VERSION.jar" 
verifyrep --starttime=<timestamp> --endtime=<timestamp> --families=<myFam> <ID> 
<tableName>
 ----
 +
 The `VerifyReplication` command prints out `GOODROWS` and `BADROWS` counters 
to indicate rows that did and did not replicate correctly.

Reply via email to