hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [02/43] hbase-site git commit: Published site at 7ab77518a2569e2416a50020393aa386e7734501.
Date Sat, 22 Sep 2018 14:51:05 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/bbe517ae/testdevapidocs/src-html/org/apache/hadoop/hbase/util/LoadTestTool.WorkerThread.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/util/LoadTestTool.WorkerThread.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/util/LoadTestTool.WorkerThread.html
index c598165..fe5e7d2 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/util/LoadTestTool.WorkerThread.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/util/LoadTestTool.WorkerThread.html
@@ -127,834 +127,852 @@
 <span class="sourceLineNo">119</span>  protected static final String OPT_VERBOSE = "verbose";<a name="line.119"></a>
 <span class="sourceLineNo">120</span><a name="line.120"></a>
 <span class="sourceLineNo">121</span>  public static final String OPT_BLOOM = "bloom";<a name="line.121"></a>
-<span class="sourceLineNo">122</span>  public static final String OPT_COMPRESSION = "compression";<a name="line.122"></a>
-<span class="sourceLineNo">123</span>  public static final String OPT_DEFERRED_LOG_FLUSH = "deferredlogflush";<a name="line.123"></a>
-<span class="sourceLineNo">124</span>  public static final String OPT_DEFERRED_LOG_FLUSH_USAGE = "Enable deferred log flush.";<a name="line.124"></a>
-<span class="sourceLineNo">125</span><a name="line.125"></a>
-<span class="sourceLineNo">126</span>  public static final String OPT_INMEMORY = "in_memory";<a name="line.126"></a>
-<span class="sourceLineNo">127</span>  public static final String OPT_USAGE_IN_MEMORY = "Tries to keep the HFiles of the CF " +<a name="line.127"></a>
-<span class="sourceLineNo">128</span>      "inmemory as far as possible.  Not guaranteed that reads are always served from inmemory";<a name="line.128"></a>
-<span class="sourceLineNo">129</span><a name="line.129"></a>
-<span class="sourceLineNo">130</span>  public static final String OPT_GENERATOR = "generator";<a name="line.130"></a>
-<span class="sourceLineNo">131</span>  public static final String OPT_GENERATOR_USAGE = "The class which generates load for the tool."<a name="line.131"></a>
-<span class="sourceLineNo">132</span>      + " Any args for this class can be passed as colon separated after class name";<a name="line.132"></a>
-<span class="sourceLineNo">133</span><a name="line.133"></a>
-<span class="sourceLineNo">134</span>  public static final String OPT_WRITER = "writer";<a name="line.134"></a>
-<span class="sourceLineNo">135</span>  public static final String OPT_WRITER_USAGE = "The class for executing the write requests";<a name="line.135"></a>
-<span class="sourceLineNo">136</span><a name="line.136"></a>
-<span class="sourceLineNo">137</span>  public static final String OPT_UPDATER = "updater";<a name="line.137"></a>
-<span class="sourceLineNo">138</span>  public static final String OPT_UPDATER_USAGE = "The class for executing the update requests";<a name="line.138"></a>
-<span class="sourceLineNo">139</span><a name="line.139"></a>
-<span class="sourceLineNo">140</span>  public static final String OPT_READER = "reader";<a name="line.140"></a>
-<span class="sourceLineNo">141</span>  public static final String OPT_READER_USAGE = "The class for executing the read requests";<a name="line.141"></a>
-<span class="sourceLineNo">142</span><a name="line.142"></a>
-<span class="sourceLineNo">143</span>  protected static final String OPT_KEY_WINDOW = "key_window";<a name="line.143"></a>
-<span class="sourceLineNo">144</span>  protected static final String OPT_WRITE = "write";<a name="line.144"></a>
-<span class="sourceLineNo">145</span>  protected static final String OPT_MAX_READ_ERRORS = "max_read_errors";<a name="line.145"></a>
-<span class="sourceLineNo">146</span>  public static final String OPT_MULTIPUT = "multiput";<a name="line.146"></a>
-<span class="sourceLineNo">147</span>  public static final String OPT_MULTIGET = "multiget_batchsize";<a name="line.147"></a>
-<span class="sourceLineNo">148</span>  protected static final String OPT_NUM_KEYS = "num_keys";<a name="line.148"></a>
-<span class="sourceLineNo">149</span>  protected static final String OPT_READ = "read";<a name="line.149"></a>
-<span class="sourceLineNo">150</span>  protected static final String OPT_START_KEY = "start_key";<a name="line.150"></a>
-<span class="sourceLineNo">151</span>  public static final String OPT_TABLE_NAME = "tn";<a name="line.151"></a>
-<span class="sourceLineNo">152</span>  public static final String OPT_COLUMN_FAMILIES = "families";<a name="line.152"></a>
-<span class="sourceLineNo">153</span>  protected static final String OPT_ZK_QUORUM = "zk";<a name="line.153"></a>
-<span class="sourceLineNo">154</span>  protected static final String OPT_ZK_PARENT_NODE = "zk_root";<a name="line.154"></a>
-<span class="sourceLineNo">155</span>  protected static final String OPT_SKIP_INIT = "skip_init";<a name="line.155"></a>
-<span class="sourceLineNo">156</span>  protected static final String OPT_INIT_ONLY = "init_only";<a name="line.156"></a>
-<span class="sourceLineNo">157</span>  protected static final String NUM_TABLES = "num_tables";<a name="line.157"></a>
-<span class="sourceLineNo">158</span>  protected static final String OPT_BATCHUPDATE = "batchupdate";<a name="line.158"></a>
-<span class="sourceLineNo">159</span>  protected static final String OPT_UPDATE = "update";<a name="line.159"></a>
-<span class="sourceLineNo">160</span><a name="line.160"></a>
-<span class="sourceLineNo">161</span>  public static final String OPT_ENCRYPTION = "encryption";<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  protected static final String OPT_ENCRYPTION_USAGE =<a name="line.162"></a>
-<span class="sourceLineNo">163</span>    "Enables transparent encryption on the test table, one of " +<a name="line.163"></a>
-<span class="sourceLineNo">164</span>    Arrays.toString(Encryption.getSupportedCiphers());<a name="line.164"></a>
-<span class="sourceLineNo">165</span><a name="line.165"></a>
-<span class="sourceLineNo">166</span>  public static final String OPT_NUM_REGIONS_PER_SERVER = "num_regions_per_server";<a name="line.166"></a>
-<span class="sourceLineNo">167</span>  protected static final String OPT_NUM_REGIONS_PER_SERVER_USAGE<a name="line.167"></a>
-<span class="sourceLineNo">168</span>    = "Desired number of regions per region server. Defaults to 5.";<a name="line.168"></a>
-<span class="sourceLineNo">169</span>  public static int DEFAULT_NUM_REGIONS_PER_SERVER = 5;<a name="line.169"></a>
-<span class="sourceLineNo">170</span><a name="line.170"></a>
-<span class="sourceLineNo">171</span>  public static final String OPT_REGION_REPLICATION = "region_replication";<a name="line.171"></a>
-<span class="sourceLineNo">172</span>  protected static final String OPT_REGION_REPLICATION_USAGE =<a name="line.172"></a>
-<span class="sourceLineNo">173</span>      "Desired number of replicas per region";<a name="line.173"></a>
-<span class="sourceLineNo">174</span><a name="line.174"></a>
-<span class="sourceLineNo">175</span>  public static final String OPT_REGION_REPLICA_ID = "region_replica_id";<a name="line.175"></a>
-<span class="sourceLineNo">176</span>  protected static final String OPT_REGION_REPLICA_ID_USAGE =<a name="line.176"></a>
-<span class="sourceLineNo">177</span>      "Region replica id to do the reads from";<a name="line.177"></a>
-<span class="sourceLineNo">178</span><a name="line.178"></a>
-<span class="sourceLineNo">179</span>  public static final String OPT_MOB_THRESHOLD = "mob_threshold";<a name="line.179"></a>
-<span class="sourceLineNo">180</span>  protected static final String OPT_MOB_THRESHOLD_USAGE =<a name="line.180"></a>
-<span class="sourceLineNo">181</span>      "Desired cell size to exceed in bytes that will use the MOB write path";<a name="line.181"></a>
-<span class="sourceLineNo">182</span><a name="line.182"></a>
-<span class="sourceLineNo">183</span>  protected static final long DEFAULT_START_KEY = 0;<a name="line.183"></a>
-<span class="sourceLineNo">184</span><a name="line.184"></a>
-<span class="sourceLineNo">185</span>  /** This will be removed as we factor out the dependency on command line */<a name="line.185"></a>
-<span class="sourceLineNo">186</span>  protected CommandLine cmd;<a name="line.186"></a>
-<span class="sourceLineNo">187</span><a name="line.187"></a>
-<span class="sourceLineNo">188</span>  protected MultiThreadedWriter writerThreads = null;<a name="line.188"></a>
-<span class="sourceLineNo">189</span>  protected MultiThreadedReader readerThreads = null;<a name="line.189"></a>
-<span class="sourceLineNo">190</span>  protected MultiThreadedUpdater updaterThreads = null;<a name="line.190"></a>
-<span class="sourceLineNo">191</span><a name="line.191"></a>
-<span class="sourceLineNo">192</span>  protected long startKey, endKey;<a name="line.192"></a>
-<span class="sourceLineNo">193</span><a name="line.193"></a>
-<span class="sourceLineNo">194</span>  protected boolean isVerbose, isWrite, isRead, isUpdate;<a name="line.194"></a>
-<span class="sourceLineNo">195</span>  protected boolean deferredLogFlush;<a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span>  // Column family options<a name="line.197"></a>
-<span class="sourceLineNo">198</span>  protected DataBlockEncoding dataBlockEncodingAlgo;<a name="line.198"></a>
-<span class="sourceLineNo">199</span>  protected Compression.Algorithm compressAlgo;<a name="line.199"></a>
-<span class="sourceLineNo">200</span>  protected BloomType bloomType;<a name="line.200"></a>
-<span class="sourceLineNo">201</span>  private boolean inMemoryCF;<a name="line.201"></a>
-<span class="sourceLineNo">202</span><a name="line.202"></a>
-<span class="sourceLineNo">203</span>  private User userOwner;<a name="line.203"></a>
-<span class="sourceLineNo">204</span>  // Writer options<a name="line.204"></a>
-<span class="sourceLineNo">205</span>  protected int numWriterThreads = DEFAULT_NUM_THREADS;<a name="line.205"></a>
-<span class="sourceLineNo">206</span>  protected int minColsPerKey, maxColsPerKey;<a name="line.206"></a>
-<span class="sourceLineNo">207</span>  protected int minColDataSize = DEFAULT_DATA_SIZE, maxColDataSize = DEFAULT_DATA_SIZE;<a name="line.207"></a>
-<span class="sourceLineNo">208</span>  protected boolean isMultiPut;<a name="line.208"></a>
-<span class="sourceLineNo">209</span><a name="line.209"></a>
-<span class="sourceLineNo">210</span>  // Updater options<a name="line.210"></a>
-<span class="sourceLineNo">211</span>  protected int numUpdaterThreads = DEFAULT_NUM_THREADS;<a name="line.211"></a>
-<span class="sourceLineNo">212</span>  protected int updatePercent;<a name="line.212"></a>
-<span class="sourceLineNo">213</span>  protected boolean ignoreConflicts = false;<a name="line.213"></a>
-<span class="sourceLineNo">214</span>  protected boolean isBatchUpdate;<a name="line.214"></a>
-<span class="sourceLineNo">215</span><a name="line.215"></a>
-<span class="sourceLineNo">216</span>  // Reader options<a name="line.216"></a>
-<span class="sourceLineNo">217</span>  private int numReaderThreads = DEFAULT_NUM_THREADS;<a name="line.217"></a>
-<span class="sourceLineNo">218</span>  private int keyWindow = MultiThreadedReader.DEFAULT_KEY_WINDOW;<a name="line.218"></a>
-<span class="sourceLineNo">219</span>  private int multiGetBatchSize = MultiThreadedReader.DEFAULT_BATCH_SIZE;<a name="line.219"></a>
-<span class="sourceLineNo">220</span>  private int maxReadErrors = MultiThreadedReader.DEFAULT_MAX_ERRORS;<a name="line.220"></a>
-<span class="sourceLineNo">221</span>  private int verifyPercent;<a name="line.221"></a>
-<span class="sourceLineNo">222</span><a name="line.222"></a>
-<span class="sourceLineNo">223</span>  private int numTables = 1;<a name="line.223"></a>
-<span class="sourceLineNo">224</span><a name="line.224"></a>
-<span class="sourceLineNo">225</span>  private String superUser;<a name="line.225"></a>
-<span class="sourceLineNo">226</span><a name="line.226"></a>
-<span class="sourceLineNo">227</span>  private String userNames;<a name="line.227"></a>
-<span class="sourceLineNo">228</span>  //This file is used to read authentication information in secure clusters.<a name="line.228"></a>
-<span class="sourceLineNo">229</span>  private String authnFileName;<a name="line.229"></a>
-<span class="sourceLineNo">230</span><a name="line.230"></a>
-<span class="sourceLineNo">231</span>  private int numRegionsPerServer = DEFAULT_NUM_REGIONS_PER_SERVER;<a name="line.231"></a>
-<span class="sourceLineNo">232</span>  private int regionReplication = -1; // not set<a name="line.232"></a>
-<span class="sourceLineNo">233</span>  private int regionReplicaId = -1; // not set<a name="line.233"></a>
-<span class="sourceLineNo">234</span><a name="line.234"></a>
-<span class="sourceLineNo">235</span>  private int mobThreshold = -1; // not set<a name="line.235"></a>
-<span class="sourceLineNo">236</span><a name="line.236"></a>
-<span class="sourceLineNo">237</span>  // TODO: refactor LoadTestToolImpl somewhere to make the usage from tests less bad,<a name="line.237"></a>
-<span class="sourceLineNo">238</span>  //       console tool itself should only be used from console.<a name="line.238"></a>
-<span class="sourceLineNo">239</span>  protected boolean isSkipInit = false;<a name="line.239"></a>
-<span class="sourceLineNo">240</span>  protected boolean isInitOnly = false;<a name="line.240"></a>
-<span class="sourceLineNo">241</span><a name="line.241"></a>
-<span class="sourceLineNo">242</span>  protected Cipher cipher = null;<a name="line.242"></a>
-<span class="sourceLineNo">243</span><a name="line.243"></a>
-<span class="sourceLineNo">244</span>  protected String[] splitColonSeparated(String option,<a name="line.244"></a>
-<span class="sourceLineNo">245</span>      int minNumCols, int maxNumCols) {<a name="line.245"></a>
-<span class="sourceLineNo">246</span>    String optVal = cmd.getOptionValue(option);<a name="line.246"></a>
-<span class="sourceLineNo">247</span>    String[] cols = optVal.split(COLON);<a name="line.247"></a>
-<span class="sourceLineNo">248</span>    if (cols.length &lt; minNumCols || cols.length &gt; maxNumCols) {<a name="line.248"></a>
-<span class="sourceLineNo">249</span>      throw new IllegalArgumentException("Expected at least "<a name="line.249"></a>
-<span class="sourceLineNo">250</span>          + minNumCols + " columns but no more than " + maxNumCols +<a name="line.250"></a>
-<span class="sourceLineNo">251</span>          " in the colon-separated value '" + optVal + "' of the " +<a name="line.251"></a>
-<span class="sourceLineNo">252</span>          "-" + option + " option");<a name="line.252"></a>
-<span class="sourceLineNo">253</span>    }<a name="line.253"></a>
-<span class="sourceLineNo">254</span>    return cols;<a name="line.254"></a>
-<span class="sourceLineNo">255</span>  }<a name="line.255"></a>
-<span class="sourceLineNo">256</span><a name="line.256"></a>
-<span class="sourceLineNo">257</span>  protected int getNumThreads(String numThreadsStr) {<a name="line.257"></a>
-<span class="sourceLineNo">258</span>    return parseInt(numThreadsStr, 1, Short.MAX_VALUE);<a name="line.258"></a>
-<span class="sourceLineNo">259</span>  }<a name="line.259"></a>
-<span class="sourceLineNo">260</span><a name="line.260"></a>
-<span class="sourceLineNo">261</span>  public byte[][] getColumnFamilies() {<a name="line.261"></a>
-<span class="sourceLineNo">262</span>    return families;<a name="line.262"></a>
-<span class="sourceLineNo">263</span>  }<a name="line.263"></a>
-<span class="sourceLineNo">264</span><a name="line.264"></a>
-<span class="sourceLineNo">265</span>  /**<a name="line.265"></a>
-<span class="sourceLineNo">266</span>   * Apply column family options such as Bloom filters, compression, and data<a name="line.266"></a>
-<span class="sourceLineNo">267</span>   * block encoding.<a name="line.267"></a>
-<span class="sourceLineNo">268</span>   */<a name="line.268"></a>
-<span class="sourceLineNo">269</span>  protected void applyColumnFamilyOptions(TableName tableName,<a name="line.269"></a>
-<span class="sourceLineNo">270</span>      byte[][] columnFamilies) throws IOException {<a name="line.270"></a>
-<span class="sourceLineNo">271</span>    try (Connection conn = ConnectionFactory.createConnection(conf);<a name="line.271"></a>
-<span class="sourceLineNo">272</span>        Admin admin = conn.getAdmin()) {<a name="line.272"></a>
-<span class="sourceLineNo">273</span>      TableDescriptor tableDesc = admin.getDescriptor(tableName);<a name="line.273"></a>
-<span class="sourceLineNo">274</span>      LOG.info("Disabling table " + tableName);<a name="line.274"></a>
-<span class="sourceLineNo">275</span>      admin.disableTable(tableName);<a name="line.275"></a>
-<span class="sourceLineNo">276</span>      for (byte[] cf : columnFamilies) {<a name="line.276"></a>
-<span class="sourceLineNo">277</span>        ColumnFamilyDescriptor columnDesc = tableDesc.getColumnFamily(cf);<a name="line.277"></a>
-<span class="sourceLineNo">278</span>        boolean isNewCf = columnDesc == null;<a name="line.278"></a>
-<span class="sourceLineNo">279</span>        ColumnFamilyDescriptorBuilder columnDescBuilder = isNewCf ?<a name="line.279"></a>
-<span class="sourceLineNo">280</span>            ColumnFamilyDescriptorBuilder.newBuilder(cf) :<a name="line.280"></a>
-<span class="sourceLineNo">281</span>            ColumnFamilyDescriptorBuilder.newBuilder(columnDesc);<a name="line.281"></a>
-<span class="sourceLineNo">282</span>        if (bloomType != null) {<a name="line.282"></a>
-<span class="sourceLineNo">283</span>          columnDescBuilder.setBloomFilterType(bloomType);<a name="line.283"></a>
-<span class="sourceLineNo">284</span>        }<a name="line.284"></a>
-<span class="sourceLineNo">285</span>        if (compressAlgo != null) {<a name="line.285"></a>
-<span class="sourceLineNo">286</span>          columnDescBuilder.setCompressionType(compressAlgo);<a name="line.286"></a>
-<span class="sourceLineNo">287</span>        }<a name="line.287"></a>
-<span class="sourceLineNo">288</span>        if (dataBlockEncodingAlgo != null) {<a name="line.288"></a>
-<span class="sourceLineNo">289</span>          columnDescBuilder.setDataBlockEncoding(dataBlockEncodingAlgo);<a name="line.289"></a>
-<span class="sourceLineNo">290</span>        }<a name="line.290"></a>
-<span class="sourceLineNo">291</span>        if (inMemoryCF) {<a name="line.291"></a>
-<span class="sourceLineNo">292</span>          columnDescBuilder.setInMemory(inMemoryCF);<a name="line.292"></a>
-<span class="sourceLineNo">293</span>        }<a name="line.293"></a>
-<span class="sourceLineNo">294</span>        if (cipher != null) {<a name="line.294"></a>
-<span class="sourceLineNo">295</span>          byte[] keyBytes = new byte[cipher.getKeyLength()];<a name="line.295"></a>
-<span class="sourceLineNo">296</span>          new SecureRandom().nextBytes(keyBytes);<a name="line.296"></a>
-<span class="sourceLineNo">297</span>          columnDescBuilder.setEncryptionType(cipher.getName());<a name="line.297"></a>
-<span class="sourceLineNo">298</span>          columnDescBuilder.setEncryptionKey(<a name="line.298"></a>
-<span class="sourceLineNo">299</span>              EncryptionUtil.wrapKey(conf,<a name="line.299"></a>
-<span class="sourceLineNo">300</span>                  User.getCurrent().getShortName(),<a name="line.300"></a>
-<span class="sourceLineNo">301</span>                  new SecretKeySpec(keyBytes,<a name="line.301"></a>
-<span class="sourceLineNo">302</span>                      cipher.getName())));<a name="line.302"></a>
-<span class="sourceLineNo">303</span>        }<a name="line.303"></a>
-<span class="sourceLineNo">304</span>        if (mobThreshold &gt;= 0) {<a name="line.304"></a>
-<span class="sourceLineNo">305</span>          columnDescBuilder.setMobEnabled(true);<a name="line.305"></a>
-<span class="sourceLineNo">306</span>          columnDescBuilder.setMobThreshold(mobThreshold);<a name="line.306"></a>
-<span class="sourceLineNo">307</span>        }<a name="line.307"></a>
-<span class="sourceLineNo">308</span><a name="line.308"></a>
-<span class="sourceLineNo">309</span>        if (isNewCf) {<a name="line.309"></a>
-<span class="sourceLineNo">310</span>          admin.addColumnFamily(tableName, columnDescBuilder.build());<a name="line.310"></a>
-<span class="sourceLineNo">311</span>        } else {<a name="line.311"></a>
-<span class="sourceLineNo">312</span>          admin.modifyColumnFamily(tableName, columnDescBuilder.build());<a name="line.312"></a>
-<span class="sourceLineNo">313</span>        }<a name="line.313"></a>
-<span class="sourceLineNo">314</span>      }<a name="line.314"></a>
-<span class="sourceLineNo">315</span>      LOG.info("Enabling table " + tableName);<a name="line.315"></a>
-<span class="sourceLineNo">316</span>      admin.enableTable(tableName);<a name="line.316"></a>
-<span class="sourceLineNo">317</span>    }<a name="line.317"></a>
-<span class="sourceLineNo">318</span>  }<a name="line.318"></a>
-<span class="sourceLineNo">319</span><a name="line.319"></a>
-<span class="sourceLineNo">320</span>  @Override<a name="line.320"></a>
-<span class="sourceLineNo">321</span>  protected void addOptions() {<a name="line.321"></a>
-<span class="sourceLineNo">322</span>    addOptNoArg("v", OPT_VERBOSE, "Will display a full readout of logs, including ZooKeeper");<a name="line.322"></a>
-<span class="sourceLineNo">323</span>    addOptWithArg(OPT_ZK_QUORUM, "ZK quorum as comma-separated host names " +<a name="line.323"></a>
-<span class="sourceLineNo">324</span>        "without port numbers");<a name="line.324"></a>
-<span class="sourceLineNo">325</span>    addOptWithArg(OPT_ZK_PARENT_NODE, "name of parent znode in zookeeper");<a name="line.325"></a>
-<span class="sourceLineNo">326</span>    addOptWithArg(OPT_TABLE_NAME, "The name of the table to read or write");<a name="line.326"></a>
-<span class="sourceLineNo">327</span>    addOptWithArg(OPT_COLUMN_FAMILIES, "The name of the column families to use separated by comma");<a name="line.327"></a>
-<span class="sourceLineNo">328</span>    addOptWithArg(OPT_WRITE, OPT_USAGE_LOAD);<a name="line.328"></a>
-<span class="sourceLineNo">329</span>    addOptWithArg(OPT_READ, OPT_USAGE_READ);<a name="line.329"></a>
-<span class="sourceLineNo">330</span>    addOptWithArg(OPT_UPDATE, OPT_USAGE_UPDATE);<a name="line.330"></a>
-<span class="sourceLineNo">331</span>    addOptNoArg(OPT_INIT_ONLY, "Initialize the test table only, don't do any loading");<a name="line.331"></a>
-<span class="sourceLineNo">332</span>    addOptWithArg(OPT_BLOOM, OPT_USAGE_BLOOM);<a name="line.332"></a>
-<span class="sourceLineNo">333</span>    addOptWithArg(OPT_COMPRESSION, OPT_USAGE_COMPRESSION);<a name="line.333"></a>
-<span class="sourceLineNo">334</span>    addOptWithArg(HFileTestUtil.OPT_DATA_BLOCK_ENCODING, HFileTestUtil.OPT_DATA_BLOCK_ENCODING_USAGE);<a name="line.334"></a>
-<span class="sourceLineNo">335</span>    addOptWithArg(OPT_MAX_READ_ERRORS, "The maximum number of read errors " +<a name="line.335"></a>
-<span class="sourceLineNo">336</span>        "to tolerate before terminating all reader threads. The default is " +<a name="line.336"></a>
-<span class="sourceLineNo">337</span>        MultiThreadedReader.DEFAULT_MAX_ERRORS + ".");<a name="line.337"></a>
-<span class="sourceLineNo">338</span>    addOptWithArg(OPT_MULTIGET, "Whether to use multi-gets as opposed to " +<a name="line.338"></a>
-<span class="sourceLineNo">339</span>        "separate gets for every column in a row");<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    addOptWithArg(OPT_KEY_WINDOW, "The 'key window' to maintain between " +<a name="line.340"></a>
-<span class="sourceLineNo">341</span>        "reads and writes for concurrent write/read workload. The default " +<a name="line.341"></a>
-<span class="sourceLineNo">342</span>        "is " + MultiThreadedReader.DEFAULT_KEY_WINDOW + ".");<a name="line.342"></a>
-<span class="sourceLineNo">343</span><a name="line.343"></a>
-<span class="sourceLineNo">344</span>    addOptNoArg(OPT_MULTIPUT, "Whether to use multi-puts as opposed to " +<a name="line.344"></a>
-<span class="sourceLineNo">345</span>        "separate puts for every column in a row");<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    addOptNoArg(OPT_BATCHUPDATE, "Whether to use batch as opposed to " +<a name="line.346"></a>
-<span class="sourceLineNo">347</span>        "separate updates for every column in a row");<a name="line.347"></a>
-<span class="sourceLineNo">348</span>    addOptNoArg(OPT_INMEMORY, OPT_USAGE_IN_MEMORY);<a name="line.348"></a>
-<span class="sourceLineNo">349</span>    addOptWithArg(OPT_GENERATOR, OPT_GENERATOR_USAGE);<a name="line.349"></a>
-<span class="sourceLineNo">350</span>    addOptWithArg(OPT_WRITER, OPT_WRITER_USAGE);<a name="line.350"></a>
-<span class="sourceLineNo">351</span>    addOptWithArg(OPT_UPDATER, OPT_UPDATER_USAGE);<a name="line.351"></a>
-<span class="sourceLineNo">352</span>    addOptWithArg(OPT_READER, OPT_READER_USAGE);<a name="line.352"></a>
-<span class="sourceLineNo">353</span><a name="line.353"></a>
-<span class="sourceLineNo">354</span>    addOptWithArg(OPT_NUM_KEYS, "The number of keys to read/write");<a name="line.354"></a>
-<span class="sourceLineNo">355</span>    addOptWithArg(OPT_START_KEY, "The first key to read/write " +<a name="line.355"></a>
-<span class="sourceLineNo">356</span>        "(a 0-based index). The default value is " +<a name="line.356"></a>
-<span class="sourceLineNo">357</span>        DEFAULT_START_KEY + ".");<a name="line.357"></a>
-<span class="sourceLineNo">358</span>    addOptNoArg(OPT_SKIP_INIT, "Skip the initialization; assume test table "<a name="line.358"></a>
-<span class="sourceLineNo">359</span>        + "already exists");<a name="line.359"></a>
-<span class="sourceLineNo">360</span><a name="line.360"></a>
-<span class="sourceLineNo">361</span>    addOptWithArg(NUM_TABLES,<a name="line.361"></a>
-<span class="sourceLineNo">362</span>      "A positive integer number. When a number n is specified, load test "<a name="line.362"></a>
-<span class="sourceLineNo">363</span>          + "tool  will load n table parallely. -tn parameter value becomes "<a name="line.363"></a>
-<span class="sourceLineNo">364</span>          + "table name prefix. Each table name is in format &lt;tn&gt;_1...&lt;tn&gt;_n");<a name="line.364"></a>
-<span class="sourceLineNo">365</span><a name="line.365"></a>
-<span class="sourceLineNo">366</span>    addOptWithArg(OPT_ENCRYPTION, OPT_ENCRYPTION_USAGE);<a name="line.366"></a>
-<span class="sourceLineNo">367</span>    addOptNoArg(OPT_DEFERRED_LOG_FLUSH, OPT_DEFERRED_LOG_FLUSH_USAGE);<a name="line.367"></a>
-<span class="sourceLineNo">368</span>    addOptWithArg(OPT_NUM_REGIONS_PER_SERVER, OPT_NUM_REGIONS_PER_SERVER_USAGE);<a name="line.368"></a>
-<span class="sourceLineNo">369</span>    addOptWithArg(OPT_REGION_REPLICATION, OPT_REGION_REPLICATION_USAGE);<a name="line.369"></a>
-<span class="sourceLineNo">370</span>    addOptWithArg(OPT_REGION_REPLICA_ID, OPT_REGION_REPLICA_ID_USAGE);<a name="line.370"></a>
-<span class="sourceLineNo">371</span>    addOptWithArg(OPT_MOB_THRESHOLD, OPT_MOB_THRESHOLD_USAGE);<a name="line.371"></a>
-<span class="sourceLineNo">372</span>  }<a name="line.372"></a>
-<span class="sourceLineNo">373</span><a name="line.373"></a>
-<span class="sourceLineNo">374</span>  @Override<a name="line.374"></a>
-<span class="sourceLineNo">375</span>  protected CommandLineParser newParser() {<a name="line.375"></a>
-<span class="sourceLineNo">376</span>    // Commons-CLI lacks the capability to handle combinations of options, so we do it ourselves<a name="line.376"></a>
-<span class="sourceLineNo">377</span>    // Validate in parse() to get helpful error messages instead of exploding in processOptions()<a name="line.377"></a>
-<span class="sourceLineNo">378</span>    return new DefaultParser() {<a name="line.378"></a>
-<span class="sourceLineNo">379</span>      @Override<a name="line.379"></a>
-<span class="sourceLineNo">380</span>      public CommandLine parse(Options opts, String[] args, Properties props, boolean stop)<a name="line.380"></a>
-<span class="sourceLineNo">381</span>          throws ParseException {<a name="line.381"></a>
-<span class="sourceLineNo">382</span>        CommandLine cl = super.parse(opts, args, props, stop);<a name="line.382"></a>
-<span class="sourceLineNo">383</span><a name="line.383"></a>
-<span class="sourceLineNo">384</span>        boolean isReadWriteUpdate = cmd.hasOption(OPT_READ)<a name="line.384"></a>
-<span class="sourceLineNo">385</span>            || cmd.hasOption(OPT_WRITE)<a name="line.385"></a>
-<span class="sourceLineNo">386</span>            || cmd.hasOption(OPT_UPDATE);<a name="line.386"></a>
-<span class="sourceLineNo">387</span>        boolean isInitOnly = cmd.hasOption(OPT_INIT_ONLY);<a name="line.387"></a>
-<span class="sourceLineNo">388</span><a name="line.388"></a>
-<span class="sourceLineNo">389</span>        if (!isInitOnly &amp;&amp; !isReadWriteUpdate) {<a name="line.389"></a>
-<span class="sourceLineNo">390</span>          throw new MissingOptionException("Must specify either -" + OPT_INIT_ONLY<a name="line.390"></a>
-<span class="sourceLineNo">391</span>              + " or at least one of -" + OPT_READ + ", -" + OPT_WRITE + ", -" + OPT_UPDATE);<a name="line.391"></a>
-<span class="sourceLineNo">392</span>        }<a name="line.392"></a>
-<span class="sourceLineNo">393</span><a name="line.393"></a>
-<span class="sourceLineNo">394</span>        if (isInitOnly &amp;&amp; isReadWriteUpdate) {<a name="line.394"></a>
-<span class="sourceLineNo">395</span>          throw new AlreadySelectedException(OPT_INIT_ONLY + " cannot be specified with any of -"<a name="line.395"></a>
-<span class="sourceLineNo">396</span>              + OPT_READ + ", -" + OPT_WRITE + ", -" + OPT_UPDATE);<a name="line.396"></a>
-<span class="sourceLineNo">397</span>        }<a name="line.397"></a>
-<span class="sourceLineNo">398</span><a name="line.398"></a>
-<span class="sourceLineNo">399</span>        if (isReadWriteUpdate &amp;&amp; !cmd.hasOption(OPT_NUM_KEYS)) {<a name="line.399"></a>
-<span class="sourceLineNo">400</span>          throw new MissingOptionException(OPT_NUM_KEYS + " must be specified in read/write mode.");<a name="line.400"></a>
-<span class="sourceLineNo">401</span>        }<a name="line.401"></a>
-<span class="sourceLineNo">402</span><a name="line.402"></a>
-<span class="sourceLineNo">403</span>        return cl;<a name="line.403"></a>
-<span class="sourceLineNo">404</span>      }<a name="line.404"></a>
-<span class="sourceLineNo">405</span>    };<a name="line.405"></a>
-<span class="sourceLineNo">406</span>  }<a name="line.406"></a>
-<span class="sourceLineNo">407</span><a name="line.407"></a>
-<span class="sourceLineNo">408</span>  @Override<a name="line.408"></a>
-<span class="sourceLineNo">409</span>  protected void processOptions(CommandLine cmd) {<a name="line.409"></a>
-<span class="sourceLineNo">410</span>    this.cmd = cmd;<a name="line.410"></a>
-<span class="sourceLineNo">411</span><a name="line.411"></a>
-<span class="sourceLineNo">412</span>    tableName = TableName.valueOf(cmd.getOptionValue(OPT_TABLE_NAME,<a name="line.412"></a>
-<span class="sourceLineNo">413</span>        DEFAULT_TABLE_NAME));<a name="line.413"></a>
-<span class="sourceLineNo">414</span><a name="line.414"></a>
-<span class="sourceLineNo">415</span>    if (cmd.hasOption(OPT_COLUMN_FAMILIES)) {<a name="line.415"></a>
-<span class="sourceLineNo">416</span>      String[] list = cmd.getOptionValue(OPT_COLUMN_FAMILIES).split(",");<a name="line.416"></a>
-<span class="sourceLineNo">417</span>      families = new byte[list.length][];<a name="line.417"></a>
-<span class="sourceLineNo">418</span>      for (int i = 0; i &lt; list.length; i++) {<a name="line.418"></a>
-<span class="sourceLineNo">419</span>        families[i] = Bytes.toBytes(list[i]);<a name="line.419"></a>
-<span class="sourceLineNo">420</span>      }<a name="line.420"></a>
-<span class="sourceLineNo">421</span>    } else {<a name="line.421"></a>
-<span class="sourceLineNo">422</span>      families = HFileTestUtil.DEFAULT_COLUMN_FAMILIES;<a name="line.422"></a>
-<span class="sourceLineNo">423</span>    }<a name="line.423"></a>
-<span class="sourceLineNo">424</span><a name="line.424"></a>
-<span class="sourceLineNo">425</span>    isVerbose = cmd.hasOption(OPT_VERBOSE);<a name="line.425"></a>
-<span class="sourceLineNo">426</span>    isWrite = cmd.hasOption(OPT_WRITE);<a name="line.426"></a>
-<span class="sourceLineNo">427</span>    isRead = cmd.hasOption(OPT_READ);<a name="line.427"></a>
-<span class="sourceLineNo">428</span>    isUpdate = cmd.hasOption(OPT_UPDATE);<a name="line.428"></a>
-<span class="sourceLineNo">429</span>    isInitOnly = cmd.hasOption(OPT_INIT_ONLY);<a name="line.429"></a>
-<span class="sourceLineNo">430</span>    deferredLogFlush = cmd.hasOption(OPT_DEFERRED_LOG_FLUSH);<a name="line.430"></a>
-<span class="sourceLineNo">431</span><a name="line.431"></a>
-<span class="sourceLineNo">432</span>    if (!isInitOnly) {<a name="line.432"></a>
-<span class="sourceLineNo">433</span>      startKey = parseLong(cmd.getOptionValue(OPT_START_KEY,<a name="line.433"></a>
-<span class="sourceLineNo">434</span>          String.valueOf(DEFAULT_START_KEY)), 0, Long.MAX_VALUE);<a name="line.434"></a>
-<span class="sourceLineNo">435</span>      long numKeys = parseLong(cmd.getOptionValue(OPT_NUM_KEYS), 1,<a name="line.435"></a>
-<span class="sourceLineNo">436</span>          Long.MAX_VALUE - startKey);<a name="line.436"></a>
-<span class="sourceLineNo">437</span>      endKey = startKey + numKeys;<a name="line.437"></a>
-<span class="sourceLineNo">438</span>      isSkipInit = cmd.hasOption(OPT_SKIP_INIT);<a name="line.438"></a>
-<span class="sourceLineNo">439</span>      System.out.println("Key range: [" + startKey + ".." + (endKey - 1) + "]");<a name="line.439"></a>
-<span class="sourceLineNo">440</span>    }<a name="line.440"></a>
-<span class="sourceLineNo">441</span><a name="line.441"></a>
-<span class="sourceLineNo">442</span>    parseColumnFamilyOptions(cmd);<a name="line.442"></a>
+<span class="sourceLineNo">122</span>  public static final String OPT_BLOOM_PARAM = "bloom_param";<a name="line.122"></a>
+<span class="sourceLineNo">123</span>  public static final String OPT_COMPRESSION = "compression";<a name="line.123"></a>
+<span class="sourceLineNo">124</span>  public static final String OPT_DEFERRED_LOG_FLUSH = "deferredlogflush";<a name="line.124"></a>
+<span class="sourceLineNo">125</span>  public static final String OPT_DEFERRED_LOG_FLUSH_USAGE = "Enable deferred log flush.";<a name="line.125"></a>
+<span class="sourceLineNo">126</span><a name="line.126"></a>
+<span class="sourceLineNo">127</span>  public static final String OPT_INMEMORY = "in_memory";<a name="line.127"></a>
+<span class="sourceLineNo">128</span>  public static final String OPT_USAGE_IN_MEMORY = "Tries to keep the HFiles of the CF " +<a name="line.128"></a>
+<span class="sourceLineNo">129</span>      "inmemory as far as possible.  Not guaranteed that reads are always served from inmemory";<a name="line.129"></a>
+<span class="sourceLineNo">130</span><a name="line.130"></a>
+<span class="sourceLineNo">131</span>  public static final String OPT_GENERATOR = "generator";<a name="line.131"></a>
+<span class="sourceLineNo">132</span>  public static final String OPT_GENERATOR_USAGE = "The class which generates load for the tool."<a name="line.132"></a>
+<span class="sourceLineNo">133</span>      + " Any args for this class can be passed as colon separated after class name";<a name="line.133"></a>
+<span class="sourceLineNo">134</span><a name="line.134"></a>
+<span class="sourceLineNo">135</span>  public static final String OPT_WRITER = "writer";<a name="line.135"></a>
+<span class="sourceLineNo">136</span>  public static final String OPT_WRITER_USAGE = "The class for executing the write requests";<a name="line.136"></a>
+<span class="sourceLineNo">137</span><a name="line.137"></a>
+<span class="sourceLineNo">138</span>  public static final String OPT_UPDATER = "updater";<a name="line.138"></a>
+<span class="sourceLineNo">139</span>  public static final String OPT_UPDATER_USAGE = "The class for executing the update requests";<a name="line.139"></a>
+<span class="sourceLineNo">140</span><a name="line.140"></a>
+<span class="sourceLineNo">141</span>  public static final String OPT_READER = "reader";<a name="line.141"></a>
+<span class="sourceLineNo">142</span>  public static final String OPT_READER_USAGE = "The class for executing the read requests";<a name="line.142"></a>
+<span class="sourceLineNo">143</span><a name="line.143"></a>
+<span class="sourceLineNo">144</span>  protected static final String OPT_KEY_WINDOW = "key_window";<a name="line.144"></a>
+<span class="sourceLineNo">145</span>  protected static final String OPT_WRITE = "write";<a name="line.145"></a>
+<span class="sourceLineNo">146</span>  protected static final String OPT_MAX_READ_ERRORS = "max_read_errors";<a name="line.146"></a>
+<span class="sourceLineNo">147</span>  public static final String OPT_MULTIPUT = "multiput";<a name="line.147"></a>
+<span class="sourceLineNo">148</span>  public static final String OPT_MULTIGET = "multiget_batchsize";<a name="line.148"></a>
+<span class="sourceLineNo">149</span>  protected static final String OPT_NUM_KEYS = "num_keys";<a name="line.149"></a>
+<span class="sourceLineNo">150</span>  protected static final String OPT_READ = "read";<a name="line.150"></a>
+<span class="sourceLineNo">151</span>  protected static final String OPT_START_KEY = "start_key";<a name="line.151"></a>
+<span class="sourceLineNo">152</span>  public static final String OPT_TABLE_NAME = "tn";<a name="line.152"></a>
+<span class="sourceLineNo">153</span>  public static final String OPT_COLUMN_FAMILIES = "families";<a name="line.153"></a>
+<span class="sourceLineNo">154</span>  protected static final String OPT_ZK_QUORUM = "zk";<a name="line.154"></a>
+<span class="sourceLineNo">155</span>  protected static final String OPT_ZK_PARENT_NODE = "zk_root";<a name="line.155"></a>
+<span class="sourceLineNo">156</span>  protected static final String OPT_SKIP_INIT = "skip_init";<a name="line.156"></a>
+<span class="sourceLineNo">157</span>  protected static final String OPT_INIT_ONLY = "init_only";<a name="line.157"></a>
+<span class="sourceLineNo">158</span>  protected static final String NUM_TABLES = "num_tables";<a name="line.158"></a>
+<span class="sourceLineNo">159</span>  protected static final String OPT_BATCHUPDATE = "batchupdate";<a name="line.159"></a>
+<span class="sourceLineNo">160</span>  protected static final String OPT_UPDATE = "update";<a name="line.160"></a>
+<span class="sourceLineNo">161</span><a name="line.161"></a>
+<span class="sourceLineNo">162</span>  public static final String OPT_ENCRYPTION = "encryption";<a name="line.162"></a>
+<span class="sourceLineNo">163</span>  protected static final String OPT_ENCRYPTION_USAGE =<a name="line.163"></a>
+<span class="sourceLineNo">164</span>    "Enables transparent encryption on the test table, one of " +<a name="line.164"></a>
+<span class="sourceLineNo">165</span>    Arrays.toString(Encryption.getSupportedCiphers());<a name="line.165"></a>
+<span class="sourceLineNo">166</span><a name="line.166"></a>
+<span class="sourceLineNo">167</span>  public static final String OPT_NUM_REGIONS_PER_SERVER = "num_regions_per_server";<a name="line.167"></a>
+<span class="sourceLineNo">168</span>  protected static final String OPT_NUM_REGIONS_PER_SERVER_USAGE<a name="line.168"></a>
+<span class="sourceLineNo">169</span>    = "Desired number of regions per region server. Defaults to 5.";<a name="line.169"></a>
+<span class="sourceLineNo">170</span>  public static int DEFAULT_NUM_REGIONS_PER_SERVER = 5;<a name="line.170"></a>
+<span class="sourceLineNo">171</span><a name="line.171"></a>
+<span class="sourceLineNo">172</span>  public static final String OPT_REGION_REPLICATION = "region_replication";<a name="line.172"></a>
+<span class="sourceLineNo">173</span>  protected static final String OPT_REGION_REPLICATION_USAGE =<a name="line.173"></a>
+<span class="sourceLineNo">174</span>      "Desired number of replicas per region";<a name="line.174"></a>
+<span class="sourceLineNo">175</span><a name="line.175"></a>
+<span class="sourceLineNo">176</span>  public static final String OPT_REGION_REPLICA_ID = "region_replica_id";<a name="line.176"></a>
+<span class="sourceLineNo">177</span>  protected static final String OPT_REGION_REPLICA_ID_USAGE =<a name="line.177"></a>
+<span class="sourceLineNo">178</span>      "Region replica id to do the reads from";<a name="line.178"></a>
+<span class="sourceLineNo">179</span><a name="line.179"></a>
+<span class="sourceLineNo">180</span>  public static final String OPT_MOB_THRESHOLD = "mob_threshold";<a name="line.180"></a>
+<span class="sourceLineNo">181</span>  protected static final String OPT_MOB_THRESHOLD_USAGE =<a name="line.181"></a>
+<span class="sourceLineNo">182</span>      "Desired cell size to exceed in bytes that will use the MOB write path";<a name="line.182"></a>
+<span class="sourceLineNo">183</span><a name="line.183"></a>
+<span class="sourceLineNo">184</span>  protected static final long DEFAULT_START_KEY = 0;<a name="line.184"></a>
+<span class="sourceLineNo">185</span><a name="line.185"></a>
+<span class="sourceLineNo">186</span>  /** This will be removed as we factor out the dependency on command line */<a name="line.186"></a>
+<span class="sourceLineNo">187</span>  protected CommandLine cmd;<a name="line.187"></a>
+<span class="sourceLineNo">188</span><a name="line.188"></a>
+<span class="sourceLineNo">189</span>  protected MultiThreadedWriter writerThreads = null;<a name="line.189"></a>
+<span class="sourceLineNo">190</span>  protected MultiThreadedReader readerThreads = null;<a name="line.190"></a>
+<span class="sourceLineNo">191</span>  protected MultiThreadedUpdater updaterThreads = null;<a name="line.191"></a>
+<span class="sourceLineNo">192</span><a name="line.192"></a>
+<span class="sourceLineNo">193</span>  protected long startKey, endKey;<a name="line.193"></a>
+<span class="sourceLineNo">194</span><a name="line.194"></a>
+<span class="sourceLineNo">195</span>  protected boolean isVerbose, isWrite, isRead, isUpdate;<a name="line.195"></a>
+<span class="sourceLineNo">196</span>  protected boolean deferredLogFlush;<a name="line.196"></a>
+<span class="sourceLineNo">197</span><a name="line.197"></a>
+<span class="sourceLineNo">198</span>  // Column family options<a name="line.198"></a>
+<span class="sourceLineNo">199</span>  protected DataBlockEncoding dataBlockEncodingAlgo;<a name="line.199"></a>
+<span class="sourceLineNo">200</span>  protected Compression.Algorithm compressAlgo;<a name="line.200"></a>
+<span class="sourceLineNo">201</span>  protected BloomType bloomType;<a name="line.201"></a>
+<span class="sourceLineNo">202</span>  private boolean inMemoryCF;<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span>  private User userOwner;<a name="line.204"></a>
+<span class="sourceLineNo">205</span>  // Writer options<a name="line.205"></a>
+<span class="sourceLineNo">206</span>  protected int numWriterThreads = DEFAULT_NUM_THREADS;<a name="line.206"></a>
+<span class="sourceLineNo">207</span>  protected int minColsPerKey, maxColsPerKey;<a name="line.207"></a>
+<span class="sourceLineNo">208</span>  protected int minColDataSize = DEFAULT_DATA_SIZE, maxColDataSize = DEFAULT_DATA_SIZE;<a name="line.208"></a>
+<span class="sourceLineNo">209</span>  protected boolean isMultiPut;<a name="line.209"></a>
+<span class="sourceLineNo">210</span><a name="line.210"></a>
+<span class="sourceLineNo">211</span>  // Updater options<a name="line.211"></a>
+<span class="sourceLineNo">212</span>  protected int numUpdaterThreads = DEFAULT_NUM_THREADS;<a name="line.212"></a>
+<span class="sourceLineNo">213</span>  protected int updatePercent;<a name="line.213"></a>
+<span class="sourceLineNo">214</span>  protected boolean ignoreConflicts = false;<a name="line.214"></a>
+<span class="sourceLineNo">215</span>  protected boolean isBatchUpdate;<a name="line.215"></a>
+<span class="sourceLineNo">216</span><a name="line.216"></a>
+<span class="sourceLineNo">217</span>  // Reader options<a name="line.217"></a>
+<span class="sourceLineNo">218</span>  private int numReaderThreads = DEFAULT_NUM_THREADS;<a name="line.218"></a>
+<span class="sourceLineNo">219</span>  private int keyWindow = MultiThreadedReader.DEFAULT_KEY_WINDOW;<a name="line.219"></a>
+<span class="sourceLineNo">220</span>  private int multiGetBatchSize = MultiThreadedReader.DEFAULT_BATCH_SIZE;<a name="line.220"></a>
+<span class="sourceLineNo">221</span>  private int maxReadErrors = MultiThreadedReader.DEFAULT_MAX_ERRORS;<a name="line.221"></a>
+<span class="sourceLineNo">222</span>  private int verifyPercent;<a name="line.222"></a>
+<span class="sourceLineNo">223</span><a name="line.223"></a>
+<span class="sourceLineNo">224</span>  private int numTables = 1;<a name="line.224"></a>
+<span class="sourceLineNo">225</span><a name="line.225"></a>
+<span class="sourceLineNo">226</span>  private String superUser;<a name="line.226"></a>
+<span class="sourceLineNo">227</span><a name="line.227"></a>
+<span class="sourceLineNo">228</span>  private String userNames;<a name="line.228"></a>
+<span class="sourceLineNo">229</span>  //This file is used to read authentication information in secure clusters.<a name="line.229"></a>
+<span class="sourceLineNo">230</span>  private String authnFileName;<a name="line.230"></a>
+<span class="sourceLineNo">231</span><a name="line.231"></a>
+<span class="sourceLineNo">232</span>  private int numRegionsPerServer = DEFAULT_NUM_REGIONS_PER_SERVER;<a name="line.232"></a>
+<span class="sourceLineNo">233</span>  private int regionReplication = -1; // not set<a name="line.233"></a>
+<span class="sourceLineNo">234</span>  private int regionReplicaId = -1; // not set<a name="line.234"></a>
+<span class="sourceLineNo">235</span><a name="line.235"></a>
+<span class="sourceLineNo">236</span>  private int mobThreshold = -1; // not set<a name="line.236"></a>
+<span class="sourceLineNo">237</span><a name="line.237"></a>
+<span class="sourceLineNo">238</span>  // TODO: refactor LoadTestToolImpl somewhere to make the usage from tests less bad,<a name="line.238"></a>
+<span class="sourceLineNo">239</span>  //       console tool itself should only be used from console.<a name="line.239"></a>
+<span class="sourceLineNo">240</span>  protected boolean isSkipInit = false;<a name="line.240"></a>
+<span class="sourceLineNo">241</span>  protected boolean isInitOnly = false;<a name="line.241"></a>
+<span class="sourceLineNo">242</span><a name="line.242"></a>
+<span class="sourceLineNo">243</span>  protected Cipher cipher = null;<a name="line.243"></a>
+<span class="sourceLineNo">244</span><a name="line.244"></a>
+<span class="sourceLineNo">245</span>  protected String[] splitColonSeparated(String option,<a name="line.245"></a>
+<span class="sourceLineNo">246</span>      int minNumCols, int maxNumCols) {<a name="line.246"></a>
+<span class="sourceLineNo">247</span>    String optVal = cmd.getOptionValue(option);<a name="line.247"></a>
+<span class="sourceLineNo">248</span>    String[] cols = optVal.split(COLON);<a name="line.248"></a>
+<span class="sourceLineNo">249</span>    if (cols.length &lt; minNumCols || cols.length &gt; maxNumCols) {<a name="line.249"></a>
+<span class="sourceLineNo">250</span>      throw new IllegalArgumentException("Expected at least "<a name="line.250"></a>
+<span class="sourceLineNo">251</span>          + minNumCols + " columns but no more than " + maxNumCols +<a name="line.251"></a>
+<span class="sourceLineNo">252</span>          " in the colon-separated value '" + optVal + "' of the " +<a name="line.252"></a>
+<span class="sourceLineNo">253</span>          "-" + option + " option");<a name="line.253"></a>
+<span class="sourceLineNo">254</span>    }<a name="line.254"></a>
+<span class="sourceLineNo">255</span>    return cols;<a name="line.255"></a>
+<span class="sourceLineNo">256</span>  }<a name="line.256"></a>
+<span class="sourceLineNo">257</span><a name="line.257"></a>
+<span class="sourceLineNo">258</span>  protected int getNumThreads(String numThreadsStr) {<a name="line.258"></a>
+<span class="sourceLineNo">259</span>    return parseInt(numThreadsStr, 1, Short.MAX_VALUE);<a name="line.259"></a>
+<span class="sourceLineNo">260</span>  }<a name="line.260"></a>
+<span class="sourceLineNo">261</span><a name="line.261"></a>
+<span class="sourceLineNo">262</span>  public byte[][] getColumnFamilies() {<a name="line.262"></a>
+<span class="sourceLineNo">263</span>    return families;<a name="line.263"></a>
+<span class="sourceLineNo">264</span>  }<a name="line.264"></a>
+<span class="sourceLineNo">265</span><a name="line.265"></a>
+<span class="sourceLineNo">266</span>  /**<a name="line.266"></a>
+<span class="sourceLineNo">267</span>   * Apply column family options such as Bloom filters, compression, and data<a name="line.267"></a>
+<span class="sourceLineNo">268</span>   * block encoding.<a name="line.268"></a>
+<span class="sourceLineNo">269</span>   */<a name="line.269"></a>
+<span class="sourceLineNo">270</span>  protected void applyColumnFamilyOptions(TableName tableName,<a name="line.270"></a>
+<span class="sourceLineNo">271</span>      byte[][] columnFamilies) throws IOException {<a name="line.271"></a>
+<span class="sourceLineNo">272</span>    try (Connection conn = ConnectionFactory.createConnection(conf);<a name="line.272"></a>
+<span class="sourceLineNo">273</span>        Admin admin = conn.getAdmin()) {<a name="line.273"></a>
+<span class="sourceLineNo">274</span>      TableDescriptor tableDesc = admin.getDescriptor(tableName);<a name="line.274"></a>
+<span class="sourceLineNo">275</span>      LOG.info("Disabling table " + tableName);<a name="line.275"></a>
+<span class="sourceLineNo">276</span>      admin.disableTable(tableName);<a name="line.276"></a>
+<span class="sourceLineNo">277</span>      for (byte[] cf : columnFamilies) {<a name="line.277"></a>
+<span class="sourceLineNo">278</span>        ColumnFamilyDescriptor columnDesc = tableDesc.getColumnFamily(cf);<a name="line.278"></a>
+<span class="sourceLineNo">279</span>        boolean isNewCf = columnDesc == null;<a name="line.279"></a>
+<span class="sourceLineNo">280</span>        ColumnFamilyDescriptorBuilder columnDescBuilder = isNewCf ?<a name="line.280"></a>
+<span class="sourceLineNo">281</span>            ColumnFamilyDescriptorBuilder.newBuilder(cf) :<a name="line.281"></a>
+<span class="sourceLineNo">282</span>            ColumnFamilyDescriptorBuilder.newBuilder(columnDesc);<a name="line.282"></a>
+<span class="sourceLineNo">283</span>        if (bloomType != null) {<a name="line.283"></a>
+<span class="sourceLineNo">284</span>          columnDescBuilder.setBloomFilterType(bloomType);<a name="line.284"></a>
+<span class="sourceLineNo">285</span>        }<a name="line.285"></a>
+<span class="sourceLineNo">286</span>        if (compressAlgo != null) {<a name="line.286"></a>
+<span class="sourceLineNo">287</span>          columnDescBuilder.setCompressionType(compressAlgo);<a name="line.287"></a>
+<span class="sourceLineNo">288</span>        }<a name="line.288"></a>
+<span class="sourceLineNo">289</span>        if (dataBlockEncodingAlgo != null) {<a name="line.289"></a>
+<span class="sourceLineNo">290</span>          columnDescBuilder.setDataBlockEncoding(dataBlockEncodingAlgo);<a name="line.290"></a>
+<span class="sourceLineNo">291</span>        }<a name="line.291"></a>
+<span class="sourceLineNo">292</span>        if (inMemoryCF) {<a name="line.292"></a>
+<span class="sourceLineNo">293</span>          columnDescBuilder.setInMemory(inMemoryCF);<a name="line.293"></a>
+<span class="sourceLineNo">294</span>        }<a name="line.294"></a>
+<span class="sourceLineNo">295</span>        if (cipher != null) {<a name="line.295"></a>
+<span class="sourceLineNo">296</span>          byte[] keyBytes = new byte[cipher.getKeyLength()];<a name="line.296"></a>
+<span class="sourceLineNo">297</span>          new SecureRandom().nextBytes(keyBytes);<a name="line.297"></a>
+<span class="sourceLineNo">298</span>          columnDescBuilder.setEncryptionType(cipher.getName());<a name="line.298"></a>
+<span class="sourceLineNo">299</span>          columnDescBuilder.setEncryptionKey(<a name="line.299"></a>
+<span class="sourceLineNo">300</span>              EncryptionUtil.wrapKey(conf,<a name="line.300"></a>
+<span class="sourceLineNo">301</span>                  User.getCurrent().getShortName(),<a name="line.301"></a>
+<span class="sourceLineNo">302</span>                  new SecretKeySpec(keyBytes,<a name="line.302"></a>
+<span class="sourceLineNo">303</span>                      cipher.getName())));<a name="line.303"></a>
+<span class="sourceLineNo">304</span>        }<a name="line.304"></a>
+<span class="sourceLineNo">305</span>        if (mobThreshold &gt;= 0) {<a name="line.305"></a>
+<span class="sourceLineNo">306</span>          columnDescBuilder.setMobEnabled(true);<a name="line.306"></a>
+<span class="sourceLineNo">307</span>          columnDescBuilder.setMobThreshold(mobThreshold);<a name="line.307"></a>
+<span class="sourceLineNo">308</span>        }<a name="line.308"></a>
+<span class="sourceLineNo">309</span><a name="line.309"></a>
+<span class="sourceLineNo">310</span>        if (isNewCf) {<a name="line.310"></a>
+<span class="sourceLineNo">311</span>          admin.addColumnFamily(tableName, columnDescBuilder.build());<a name="line.311"></a>
+<span class="sourceLineNo">312</span>        } else {<a name="line.312"></a>
+<span class="sourceLineNo">313</span>          admin.modifyColumnFamily(tableName, columnDescBuilder.build());<a name="line.313"></a>
+<span class="sourceLineNo">314</span>        }<a name="line.314"></a>
+<span class="sourceLineNo">315</span>      }<a name="line.315"></a>
+<span class="sourceLineNo">316</span>      LOG.info("Enabling table " + tableName);<a name="line.316"></a>
+<span class="sourceLineNo">317</span>      admin.enableTable(tableName);<a name="line.317"></a>
+<span class="sourceLineNo">318</span>    }<a name="line.318"></a>
+<span class="sourceLineNo">319</span>  }<a name="line.319"></a>
+<span class="sourceLineNo">320</span><a name="line.320"></a>
+<span class="sourceLineNo">321</span>  @Override<a name="line.321"></a>
+<span class="sourceLineNo">322</span>  protected void addOptions() {<a name="line.322"></a>
+<span class="sourceLineNo">323</span>    addOptNoArg("v", OPT_VERBOSE, "Will display a full readout of logs, including ZooKeeper");<a name="line.323"></a>
+<span class="sourceLineNo">324</span>    addOptWithArg(OPT_ZK_QUORUM, "ZK quorum as comma-separated host names " +<a name="line.324"></a>
+<span class="sourceLineNo">325</span>        "without port numbers");<a name="line.325"></a>
+<span class="sourceLineNo">326</span>    addOptWithArg(OPT_ZK_PARENT_NODE, "name of parent znode in zookeeper");<a name="line.326"></a>
+<span class="sourceLineNo">327</span>    addOptWithArg(OPT_TABLE_NAME, "The name of the table to read or write");<a name="line.327"></a>
+<span class="sourceLineNo">328</span>    addOptWithArg(OPT_COLUMN_FAMILIES, "The name of the column families to use separated by comma");<a name="line.328"></a>
+<span class="sourceLineNo">329</span>    addOptWithArg(OPT_WRITE, OPT_USAGE_LOAD);<a name="line.329"></a>
+<span class="sourceLineNo">330</span>    addOptWithArg(OPT_READ, OPT_USAGE_READ);<a name="line.330"></a>
+<span class="sourceLineNo">331</span>    addOptWithArg(OPT_UPDATE, OPT_USAGE_UPDATE);<a name="line.331"></a>
+<span class="sourceLineNo">332</span>    addOptNoArg(OPT_INIT_ONLY, "Initialize the test table only, don't do any loading");<a name="line.332"></a>
+<span class="sourceLineNo">333</span>    addOptWithArg(OPT_BLOOM, OPT_USAGE_BLOOM);<a name="line.333"></a>
+<span class="sourceLineNo">334</span>    addOptWithArg(OPT_BLOOM_PARAM, "the parameter of bloom filter type");<a name="line.334"></a>
+<span class="sourceLineNo">335</span>    addOptWithArg(OPT_COMPRESSION, OPT_USAGE_COMPRESSION);<a name="line.335"></a>
+<span class="sourceLineNo">336</span>    addOptWithArg(HFileTestUtil.OPT_DATA_BLOCK_ENCODING, HFileTestUtil.OPT_DATA_BLOCK_ENCODING_USAGE);<a name="line.336"></a>
+<span class="sourceLineNo">337</span>    addOptWithArg(OPT_MAX_READ_ERRORS, "The maximum number of read errors " +<a name="line.337"></a>
+<span class="sourceLineNo">338</span>        "to tolerate before terminating all reader threads. The default is " +<a name="line.338"></a>
+<span class="sourceLineNo">339</span>        MultiThreadedReader.DEFAULT_MAX_ERRORS + ".");<a name="line.339"></a>
+<span class="sourceLineNo">340</span>    addOptWithArg(OPT_MULTIGET, "Whether to use multi-gets as opposed to " +<a name="line.340"></a>
+<span class="sourceLineNo">341</span>        "separate gets for every column in a row");<a name="line.341"></a>
+<span class="sourceLineNo">342</span>    addOptWithArg(OPT_KEY_WINDOW, "The 'key window' to maintain between " +<a name="line.342"></a>
+<span class="sourceLineNo">343</span>        "reads and writes for concurrent write/read workload. The default " +<a name="line.343"></a>
+<span class="sourceLineNo">344</span>        "is " + MultiThreadedReader.DEFAULT_KEY_WINDOW + ".");<a name="line.344"></a>
+<span class="sourceLineNo">345</span><a name="line.345"></a>
+<span class="sourceLineNo">346</span>    addOptNoArg(OPT_MULTIPUT, "Whether to use multi-puts as opposed to " +<a name="line.346"></a>
+<span class="sourceLineNo">347</span>        "separate puts for every column in a row");<a name="line.347"></a>
+<span class="sourceLineNo">348</span>    addOptNoArg(OPT_BATCHUPDATE, "Whether to use batch as opposed to " +<a name="line.348"></a>
+<span class="sourceLineNo">349</span>        "separate updates for every column in a row");<a name="line.349"></a>
+<span class="sourceLineNo">350</span>    addOptNoArg(OPT_INMEMORY, OPT_USAGE_IN_MEMORY);<a name="line.350"></a>
+<span class="sourceLineNo">351</span>    addOptWithArg(OPT_GENERATOR, OPT_GENERATOR_USAGE);<a name="line.351"></a>
+<span class="sourceLineNo">352</span>    addOptWithArg(OPT_WRITER, OPT_WRITER_USAGE);<a name="line.352"></a>
+<span class="sourceLineNo">353</span>    addOptWithArg(OPT_UPDATER, OPT_UPDATER_USAGE);<a name="line.353"></a>
+<span class="sourceLineNo">354</span>    addOptWithArg(OPT_READER, OPT_READER_USAGE);<a name="line.354"></a>
+<span class="sourceLineNo">355</span><a name="line.355"></a>
+<span class="sourceLineNo">356</span>    addOptWithArg(OPT_NUM_KEYS, "The number of keys to read/write");<a name="line.356"></a>
+<span class="sourceLineNo">357</span>    addOptWithArg(OPT_START_KEY, "The first key to read/write " +<a name="line.357"></a>
+<span class="sourceLineNo">358</span>        "(a 0-based index). The default value is " +<a name="line.358"></a>
+<span class="sourceLineNo">359</span>        DEFAULT_START_KEY + ".");<a name="line.359"></a>
+<span class="sourceLineNo">360</span>    addOptNoArg(OPT_SKIP_INIT, "Skip the initialization; assume test table "<a name="line.360"></a>
+<span class="sourceLineNo">361</span>        + "already exists");<a name="line.361"></a>
+<span class="sourceLineNo">362</span><a name="line.362"></a>
+<span class="sourceLineNo">363</span>    addOptWithArg(NUM_TABLES,<a name="line.363"></a>
+<span class="sourceLineNo">364</span>      "A positive integer number. When a number n is specified, load test "<a name="line.364"></a>
+<span class="sourceLineNo">365</span>          + "tool  will load n table parallely. -tn parameter value becomes "<a name="line.365"></a>
+<span class="sourceLineNo">366</span>          + "table name prefix. Each table name is in format &lt;tn&gt;_1...&lt;tn&gt;_n");<a name="line.366"></a>
+<span class="sourceLineNo">367</span><a name="line.367"></a>
+<span class="sourceLineNo">368</span>    addOptWithArg(OPT_ENCRYPTION, OPT_ENCRYPTION_USAGE);<a name="line.368"></a>
+<span class="sourceLineNo">369</span>    addOptNoArg(OPT_DEFERRED_LOG_FLUSH, OPT_DEFERRED_LOG_FLUSH_USAGE);<a name="line.369"></a>
+<span class="sourceLineNo">370</span>    addOptWithArg(OPT_NUM_REGIONS_PER_SERVER, OPT_NUM_REGIONS_PER_SERVER_USAGE);<a name="line.370"></a>
+<span class="sourceLineNo">371</span>    addOptWithArg(OPT_REGION_REPLICATION, OPT_REGION_REPLICATION_USAGE);<a name="line.371"></a>
+<span class="sourceLineNo">372</span>    addOptWithArg(OPT_REGION_REPLICA_ID, OPT_REGION_REPLICA_ID_USAGE);<a name="line.372"></a>
+<span class="sourceLineNo">373</span>    addOptWithArg(OPT_MOB_THRESHOLD, OPT_MOB_THRESHOLD_USAGE);<a name="line.373"></a>
+<span class="sourceLineNo">374</span>  }<a name="line.374"></a>
+<span class="sourceLineNo">375</span><a name="line.375"></a>
+<span class="sourceLineNo">376</span>  @Override<a name="line.376"></a>
+<span class="sourceLineNo">377</span>  protected CommandLineParser newParser() {<a name="line.377"></a>
+<span class="sourceLineNo">378</span>    // Commons-CLI lacks the capability to handle combinations of options, so we do it ourselves<a name="line.378"></a>
+<span class="sourceLineNo">379</span>    // Validate in parse() to get helpful error messages instead of exploding in processOptions()<a name="line.379"></a>
+<span class="sourceLineNo">380</span>    return new DefaultParser() {<a name="line.380"></a>
+<span class="sourceLineNo">381</span>      @Override<a name="line.381"></a>
+<span class="sourceLineNo">382</span>      public CommandLine parse(Options opts, String[] args, Properties props, boolean stop)<a name="line.382"></a>
+<span class="sourceLineNo">383</span>          throws ParseException {<a name="line.383"></a>
+<span class="sourceLineNo">384</span>        CommandLine cl = super.parse(opts, args, props, stop);<a name="line.384"></a>
+<span class="sourceLineNo">385</span><a name="line.385"></a>
+<span class="sourceLineNo">386</span>        boolean isReadWriteUpdate = cmd.hasOption(OPT_READ)<a name="line.386"></a>
+<span class="sourceLineNo">387</span>            || cmd.hasOption(OPT_WRITE)<a name="line.387"></a>
+<span class="sourceLineNo">388</span>            || cmd.hasOption(OPT_UPDATE);<a name="line.388"></a>
+<span class="sourceLineNo">389</span>        boolean isInitOnly = cmd.hasOption(OPT_INIT_ONLY);<a name="line.389"></a>
+<span class="sourceLineNo">390</span><a name="line.390"></a>
+<span class="sourceLineNo">391</span>        if (!isInitOnly &amp;&amp; !isReadWriteUpdate) {<a name="line.391"></a>
+<span class="sourceLineNo">392</span>          throw new MissingOptionException("Must specify either -" + OPT_INIT_ONLY<a name="line.392"></a>
+<span class="sourceLineNo">393</span>              + " or at least one of -" + OPT_READ + ", -" + OPT_WRITE + ", -" + OPT_UPDATE);<a name="line.393"></a>
+<span class="sourceLineNo">394</span>        }<a name="line.394"></a>
+<span class="sourceLineNo">395</span><a name="line.395"></a>
+<span class="sourceLineNo">396</span>        if (isInitOnly &amp;&amp; isReadWriteUpdate) {<a name="line.396"></a>
+<span class="sourceLineNo">397</span>          throw new AlreadySelectedException(OPT_INIT_ONLY + " cannot be specified with any of -"<a name="line.397"></a>
+<span class="sourceLineNo">398</span>              + OPT_READ + ", -" + OPT_WRITE + ", -" + OPT_UPDATE);<a name="line.398"></a>
+<span class="sourceLineNo">399</span>        }<a name="line.399"></a>
+<span class="sourceLineNo">400</span><a name="line.400"></a>
+<span class="sourceLineNo">401</span>        if (isReadWriteUpdate &amp;&amp; !cmd.hasOption(OPT_NUM_KEYS)) {<a name="line.401"></a>
+<span class="sourceLineNo">402</span>          throw new MissingOptionException(OPT_NUM_KEYS + " must be specified in read/write mode.");<a name="line.402"></a>
+<span class="sourceLineNo">403</span>        }<a name="line.403"></a>
+<span class="sourceLineNo">404</span><a name="line.404"></a>
+<span class="sourceLineNo">405</span>        return cl;<a name="line.405"></a>
+<span class="sourceLineNo">406</span>      }<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    };<a name="line.407"></a>
+<span class="sourceLineNo">408</span>  }<a name="line.408"></a>
+<span class="sourceLineNo">409</span><a name="line.409"></a>
+<span class="sourceLineNo">410</span>  @Override<a name="line.410"></a>
+<span class="sourceLineNo">411</span>  protected void processOptions(CommandLine cmd) {<a name="line.411"></a>
+<span class="sourceLineNo">412</span>    this.cmd = cmd;<a name="line.412"></a>
+<span class="sourceLineNo">413</span><a name="line.413"></a>
+<span class="sourceLineNo">414</span>    tableName = TableName.valueOf(cmd.getOptionValue(OPT_TABLE_NAME,<a name="line.414"></a>
+<span class="sourceLineNo">415</span>        DEFAULT_TABLE_NAME));<a name="line.415"></a>
+<span class="sourceLineNo">416</span><a name="line.416"></a>
+<span class="sourceLineNo">417</span>    if (cmd.hasOption(OPT_COLUMN_FAMILIES)) {<a name="line.417"></a>
+<span class="sourceLineNo">418</span>      String[] list = cmd.getOptionValue(OPT_COLUMN_FAMILIES).split(",");<a name="line.418"></a>
+<span class="sourceLineNo">419</span>      families = new byte[list.length][];<a name="line.419"></a>
+<span class="sourceLineNo">420</span>      for (int i = 0; i &lt; list.length; i++) {<a name="line.420"></a>
+<span class="sourceLineNo">421</span>        families[i] = Bytes.toBytes(list[i]);<a name="line.421"></a>
+<span class="sourceLineNo">422</span>      }<a name="line.422"></a>
+<span class="sourceLineNo">423</span>    } else {<a name="line.423"></a>
+<span class="sourceLineNo">424</span>      families = HFileTestUtil.DEFAULT_COLUMN_FAMILIES;<a name="line.424"></a>
+<span class="sourceLineNo">425</span>    }<a name="line.425"></a>
+<span class="sourceLineNo">426</span><a name="line.426"></a>
+<span class="sourceLineNo">427</span>    isVerbose = cmd.hasOption(OPT_VERBOSE);<a name="line.427"></a>
+<span class="sourceLineNo">428</span>    isWrite = cmd.hasOption(OPT_WRITE);<a name="line.428"></a>
+<span class="sourceLineNo">429</span>    isRead = cmd.hasOption(OPT_READ);<a name="line.429"></a>
+<span class="sourceLineNo">430</span>    isUpdate = cmd.hasOption(OPT_UPDATE);<a name="line.430"></a>
+<span class="sourceLineNo">431</span>    isInitOnly = cmd.hasOption(OPT_INIT_ONLY);<a name="line.431"></a>
+<span class="sourceLineNo">432</span>    deferredLogFlush = cmd.hasOption(OPT_DEFERRED_LOG_FLUSH);<a name="line.432"></a>
+<span class="sourceLineNo">433</span><a name="line.433"></a>
+<span class="sourceLineNo">434</span>    if (!isInitOnly) {<a name="line.434"></a>
+<span class="sourceLineNo">435</span>      startKey = parseLong(cmd.getOptionValue(OPT_START_KEY,<a name="line.435"></a>
+<span class="sourceLineNo">436</span>          String.valueOf(DEFAULT_START_KEY)), 0, Long.MAX_VALUE);<a name="line.436"></a>
+<span class="sourceLineNo">437</span>      long numKeys = parseLong(cmd.getOptionValue(OPT_NUM_KEYS), 1,<a name="line.437"></a>
+<span class="sourceLineNo">438</span>          Long.MAX_VALUE - startKey);<a name="line.438"></a>
+<span class="sourceLineNo">439</span>      endKey = startKey + numKeys;<a name="line.439"></a>
+<span class="sourceLineNo">440</span>      isSkipInit = cmd.hasOption(OPT_SKIP_INIT);<a name="line.440"></a>
+<span class="sourceLineNo">441</span>      System.out.println("Key range: [" + startKey + ".." + (endKey - 1) + "]");<a name="line.441"></a>
+<span class="sourceLineNo">442</span>    }<a name="line.442"></a>
 <span class="sourceLineNo">443</span><a name="line.443"></a>
-<span class="sourceLineNo">444</span>    if (isWrite) {<a name="line.444"></a>
-<span class="sourceLineNo">445</span>      String[] writeOpts = splitColonSeparated(OPT_WRITE, 2, 3);<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span>      int colIndex = 0;<a name="line.447"></a>
-<span class="sourceLineNo">448</span>      minColsPerKey = 1;<a name="line.448"></a>
-<span class="sourceLineNo">449</span>      maxColsPerKey = 2 * Integer.parseInt(writeOpts[colIndex++]);<a name="line.449"></a>
-<span class="sourceLineNo">450</span>      int avgColDataSize =<a name="line.450"></a>
-<span class="sourceLineNo">451</span>          parseInt(writeOpts[colIndex++], 1, Integer.MAX_VALUE);<a name="line.451"></a>
-<span class="sourceLineNo">452</span>      minColDataSize = avgColDataSize / 2;<a name="line.452"></a>
-<span class="sourceLineNo">453</span>      maxColDataSize = avgColDataSize * 3 / 2;<a name="line.453"></a>
-<span class="sourceLineNo">454</span><a name="line.454"></a>
-<span class="sourceLineNo">455</span>      if (colIndex &lt; writeOpts.length) {<a name="line.455"></a>
-<span class="sourceLineNo">456</span>        numWriterThreads = getNumThreads(writeOpts[colIndex++]);<a name="line.456"></a>
-<span class="sourceLineNo">457</span>      }<a name="line.457"></a>
-<span class="sourceLineNo">458</span><a name="line.458"></a>
-<span class="sourceLineNo">459</span>      isMultiPut = cmd.hasOption(OPT_MULTIPUT);<a name="line.459"></a>
+<span class="sourceLineNo">444</span>    parseColumnFamilyOptions(cmd);<a name="line.444"></a>
+<span class="sourceLineNo">445</span><a name="line.445"></a>
+<span class="sourceLineNo">446</span>    if (isWrite) {<a name="line.446"></a>
+<span class="sourceLineNo">447</span>      String[] writeOpts = splitColonSeparated(OPT_WRITE, 2, 3);<a name="line.447"></a>
+<span class="sourceLineNo">448</span><a name="line.448"></a>
+<span class="sourceLineNo">449</span>      int colIndex = 0;<a name="line.449"></a>
+<span class="sourceLineNo">450</span>      minColsPerKey = 1;<a name="line.450"></a>
+<span class="sourceLineNo">451</span>      maxColsPerKey = 2 * Integer.parseInt(writeOpts[colIndex++]);<a name="line.451"></a>
+<span class="sourceLineNo">452</span>      int avgColDataSize =<a name="line.452"></a>
+<span class="sourceLineNo">453</span>          parseInt(writeOpts[colIndex++], 1, Integer.MAX_VALUE);<a name="line.453"></a>
+<span class="sourceLineNo">454</span>      minColDataSize = avgColDataSize / 2;<a name="line.454"></a>
+<span class="sourceLineNo">455</span>      maxColDataSize = avgColDataSize * 3 / 2;<a name="line.455"></a>
+<span class="sourceLineNo">456</span><a name="line.456"></a>
+<span class="sourceLineNo">457</span>      if (colIndex &lt; writeOpts.length) {<a name="line.457"></a>
+<span class="sourceLineNo">458</span>        numWriterThreads = getNumThreads(writeOpts[colIndex++]);<a name="line.458"></a>
+<span class="sourceLineNo">459</span>      }<a name="line.459"></a>
 <span class="sourceLineNo">460</span><a name="line.460"></a>
-<span class="sourceLineNo">461</span>      mobThreshold = -1;<a name="line.461"></a>
-<span class="sourceLineNo">462</span>      if (cmd.hasOption(OPT_MOB_THRESHOLD)) {<a name="line.462"></a>
-<span class="sourceLineNo">463</span>        mobThreshold = Integer.parseInt(cmd.getOptionValue(OPT_MOB_THRESHOLD));<a name="line.463"></a>
-<span class="sourceLineNo">464</span>      }<a name="line.464"></a>
-<span class="sourceLineNo">465</span><a name="line.465"></a>
-<span class="sourceLineNo">466</span>      System.out.println("Multi-puts: " + isMultiPut);<a name="line.466"></a>
-<span class="sourceLineNo">467</span>      System.out.println("Columns per key: " + minColsPerKey + ".."<a name="line.467"></a>
-<span class="sourceLineNo">468</span>          + maxColsPerKey);<a name="line.468"></a>
-<span class="sourceLineNo">469</span>      System.out.println("Data size per column: " + minColDataSize + ".."<a name="line.469"></a>
-<span class="sourceLineNo">470</span>          + maxColDataSize);<a name="line.470"></a>
-<span class="sourceLineNo">471</span>    }<a name="line.471"></a>
-<span class="sourceLineNo">472</span><a name="line.472"></a>
-<span class="sourceLineNo">473</span>    if (isUpdate) {<a name="line.473"></a>
-<span class="sourceLineNo">474</span>      String[] mutateOpts = splitColonSeparated(OPT_UPDATE, 1, 3);<a name="line.474"></a>
-<span class="sourceLineNo">475</span>      int colIndex = 0;<a name="line.475"></a>
-<span class="sourceLineNo">476</span>      updatePercent = parseInt(mutateOpts[colIndex++], 0, 100);<a name="line.476"></a>
-<span class="sourceLineNo">477</span>      if (colIndex &lt; mutateOpts.length) {<a name="line.477"></a>
-<span class="sourceLineNo">478</span>        numUpdaterThreads = getNumThreads(mutateOpts[colIndex++]);<a name="line.478"></a>
-<span class="sourceLineNo">479</span>      }<a name="line.479"></a>
-<span class="sourceLineNo">480</span>      if (colIndex &lt; mutateOpts.length) {<a name="line.480"></a>
-<span class="sourceLineNo">481</span>        ignoreConflicts = parseInt(mutateOpts[colIndex++], 0, 1) == 1;<a name="line.481"></a>
-<span class="sourceLineNo">482</span>      }<a name="line.482"></a>
-<span class="sourceLineNo">483</span><a name="line.483"></a>
-<span class="sourceLineNo">484</span>      isBatchUpdate = cmd.hasOption(OPT_BATCHUPDATE);<a name="line.484"></a>
+<span class="sourceLineNo">461</span>      isMultiPut = cmd.hasOption(OPT_MULTIPUT);<a name="line.461"></a>
+<span class="sourceLineNo">462</span><a name="line.462"></a>
+<span class="sourceLineNo">463</span>      mobThreshold = -1;<a name="line.463"></a>
+<span class="sourceLineNo">464</span>      if (cmd.hasOption(OPT_MOB_THRESHOLD)) {<a name="line.464"></a>
+<span class="sourceLineNo">465</span>        mobThreshold = Integer.parseInt(cmd.getOptionValue(OPT_MOB_THRESHOLD));<a name="line.465"></a>
+<span class="sourceLineNo">466</span>      }<a name="line.466"></a>
+<span class="sourceLineNo">467</span><a name="line.467"></a>
+<span class="sourceLineNo">468</span>      System.out.println("Multi-puts: " + isMultiPut);<a name="line.468"></a>
+<span class="sourceLineNo">469</span>      System.out.println("Columns per key: " + minColsPerKey + ".."<a name="line.469"></a>
+<span class="sourceLineNo">470</span>          + maxColsPerKey);<a name="line.470"></a>
+<span class="sourceLineNo">471</span>      System.out.println("Data size per column: " + minColDataSize + ".."<a name="line.471"></a>
+<span class="sourceLineNo">472</span>          + maxColDataSize);<a name="line.472"></a>
+<span class="sourceLineNo">473</span>    }<a name="line.473"></a>
+<span class="sourceLineNo">474</span><a name="line.474"></a>
+<span class="sourceLineNo">475</span>    if (isUpdate) {<a name="line.475"></a>
+<span class="sourceLineNo">476</span>      String[] mutateOpts = splitColonSeparated(OPT_UPDATE, 1, 3);<a name="line.476"></a>
+<span class="sourceLineNo">477</span>      int colIndex = 0;<a name="line.477"></a>
+<span class="sourceLineNo">478</span>      updatePercent = parseInt(mutateOpts[colIndex++], 0, 100);<a name="line.478"></a>
+<span class="sourceLineNo">479</span>      if (colIndex &lt; mutateOpts.length) {<a name="line.479"></a>
+<span class="sourceLineNo">480</span>        numUpdaterThreads = getNumThreads(mutateOpts[colIndex++]);<a name="line.480"></a>
+<span class="sourceLineNo">481</span>      }<a name="line.481"></a>
+<span class="sourceLineNo">482</span>      if (colIndex &lt; mutateOpts.length) {<a name="line.482"></a>
+<span class="sourceLineNo">483</span>        ignoreConflicts = parseInt(mutateOpts[colIndex++], 0, 1) == 1;<a name="line.483"></a>
+<span class="sourceLineNo">484</span>      }<a name="line.484"></a>
 <span class="sourceLineNo">485</span><a name="line.485"></a>
-<span class="sourceLineNo">486</span>      System.out.println("Batch updates: " + isBatchUpdate);<a name="line.486"></a>
-<span class="sourceLineNo">487</span>      System.out.println("Percent of keys to update: " + updatePercent);<a name="line.487"></a>
-<span class="sourceLineNo">488</span>      System.out.println("Updater threads: " + numUpdaterThreads);<a name="line.488"></a>
-<span class="sourceLineNo">489</span>      System.out.println("Ignore nonce conflicts: " + ignoreConflicts);<a name="line.489"></a>
-<span class="sourceLineNo">490</span>    }<a name="line.490"></a>
-<span class="sourceLineNo">491</span><a name="line.491"></a>
-<span class="sourceLineNo">492</span>    if (isRead) {<a name="line.492"></a>
-<span class="sourceLineNo">493</span>      String[] readOpts = splitColonSeparated(OPT_READ, 1, 2);<a name="line.493"></a>
-<span class="sourceLineNo">494</span>      int colIndex = 0;<a name="line.494"></a>
-<span class="sourceLineNo">495</span>      verifyPercent = parseInt(readOpts[colIndex++], 0, 100);<a name="line.495"></a>
-<span class="sourceLineNo">496</span>      if (colIndex &lt; readOpts.length) {<a name="line.496"></a>
-<span class="sourceLineNo">497</span>        numReaderThreads = getNumThreads(readOpts[colIndex++]);<a name="line.497"></a>
-<span class="sourceLineNo">498</span>      }<a name="line.498"></a>
-<span class="sourceLineNo">499</span><a name="line.499"></a>
-<span class="sourceLineNo">500</span>      if (cmd.hasOption(OPT_MAX_READ_ERRORS)) {<a name="line.500"></a>
-<span class="sourceLineNo">501</span>        maxReadErrors = parseInt(cmd.getOptionValue(OPT_MAX_READ_ERRORS),<a name="line.501"></a>
-<span class="sourceLineNo">502</span>            0, Integer.MAX_VALUE);<a name="line.502"></a>
-<span class="sourceLineNo">503</span>      }<a name="line.503"></a>
-<span class="sourceLineNo">504</span><a name="line.504"></a>
-<span class="sourceLineNo">505</span>      if (cmd.hasOption(OPT_KEY_WINDOW)) {<a name="line.505"></a>
-<span class="sourceLineNo">506</span>        keyWindow = parseInt(cmd.getOptionValue(OPT_KEY_WINDOW),<a name="line.506"></a>
-<span class="sourceLineNo">507</span>            0, Integer.MAX_VALUE);<a name="line.507"></a>
-<span class="sourceLineNo">508</span>      }<a name="line.508"></a>
-<span class="sourceLineNo">509</span><a name="line.509"></a>
-<span class="sourceLineNo">510</span>      if (cmd.hasOption(OPT_MULTIGET)) {<a name="line.510"></a>
-<span class="sourceLineNo">511</span>        multiGetBatchSize = parseInt(cmd.getOptionValue(OPT_MULTIGET),<a name="line.511"></a>
-<span class="sourceLineNo">512</span>            0, Integer.MAX_VALUE);<a name="line.512"></a>
-<span class="sourceLineNo">513</span>      }<a name="line.513"></a>
-<span class="sourceLineNo">514</span><a name="line.514"></a>
-<span class="sourceLineNo">515</span>      System.out.println("Multi-gets (value of 1 means no multigets): " + multiGetBatchSize);<a name="line.515"></a>
-<span class="sourceLineNo">516</span>      System.out.println("Percent of keys to verify: " + verifyPercent);<a name="line.516"></a>
-<span class="sourceLineNo">517</span>      System.out.println("Reader threads: " + numReaderThreads);<a name="line.517"></a>
-<span class="sourceLineNo">518</span>    }<a name="line.518"></a>
-<span class="sourceLineNo">519</span><a name="line.519"></a>
-<span class="sourceLineNo">520</span>    numTables = 1;<a name="line.520"></a>
-<span class="sourceLineNo">521</span>    if (cmd.hasOption(NUM_TABLES)) {<a name="line.521"></a>
-<span class="sourceLineNo">522</span>      numTables = parseInt(cmd.getOptionValue(NUM_TABLES), 1, Short.MAX_VALUE);<a name="line.522"></a>
-<span class="sourceLineNo">523</span>    }<a name="line.523"></a>
-<span class="sourceLineNo">524</span><a name="line.524"></a>
-<span class="sourceLineNo">525</span>    numRegionsPerServer = DEFAULT_NUM_REGIONS_PER_SERVER;<a name="line.525"></a>
-<span class="sourceLineNo">526</span>    if (cmd.hasOption(OPT_NUM_REGIONS_PER_SERVER)) {<a name="line.526"></a>
-<span class="sourceLineNo">527</span>      numRegionsPerServer = Integer.parseInt(cmd.getOptionValue(OPT_NUM_REGIONS_PER_SERVER));<a name="line.527"></a>
-<span class="sourceLineNo">528</span>    }<a name="line.528"></a>
-<span class="sourceLineNo">529</span><a name="line.529"></a>
-<span class="sourceLineNo">530</span>    regionReplication = 1;<a name="line.530"></a>
-<span class="sourceLineNo">531</span>    if (cmd.hasOption(OPT_REGION_REPLICATION)) {<a name="line.531"></a>
-<span class="sourceLineNo">532</span>      regionReplication = Integer.parseInt(cmd.getOptionValue(OPT_REGION_REPLICATION));<a name="line.532"></a>
-<span class="sourceLineNo">533</span>    }<a name="line.533"></a>
-<span class="sourceLineNo">534</span><a name="line.534"></a>
-<span class="sourceLineNo">535</span>    regionReplicaId = -1;<a name="line.535"></a>
-<span class="sourceLineNo">536</span>    if (cmd.hasOption(OPT_REGION_REPLICA_ID)) {<a name="line.536"></a>
-<span class="sourceLineNo">537</span>      regionReplicaId = Integer.parseInt(cmd.getOptionValue(OPT_REGION_REPLICA_ID));<a name="line.537"></a>
-<span class="sourceLineNo">538</span>    }<a name="line.538"></a>
-<span class="sourceLineNo">539</span>  }<a name="line.539"></a>
-<span class="sourceLineNo">540</span><a name="line.540"></a>
-<span class="sourceLineNo">541</span>  private void parseColumnFamilyOptions(CommandLine cmd) {<a name="line.541"></a>
-<span class="sourceLineNo">542</span>    String dataBlockEncodingStr = cmd.getOptionValue(HFileTestUtil.OPT_DATA_BLOCK_ENCODING);<a name="line.542"></a>
-<span class="sourceLineNo">543</span>    dataBlockEncodingAlgo = dataBlockEncodingStr == null ? null :<a name="line.543"></a>
-<span class="sourceLineNo">544</span>        DataBlockEncoding.valueOf(dataBlockEncodingStr);<a name="line.544"></a>
-<span class="sourceLineNo">545</span><a name="line.545"></a>
-<span class="sourceLineNo">546</span>    String compressStr = cmd.getOptionValue(OPT_COMPRESSION);<a name="line.546"></a>
-<span class="sourceLineNo">547</span>    compressAlgo = compressStr == null ? Compression.Algorithm.NONE :<a name="line.547"></a>
-<span class="sourceLineNo">548</span>        Compression.Algorithm.valueOf(compressStr);<a name="line.548"></a>
-<span class="sourceLineNo">549</span><a name="line.549"></a>
-<span class="sourceLineNo">550</span>    String bloomStr = cmd.getOptionValue(OPT_BLOOM);<a name="line.550"></a>
-<span class="sourceLineNo">551</span>    bloomType = bloomStr == null ? BloomType.ROW :<a name="line.551"></a>
-<span class="sourceLineNo">552</span>        BloomType.valueOf(bloomStr);<a name="line.552"></a>
-<span class="sourceLineNo">553</span><a name="line.553"></a>
-<span class="sourceLineNo">554</span>    inMemoryCF = cmd.hasOption(OPT_INMEMORY);<a name="line.554"></a>
-<span class="sourceLineNo">555</span>    if (cmd.hasOption(OPT_ENCRYPTION)) {<a name="line.555"></a>
-<span class="sourceLineNo">556</span>      cipher = Encryption.getCipher(conf, cmd.getOptionValue(OPT_ENCRYPTION));<a name="line.556"></a>
-<span class="sourceLineNo">557</span>    }<a name="line.557"></a>
-<span class="sourceLineNo">558</span><a name="line.558"></a>
-<span class="sourceLineNo">559</span>  }<a name="line.559"></a>
-<span class="sourceLineNo">560</span><a name="line.560"></a>
-<span class="sourceLineNo">561</span>  public void initTestTable() throws IOException {<a name="line.561"></a>
-<span class="sourceLineNo">562</span>    Durability durability = Durability.USE_DEFAULT;<a name="line.562"></a>
-<span class="sourceLineNo">563</span>    if (deferredLogFlush) {<a name="line.563"></a>
-<span class="sourceLineNo">564</span>      durability = Durability.ASYNC_WAL;<a name="line.564"></a>
-<span class="sourceLineNo">565</span>    }<a name="line.565"></a>
-<span class="sourceLineNo">566</span><a name="line.566"></a>
-<span class="sourceLineNo">567</span>    HBaseTestingUtility.createPreSplitLoadTestTable(conf, tableName,<a name="line.567"></a>
-<span class="sourceLineNo">568</span>      getColumnFamilies(), compressAlgo, dataBlockEncodingAlgo, numRegionsPerServer,<a name="line.568"></a>
-<span class="sourceLineNo">569</span>        regionReplication, durability);<a name="line.569"></a>
-<span class="sourceLineNo">570</span>    applyColumnFamilyOptions(tableName, getColumnFamilies());<a name="line.570"></a>
-<span class="sourceLineNo">571</span>  }<a name="line.571"></a>
-<span class="sourceLineNo">572</span><a name="line.572"></a>
-<span class="sourceLineNo">573</span>  @Override<a name="line.573"></a>
-<span class="sourceLineNo">574</span>  protected int doWork() throws IOException {<a name="line.574"></a>
-<span class="sourceLineNo">575</span>    if (!isVerbose) {<a name="line.575"></a>
-<span class="sourceLineNo">576</span>        LogManager.getLogger(ZooKeeper.class.getName()).setLevel(Level.WARN);<a name="line.576"></a>
-<span class="sourceLineNo">577</span>    }<a name="line.577"></a>
-<span class="sourceLineNo">578</span>    if (numTables &gt; 1) {<a name="line.578"></a>
-<span class="sourceLineNo">579</span>      return parallelLoadTables();<a name="line.579"></a>
-<span class="sourceLineNo">580</span>    } else {<a name="line.580"></a>
-<span class="sourceLineNo">581</span>      return loadTable();<a name="line.581"></a>
-<span class="sourceLineNo">582</span>    }<a name="line.582"></a>
-<span class="sourceLineNo">583</span>  }<a name="line.583"></a>
+<span class="sourceLineNo">486</span>      isBatchUpdate = cmd.hasOption(OPT_BATCHUPDATE);<a name="line.486"></a>
+<span class="sourceLineNo">487</span><a name="line.487"></a>
+<span class="sourceLineNo">488</span>      System.out.println("Batch updates: " + isBatchUpdate);<a name="line.488"></a>
+<span class="sourceLineNo">489</span>      System.out.println("Percent of keys to update: " + updatePercent);<a name="line.489"></a>
+<span class="sourceLineNo">490</span>      System.out.println("Updater threads: " + numUpdaterThreads);<a name="line.490"></a>
+<span class="sourceLineNo">491</span>      System.out.println("Ignore nonce conflicts: " + ignoreConflicts);<a name="line.491"></a>
+<span class="sourceLineNo">492</span>    }<a name="line.492"></a>
+<span class="sourceLineNo">493</span><a name="line.493"></a>
+<span class="sourceLineNo">494</span>    if (isRead) {<a name="line.494"></a>
+<span class="sourceLineNo">495</span>      String[] readOpts = splitColonSeparated(OPT_READ, 1, 2);<a name="line.495"></a>
+<span class="sourceLineNo">496</span>      int colIndex = 0;<a name="line.496"></a>
+<span class="sourceLineNo">497</span>      verifyPercent = parseInt(readOpts[colIndex++], 0, 100);<a name="line.497"></a>
+<span class="sourceLineNo">498</span>      if (colIndex &lt; readOpts.length) {<a name="line.498"></a>
+<span class="sourceLineNo">499</span>        numReaderThreads = getNumThreads(readOpts[colIndex++]);<a name="line.499"></a>
+<span class="sourceLineNo">500</span>      }<a name="line.500"></a>
+<span class="sourceLineNo">501</span><a name="line.501"></a>
+<span class="sourceLineNo">502</span>      if (cmd.hasOption(OPT_MAX_READ_ERRORS)) {<a name="line.502"></a>
+<span class="sourceLineNo">503</span>        maxReadErrors = parseInt(cmd.getOptionValue(OPT_MAX_READ_ERRORS),<a name="line.503"></a>
+<span class="sourceLineNo">504</span>            0, Integer.MAX_VALUE);<a name="line.504"></a>
+<span class="sourceLineNo">505</span>      }<a name="line.505"></a>
+<span class="sourceLineNo">506</span><a name="line.506"></a>
+<span class="sourceLineNo">507</span>      if (cmd.hasOption(OPT_KEY_WINDOW)) {<a name="line.507"></a>
+<span class="sourceLineNo">508</span>        keyWindow = parseInt(cmd.getOptionValue(OPT_KEY_WINDOW),<a name="line.508"></a>
+<span class="sourceLineNo">509</span>            0, Integer.MAX_VALUE);<a name="line.509"></a>
+<span class="sourceLineNo">510</span>      }<a name="line.510"></a>
+<span class="sourceLineNo">511</span><a name="line.511"></a>
+<span class="sourceLineNo">512</span>      if (cmd.hasOption(OPT_MULTIGET)) {<a name="line.512"></a>
+<span class="sourceLineNo">513</span>        multiGetBatchSize = parseInt(cmd.getOptionValue(OPT_MULTIGET),<a name="line.513"></a>
+<span class="sourceLineNo">514</span>            0, Integer.MAX_VALUE);<a name="line.514"></a>
+<span class="sourceLineNo">515</span>      }<a name="line.515"></a>
+<span class="sourceLineNo">516</span><a name="line.516"></a>
+<span class="sourceLineNo">517</span>      System.out.println("Multi-gets (value of 1 means no multigets): " + multiGetBatchSize);<a name="line.517"></a>
+<span class="sourceLineNo">518</span>      System.out.println("Percent of keys to verify: " + verifyPercent);<a name="line.518"></a>
+<span class="sourceLineNo">519</span>      System.out.println("Reader threads: " + numReaderThreads);<a name="line.519"></a>
+<span class="sourceLineNo">520</span>    }<a name="line.520"></a>
+<span class="sourceLineNo">521</span><a name="line.521"></a>
+<span class="sourceLineNo">522</span>    numTables = 1;<a name="line.522"></a>
+<span class="sourceLineNo">523</span>    if (cmd.hasOption(NUM_TABLES)) {<a name="line.523"></a>
+<span class="sourceLineNo">524</span>      numTables = parseInt(cmd.getOptionValue(NUM_TABLES), 1, Short.MAX_VALUE);<a name="line.524"></a>
+<span class="sourceLineNo">525</span>    }<a name="line.525"></a>
+<span class="sourceLineNo">526</span><a name="line.526"></a>
+<span class="sourceLineNo">527</span>    numRegionsPerServer = DEFAULT_NUM_REGIONS_PER_

<TRUNCATED>

Mime
View raw message