From eeb16e4c46f8373afa36faf05e767d277b645e5b Mon Sep 17 00:00:00 2001 From: Balazs Meszaros Date: Tue, 31 Jan 2017 12:11:52 -0800 Subject: [PATCH] HBASE-17197 hfile does not work in 2.0 Files can be specified with -f option or without it. --- .../main/java/org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java index 8c34d77..1710379 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFilePrettyPrinter.java @@ -234,6 +234,9 @@ public class HFilePrettyPrinter extends Configured implements Tool { } mobFileLocations = new HashMap>(); } + + cmd.getArgList().forEach((file) -> files.add(new Path(file))); + return true; } -- 2.10.1 (Apple Git-78)