From 2b38282f10b9fe88e3827eef3df5e81967c75bbc Mon Sep 17 00:00:00 2001 From: eclark Date: Tue, 31 Dec 2013 21:35:22 +0000 Subject: [PATCH] HBASE-10260 Canary Doesn't pick up Configuration properly. git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1554570 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/hadoop/hbase/tool/Canary.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java index 3f3dfd32faa..2a3b229d6c8 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/Canary.java @@ -35,6 +35,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.DoNotRetryIOException; +import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HRegionInfo; import org.apache.hadoop.hbase.HTableDescriptor; @@ -741,7 +742,7 @@ public final class Canary implements Tool { } public static void main(String[] args) throws Exception { - int exitCode = ToolRunner.run(new Canary(), args); + int exitCode = ToolRunner.run(HBaseConfiguration.create(), new Canary(), args); System.exit(exitCode); } }