bitterfox commented on a change in pull request #3591:
URL: https://github.com/apache/hbase/pull/3591#discussion_r691985755
##########
File path:
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/replication/VerifyReplication.java
##########
@@ -736,6 +740,40 @@ private static void printUsage(final String errorMsg) {
System.err.println(" $ hbase " +
"org.apache.hadoop.hbase.mapreduce.replication.VerifyReplication" +
" --starttime=1265875194289 --endtime=1265878794289 5 TestTable ");
+ System.err.println();
+ System.err.println(" To verify the data in TestTable between the cluster
runs VerifyReplication and cluster-b");
+ System.err.println(" Assume quorum address for cluster-b is
cluster-b-1.example.com,cluster-b-2.example.com,cluster-b-3.example.com:2181:/cluster-b");
+ System.err.println(
+ " $ hbase
org.apache.hadoop.hbase.mapreduce.replication.VerifyReplication \\\n" +
+ "
cluster-b-1.example.com,cluster-b-2.example.com,cluster-b-3.example.com:2181:/cluster-b
\\\n" +
+ " TestTable");
+ System.err.println();
+ System.err.println(" To verify the data in TestTable between the secured
cluster runs VerifyReplication and insecure cluster-b");
+ System.err.println(
+ " $ hbase
org.apache.hadoop.hbase.mapreduce.replication.VerifyReplication \\\n" +
+ " -D verifyrep.peer.hbase.security.authentication=simple \\\n" +
Review comment:
Yes, this is a part of the generic option for the Hadoop tool and isn't
option for Java command itself
https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options
ToolRunner internally process this sort of common options in
GenericOptionsParser
https://github.com/apache/hadoop/blob/07627ef19e2bf4c87f12b53e508edf8fee05856a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java#L50-L112
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]