[
https://issues.apache.org/jira/browse/HBASE-2976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stack resolved HBASE-2976.
--------------------------
Assignee: stack
Resolution: Fixed
Committed small patch. Added a bit of doc to the hbase book too on the hfile
tool. Resolving.
> Running HFile tool passing fully-qualified filename I get
> 'IllegalArgumentException: Wrong FS'
> ----------------------------------------------------------------------------------------------
>
> Key: HBASE-2976
> URL: https://issues.apache.org/jira/browse/HBASE-2976
> Project: HBase
> Issue Type: Bug
> Reporter: stack
> Assignee: stack
> Fix For: 0.90.0
>
>
> This fixes it:
> {code}
> diff --git a/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java
> b/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java
> index 65cbb9d..3966108 100644
> --- a/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java
> +++ b/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java
> @@ -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")) {
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.