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
This commit is contained in:
eclark 2013-12-31 21:35:22 +00:00
parent ab5b219cce
commit 2b38282f10
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.DoNotRetryIOException; import org.apache.hadoop.hbase.DoNotRetryIOException;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HRegionInfo; import org.apache.hadoop.hbase.HRegionInfo;
import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.HTableDescriptor;
@ -741,7 +742,7 @@ public final class Canary implements Tool {
} }
public static void main(String[] args) throws Exception { 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); System.exit(exitCode);
} }
} }