hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ecl...@apache.org
Subject svn commit: r1465699 - /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/util/CompressionTest.java
Date Mon, 08 Apr 2013 18:12:49 GMT
Author: eclark
Date: Mon Apr  8 18:12:49 2013
New Revision: 1465699

URL: http://svn.apache.org/r1465699
Log:
HBASE-8254 Add lz4 to test compression util usage string

Modified:
    hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/util/CompressionTest.java

Modified: hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/util/CompressionTest.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/util/CompressionTest.java?rev=1465699&r1=1465698&r2=1465699&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/util/CompressionTest.java
(original)
+++ hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/util/CompressionTest.java
Mon Apr  8 18:12:49 2013
@@ -18,8 +18,11 @@
  */
 package org.apache.hadoop.hbase.util;
 
+import java.awt.*;
 import java.io.IOException;
+import java.util.Arrays;
 
+import org.apache.commons.lang.StringUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.hadoop.classification.InterfaceAudience;
@@ -96,8 +99,10 @@ public class CompressionTest {
   protected static Path path = new Path(".hfile-comp-test");
 
   public static void usage() {
+
     System.err.println(
-      "Usage: CompressionTest <path> none|gz|lzo|snappy\n" +
+      "Usage: CompressionTest <path> " +
+      StringUtils.join( Compression.Algorithm.values(), "|").toLowerCase() +
       "\n" +
       "For example:\n" +
       "  hbase " + CompressionTest.class + " file:///tmp/testfile gz\n");



Mime
View raw message