accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject svn commit: r1366037 - in /accumulo/trunk: docs/examples/README.bloom start/src/main/java/org/apache/accumulo/start/Main.java
Date Thu, 26 Jul 2012 15:13:56 GMT
Author: kturner
Date: Thu Jul 26 15:13:56 2012
New Revision: 1366037

URL: http://svn.apache.org/viewvc?rev=1366037&view=rev
Log:
ACCUMULO-703 applying patch to add rfile-info command

Modified:
    accumulo/trunk/docs/examples/README.bloom
    accumulo/trunk/start/src/main/java/org/apache/accumulo/start/Main.java

Modified: accumulo/trunk/docs/examples/README.bloom
URL: http://svn.apache.org/viewvc/accumulo/trunk/docs/examples/README.bloom?rev=1366037&r1=1366036&r2=1366037&view=diff
==============================================================================
--- accumulo/trunk/docs/examples/README.bloom (original)
+++ accumulo/trunk/docs/examples/README.bloom Thu Jul 26 15:13:56 2012
@@ -186,10 +186,10 @@ table has in HDFS.  This assumes Accumul
     -rw-r--r--   3 username supergroup   52436176 2012-01-10 14:01 /accumulo/tables/o8/default_tablet/F00000dk.rf
     -rw-r--r--   3 username supergroup   52850173 2012-01-10 14:02 /accumulo/tables/o8/default_tablet/F00000dl.rf
 
-Running the PrintInfo command shows that one of the files has a bloom filter
+Running the rfile-info command shows that one of the files has a bloom filter
 and its 1.5MB.
 
-    $ ./bin/accumulo org.apache.accumulo.core.file.rfile.PrintInfo /accumulo/tables/o8/default_tablet/F00000dj.rf
+    $ ./bin/accumulo rfile-info /accumulo/tables/o8/default_tablet/F00000dj.rf
     Locality group         : <DEFAULT>
 	Start block          : 0
 	Num   blocks         : 752

Modified: accumulo/trunk/start/src/main/java/org/apache/accumulo/start/Main.java
URL: http://svn.apache.org/viewvc/accumulo/trunk/start/src/main/java/org/apache/accumulo/start/Main.java?rev=1366037&r1=1366036&r2=1366037&view=diff
==============================================================================
--- accumulo/trunk/start/src/main/java/org/apache/accumulo/start/Main.java (original)
+++ accumulo/trunk/start/src/main/java/org/apache/accumulo/start/Main.java Thu Jul 26 15:13:56
2012
@@ -61,6 +61,8 @@ public class Main {
         runTMP = AccumuloClassLoader.loadClass("org.apache.accumulo.core.Constants");
         System.out.println(runTMP.getField("VERSION").get(null));
         return;
+      } else if (args[0].equals("rfile-info") ) {
+        runTMP = AccumuloClassLoader.loadClass("org.apache.accumulo.core.file.rfile.PrintInfo");
       } else {
         try {
           runTMP = AccumuloClassLoader.loadClass(args[0]);
@@ -103,6 +105,6 @@ public class Main {
   }
   
   private static void printUsage() {
-    System.out.println("accumulo init | master | tserver | logger | monitor | shell | admin
| gc | classpath | <accumulo class> args");
+    System.out.println("accumulo init | master | tserver | logger | monitor | shell | admin
| gc | classpath | rfile-info | <accumulo class> args");
   }
 }



Mime
View raw message