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