Skip to content
Browse files

ACCUMULO-703 applying patch to add rfile-info command

git-svn-id: https://svn.apache.org/repos/asf/accumulo/trunk@1366037 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent cc20988 commit 3379c0292a5500baa00ec844834eff990709c862 @keith-turner keith-turner committed Jul 26, 2012
Showing with 5 additions and 3 deletions.
  1. +2 −2 docs/examples/README.bloom
  2. +3 −1 start/src/main/java/org/apache/accumulo/start/Main.java
View
4 docs/examples/README.bloom
@@ -186,10 +186,10 @@ table has in HDFS. This assumes Accumulo is at the default location in HDFS.
-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
View
4 start/src/main/java/org/apache/accumulo/start/Main.java
@@ -61,6 +61,8 @@ public static void main(String[] args) throws Exception {
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 void run() {
}
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");
}
}

0 comments on commit 3379c02

Please sign in to comment.
Something went wrong with that request. Please try again.