From 670bc625b2e1799ae53433ff4ba927ac458f2ace Mon Sep 17 00:00:00 2001 From: Andrew Kyle Purtell Date: Mon, 21 Oct 2013 19:57:08 +0000 Subject: [PATCH] HBASE-9716. LoadTestTool should provide default min and max settings to the data generator git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1534352 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/java/org/apache/hadoop/hbase/util/LoadTestTool.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java index 37682cb0263..ff2e93b4de2 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/util/LoadTestTool.java @@ -62,6 +62,9 @@ public class LoadTestTool extends AbstractHBaseTool { /** Column families used by the test */ protected static final byte[][] COLUMN_FAMILIES = { COLUMN_FAMILY }; + /** The default data size if not specified */ + protected static final int DEFAULT_DATA_SIZE = 64; + /** The number of reader/writer threads if not specified */ protected static final int DEFAULT_NUM_THREADS = 20; @@ -150,7 +153,7 @@ public class LoadTestTool extends AbstractHBaseTool { // Writer options protected int numWriterThreads = DEFAULT_NUM_THREADS; protected int minColsPerKey, maxColsPerKey; - protected int minColDataSize, maxColDataSize; + protected int minColDataSize = DEFAULT_DATA_SIZE, maxColDataSize = DEFAULT_DATA_SIZE; protected boolean isMultiPut; // Updater options