hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r1243759 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java
Date Tue, 14 Feb 2012 01:13:33 GMT
Author: jdcryans
Date: Tue Feb 14 01:13:33 2012
New Revision: 1243759

URL: http://svn.apache.org/viewvc?rev=1243759&view=rev
Log:
HBASE-5395  CopyTable needs to use GenericOptionsParser

Modified:
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java?rev=1243759&r1=1243758&r2=1243759&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java (original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/CopyTable.java Tue Feb 14
01:13:33 2012
@@ -25,6 +25,7 @@ import org.apache.hadoop.hbase.HConstant
 import org.apache.hadoop.hbase.util.Bytes;
 import org.apache.hadoop.hbase.client.Scan;
 import org.apache.hadoop.mapreduce.Job;
+import org.apache.hadoop.util.GenericOptionsParser;
 
 import java.io.IOException;
 import java.util.HashMap;
@@ -234,7 +235,9 @@ public class CopyTable {
    */
   public static void main(String[] args) throws Exception {
     Configuration conf = HBaseConfiguration.create();
-    Job job = createSubmittableJob(conf, args);
+    String[] otherArgs =
+      new GenericOptionsParser(conf, args).getRemainingArgs();
+    Job job = createSubmittableJob(conf, otherArgs);
     if (job != null) {
       System.exit(job.waitForCompletion(true) ? 0 : 1);
     }



Mime
View raw message