Author: stack
Date: Thu Sep 9 16:41:02 2010
New Revision: 995486
URL: http://svn.apache.org/viewvc?rev=995486&view=rev
Log:
Running HFile tool passing fully-qualified filename I get
'IllegalArgumentException: Wrong FS'
Modified:
hbase/trunk/CHANGES.txt
hbase/trunk/src/docbkx/book.xml
hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java
Modified: hbase/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=995486&r1=995485&r2=995486&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Thu Sep 9 16:41:02 2010
@@ -897,6 +897,8 @@ Release 0.21.0 - Unreleased
(Lars Francke via Stack)
HBASE-2942 Custom filters should not require registration in
HBaseObjectWritable (Gary Helmling via Andrew Purtell)
+ HBASE-2976 Running HFile tool passing fully-qualified filename I get
+ 'IllegalArgumentException: Wrong FS'
NEW FEATURES
HBASE-1961 HBase EC2 scripts
Modified: hbase/trunk/src/docbkx/book.xml
URL:
http://svn.apache.org/viewvc/hbase/trunk/src/docbkx/book.xml?rev=995486&r1=995485&r2=995486&view=diff
==============================================================================
--- hbase/trunk/src/docbkx/book.xml (original)
+++ hbase/trunk/src/docbkx/book.xml Thu Sep 9 16:41:02 2010
@@ -32,6 +32,38 @@
<para>First...</para>
</section>
</chapter>
+ <chapter xml:id="filesystem">
+ <title>Filesystem Format</title>
+ <subtitle>How HBase persists to the target Filesystem</subtitle>
+
+ <section>
+ <title>HFile</title>
+ <section>
+ <title>HFile Tool</title>
+ <para>To view a textualized version of hfile content, you can do use
+ the
+ <classname>org.apache.hadoop.hbase.io.hfile.HFile
+ </classname>
+ tool. Type the following to see usage:
+ <code>
+ $ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile
+ </code>
+ For example, to view the content of the file
+
<filename>hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475
+ </filename>, type the following:
+ <code>
+ $ ${HBASE_HOME}/bin/hbase org.apache.hadoop.hbase.io.hfile.HFile -v -f
+hdfs://10.81.47.41:9000/hbase/TEST/1418428042/DSMP/4759508618286845475
+ </code>
+ If you leave off the option -v to see just a summary on the hfile.
+ See usage for other things to do with the <classname>HFile</classname>
tool.
+ </para>
+
+
+ </section>
+
+ </section>
+ </chapter>
<chapter>
<title>Regions</title>
Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java
URL:
http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java?rev=995486&r1=995485&r2=995486&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java
(original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java Thu
Sep 9 16:41:02 2010
@@ -1826,6 +1826,8 @@ public class HFile {
Configuration conf = HBaseConfiguration.create();
conf.set("fs.defaultFS",
conf.get(org.apache.hadoop.hbase.HConstants.HBASE_DIR));
+ conf.set("fs.default.name",
+ conf.get(org.apache.hadoop.hbase.HConstants.HBASE_DIR));
FileSystem fs = FileSystem.get(conf);
ArrayList<Path> files = new ArrayList<Path>();
if (cmd.hasOption("f")) {