You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by gi...@apache.org on 2018/10/08 14:52:51 UTC
[01/10] hbase-site git commit: Published site at
e8df847d4ed16b8432221d28bcfc00e1621df586.
Repository: hbase-site
Updated Branches:
refs/heads/asf-site 7fdd77ab4 -> 37bdc06bf
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
index 65a28b9..0c894de 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
@@ -179,4146 +179,4145 @@
<span class="sourceLineNo">171</span> * avoiding port contention if another local HBase instance is already running).<a name="line.171"></a>
<span class="sourceLineNo">172</span> * <p>To preserve test data directories, pass the system property "hbase.testing.preserve.testdir"<a name="line.172"></a>
<span class="sourceLineNo">173</span> * setting it to true.<a name="line.173"></a>
-<span class="sourceLineNo">174</span> * For triggering test.<a name="line.174"></a>
-<span class="sourceLineNo">175</span> */<a name="line.175"></a>
-<span class="sourceLineNo">176</span>@InterfaceAudience.Public<a name="line.176"></a>
-<span class="sourceLineNo">177</span>@SuppressWarnings("deprecation")<a name="line.177"></a>
-<span class="sourceLineNo">178</span>public class HBaseTestingUtility extends HBaseZKTestingUtility {<a name="line.178"></a>
-<span class="sourceLineNo">179</span><a name="line.179"></a>
-<span class="sourceLineNo">180</span> /**<a name="line.180"></a>
-<span class="sourceLineNo">181</span> * System property key to get test directory value. Name is as it is because mini dfs has<a name="line.181"></a>
-<span class="sourceLineNo">182</span> * hard-codings to put test data here. It should NOT be used directly in HBase, as it's a property<a name="line.182"></a>
-<span class="sourceLineNo">183</span> * used in mini dfs.<a name="line.183"></a>
-<span class="sourceLineNo">184</span> * @deprecated can be used only with mini dfs<a name="line.184"></a>
-<span class="sourceLineNo">185</span> */<a name="line.185"></a>
-<span class="sourceLineNo">186</span> @Deprecated<a name="line.186"></a>
-<span class="sourceLineNo">187</span> private static final String TEST_DIRECTORY_KEY = "test.build.data";<a name="line.187"></a>
-<span class="sourceLineNo">188</span><a name="line.188"></a>
-<span class="sourceLineNo">189</span> public static final String REGIONS_PER_SERVER_KEY = "hbase.test.regions-per-server";<a name="line.189"></a>
-<span class="sourceLineNo">190</span> /**<a name="line.190"></a>
-<span class="sourceLineNo">191</span> * The default number of regions per regionserver when creating a pre-split<a name="line.191"></a>
-<span class="sourceLineNo">192</span> * table.<a name="line.192"></a>
-<span class="sourceLineNo">193</span> */<a name="line.193"></a>
-<span class="sourceLineNo">194</span> public static final int DEFAULT_REGIONS_PER_SERVER = 3;<a name="line.194"></a>
+<span class="sourceLineNo">174</span> */<a name="line.174"></a>
+<span class="sourceLineNo">175</span>@InterfaceAudience.Public<a name="line.175"></a>
+<span class="sourceLineNo">176</span>@SuppressWarnings("deprecation")<a name="line.176"></a>
+<span class="sourceLineNo">177</span>public class HBaseTestingUtility extends HBaseZKTestingUtility {<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span> /**<a name="line.179"></a>
+<span class="sourceLineNo">180</span> * System property key to get test directory value. Name is as it is because mini dfs has<a name="line.180"></a>
+<span class="sourceLineNo">181</span> * hard-codings to put test data here. It should NOT be used directly in HBase, as it's a property<a name="line.181"></a>
+<span class="sourceLineNo">182</span> * used in mini dfs.<a name="line.182"></a>
+<span class="sourceLineNo">183</span> * @deprecated can be used only with mini dfs<a name="line.183"></a>
+<span class="sourceLineNo">184</span> */<a name="line.184"></a>
+<span class="sourceLineNo">185</span> @Deprecated<a name="line.185"></a>
+<span class="sourceLineNo">186</span> private static final String TEST_DIRECTORY_KEY = "test.build.data";<a name="line.186"></a>
+<span class="sourceLineNo">187</span><a name="line.187"></a>
+<span class="sourceLineNo">188</span> public static final String REGIONS_PER_SERVER_KEY = "hbase.test.regions-per-server";<a name="line.188"></a>
+<span class="sourceLineNo">189</span> /**<a name="line.189"></a>
+<span class="sourceLineNo">190</span> * The default number of regions per regionserver when creating a pre-split<a name="line.190"></a>
+<span class="sourceLineNo">191</span> * table.<a name="line.191"></a>
+<span class="sourceLineNo">192</span> */<a name="line.192"></a>
+<span class="sourceLineNo">193</span> public static final int DEFAULT_REGIONS_PER_SERVER = 3;<a name="line.193"></a>
+<span class="sourceLineNo">194</span><a name="line.194"></a>
<span class="sourceLineNo">195</span><a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span> public static final String PRESPLIT_TEST_TABLE_KEY = "hbase.test.pre-split-table";<a name="line.197"></a>
-<span class="sourceLineNo">198</span> public static final boolean PRESPLIT_TEST_TABLE = true;<a name="line.198"></a>
-<span class="sourceLineNo">199</span><a name="line.199"></a>
-<span class="sourceLineNo">200</span> private MiniDFSCluster dfsCluster = null;<a name="line.200"></a>
-<span class="sourceLineNo">201</span><a name="line.201"></a>
-<span class="sourceLineNo">202</span> private volatile HBaseCluster hbaseCluster = null;<a name="line.202"></a>
-<span class="sourceLineNo">203</span> private MiniMRCluster mrCluster = null;<a name="line.203"></a>
-<span class="sourceLineNo">204</span><a name="line.204"></a>
-<span class="sourceLineNo">205</span> /** If there is a mini cluster running for this testing utility instance. */<a name="line.205"></a>
-<span class="sourceLineNo">206</span> private volatile boolean miniClusterRunning;<a name="line.206"></a>
-<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span> private String hadoopLogDir;<a name="line.208"></a>
-<span class="sourceLineNo">209</span><a name="line.209"></a>
-<span class="sourceLineNo">210</span> /** Directory on test filesystem where we put the data for this instance of<a name="line.210"></a>
-<span class="sourceLineNo">211</span> * HBaseTestingUtility*/<a name="line.211"></a>
-<span class="sourceLineNo">212</span> private Path dataTestDirOnTestFS = null;<a name="line.212"></a>
-<span class="sourceLineNo">213</span><a name="line.213"></a>
-<span class="sourceLineNo">214</span> /**<a name="line.214"></a>
-<span class="sourceLineNo">215</span> * Shared cluster connection.<a name="line.215"></a>
-<span class="sourceLineNo">216</span> */<a name="line.216"></a>
-<span class="sourceLineNo">217</span> private volatile Connection connection;<a name="line.217"></a>
-<span class="sourceLineNo">218</span><a name="line.218"></a>
-<span class="sourceLineNo">219</span> /** Filesystem URI used for map-reduce mini-cluster setup */<a name="line.219"></a>
-<span class="sourceLineNo">220</span> private static String FS_URI;<a name="line.220"></a>
-<span class="sourceLineNo">221</span><a name="line.221"></a>
-<span class="sourceLineNo">222</span> /** This is for unit tests parameterized with a single boolean. */<a name="line.222"></a>
-<span class="sourceLineNo">223</span> public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();<a name="line.223"></a>
-<span class="sourceLineNo">224</span><a name="line.224"></a>
-<span class="sourceLineNo">225</span> /**<a name="line.225"></a>
-<span class="sourceLineNo">226</span> * Checks to see if a specific port is available.<a name="line.226"></a>
-<span class="sourceLineNo">227</span> *<a name="line.227"></a>
-<span class="sourceLineNo">228</span> * @param port the port number to check for availability<a name="line.228"></a>
-<span class="sourceLineNo">229</span> * @return <tt>true</tt> if the port is available, or <tt>false</tt> if not<a name="line.229"></a>
-<span class="sourceLineNo">230</span> */<a name="line.230"></a>
-<span class="sourceLineNo">231</span> public static boolean available(int port) {<a name="line.231"></a>
-<span class="sourceLineNo">232</span> ServerSocket ss = null;<a name="line.232"></a>
-<span class="sourceLineNo">233</span> DatagramSocket ds = null;<a name="line.233"></a>
-<span class="sourceLineNo">234</span> try {<a name="line.234"></a>
-<span class="sourceLineNo">235</span> ss = new ServerSocket(port);<a name="line.235"></a>
-<span class="sourceLineNo">236</span> ss.setReuseAddress(true);<a name="line.236"></a>
-<span class="sourceLineNo">237</span> ds = new DatagramSocket(port);<a name="line.237"></a>
-<span class="sourceLineNo">238</span> ds.setReuseAddress(true);<a name="line.238"></a>
-<span class="sourceLineNo">239</span> return true;<a name="line.239"></a>
-<span class="sourceLineNo">240</span> } catch (IOException e) {<a name="line.240"></a>
-<span class="sourceLineNo">241</span> // Do nothing<a name="line.241"></a>
-<span class="sourceLineNo">242</span> } finally {<a name="line.242"></a>
-<span class="sourceLineNo">243</span> if (ds != null) {<a name="line.243"></a>
-<span class="sourceLineNo">244</span> ds.close();<a name="line.244"></a>
-<span class="sourceLineNo">245</span> }<a name="line.245"></a>
-<span class="sourceLineNo">246</span><a name="line.246"></a>
-<span class="sourceLineNo">247</span> if (ss != null) {<a name="line.247"></a>
-<span class="sourceLineNo">248</span> try {<a name="line.248"></a>
-<span class="sourceLineNo">249</span> ss.close();<a name="line.249"></a>
-<span class="sourceLineNo">250</span> } catch (IOException e) {<a name="line.250"></a>
-<span class="sourceLineNo">251</span> /* should not be thrown */<a name="line.251"></a>
-<span class="sourceLineNo">252</span> }<a name="line.252"></a>
-<span class="sourceLineNo">253</span> }<a name="line.253"></a>
-<span class="sourceLineNo">254</span> }<a name="line.254"></a>
-<span class="sourceLineNo">255</span><a name="line.255"></a>
-<span class="sourceLineNo">256</span> return false;<a name="line.256"></a>
-<span class="sourceLineNo">257</span> }<a name="line.257"></a>
-<span class="sourceLineNo">258</span><a name="line.258"></a>
-<span class="sourceLineNo">259</span> /**<a name="line.259"></a>
-<span class="sourceLineNo">260</span> * Create all combinations of Bloom filters and compression algorithms for<a name="line.260"></a>
-<span class="sourceLineNo">261</span> * testing.<a name="line.261"></a>
-<span class="sourceLineNo">262</span> */<a name="line.262"></a>
-<span class="sourceLineNo">263</span> private static List<Object[]> bloomAndCompressionCombinations() {<a name="line.263"></a>
-<span class="sourceLineNo">264</span> List<Object[]> configurations = new ArrayList<>();<a name="line.264"></a>
-<span class="sourceLineNo">265</span> for (Compression.Algorithm comprAlgo :<a name="line.265"></a>
-<span class="sourceLineNo">266</span> HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {<a name="line.266"></a>
-<span class="sourceLineNo">267</span> for (BloomType bloomType : BloomType.values()) {<a name="line.267"></a>
-<span class="sourceLineNo">268</span> configurations.add(new Object[] { comprAlgo, bloomType });<a name="line.268"></a>
-<span class="sourceLineNo">269</span> }<a name="line.269"></a>
-<span class="sourceLineNo">270</span> }<a name="line.270"></a>
-<span class="sourceLineNo">271</span> return Collections.unmodifiableList(configurations);<a name="line.271"></a>
-<span class="sourceLineNo">272</span> }<a name="line.272"></a>
-<span class="sourceLineNo">273</span><a name="line.273"></a>
-<span class="sourceLineNo">274</span> /**<a name="line.274"></a>
-<span class="sourceLineNo">275</span> * Create combination of memstoreTS and tags<a name="line.275"></a>
-<span class="sourceLineNo">276</span> */<a name="line.276"></a>
-<span class="sourceLineNo">277</span> private static List<Object[]> memStoreTSAndTagsCombination() {<a name="line.277"></a>
-<span class="sourceLineNo">278</span> List<Object[]> configurations = new ArrayList<>();<a name="line.278"></a>
-<span class="sourceLineNo">279</span> configurations.add(new Object[] { false, false });<a name="line.279"></a>
-<span class="sourceLineNo">280</span> configurations.add(new Object[] { false, true });<a name="line.280"></a>
-<span class="sourceLineNo">281</span> configurations.add(new Object[] { true, false });<a name="line.281"></a>
-<span class="sourceLineNo">282</span> configurations.add(new Object[] { true, true });<a name="line.282"></a>
-<span class="sourceLineNo">283</span> return Collections.unmodifiableList(configurations);<a name="line.283"></a>
-<span class="sourceLineNo">284</span> }<a name="line.284"></a>
-<span class="sourceLineNo">285</span><a name="line.285"></a>
-<span class="sourceLineNo">286</span> public static List<Object[]> memStoreTSTagsAndOffheapCombination() {<a name="line.286"></a>
-<span class="sourceLineNo">287</span> List<Object[]> configurations = new ArrayList<>();<a name="line.287"></a>
-<span class="sourceLineNo">288</span> configurations.add(new Object[] { false, false, true });<a name="line.288"></a>
-<span class="sourceLineNo">289</span> configurations.add(new Object[] { false, false, false });<a name="line.289"></a>
-<span class="sourceLineNo">290</span> configurations.add(new Object[] { false, true, true });<a name="line.290"></a>
-<span class="sourceLineNo">291</span> configurations.add(new Object[] { false, true, false });<a name="line.291"></a>
-<span class="sourceLineNo">292</span> configurations.add(new Object[] { true, false, true });<a name="line.292"></a>
-<span class="sourceLineNo">293</span> configurations.add(new Object[] { true, false, false });<a name="line.293"></a>
-<span class="sourceLineNo">294</span> configurations.add(new Object[] { true, true, true });<a name="line.294"></a>
-<span class="sourceLineNo">295</span> configurations.add(new Object[] { true, true, false });<a name="line.295"></a>
-<span class="sourceLineNo">296</span> return Collections.unmodifiableList(configurations);<a name="line.296"></a>
-<span class="sourceLineNo">297</span> }<a name="line.297"></a>
-<span class="sourceLineNo">298</span><a name="line.298"></a>
-<span class="sourceLineNo">299</span> public static final Collection<Object[]> BLOOM_AND_COMPRESSION_COMBINATIONS =<a name="line.299"></a>
-<span class="sourceLineNo">300</span> bloomAndCompressionCombinations();<a name="line.300"></a>
+<span class="sourceLineNo">196</span> public static final String PRESPLIT_TEST_TABLE_KEY = "hbase.test.pre-split-table";<a name="line.196"></a>
+<span class="sourceLineNo">197</span> public static final boolean PRESPLIT_TEST_TABLE = true;<a name="line.197"></a>
+<span class="sourceLineNo">198</span><a name="line.198"></a>
+<span class="sourceLineNo">199</span> private MiniDFSCluster dfsCluster = null;<a name="line.199"></a>
+<span class="sourceLineNo">200</span><a name="line.200"></a>
+<span class="sourceLineNo">201</span> private volatile HBaseCluster hbaseCluster = null;<a name="line.201"></a>
+<span class="sourceLineNo">202</span> private MiniMRCluster mrCluster = null;<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span> /** If there is a mini cluster running for this testing utility instance. */<a name="line.204"></a>
+<span class="sourceLineNo">205</span> private volatile boolean miniClusterRunning;<a name="line.205"></a>
+<span class="sourceLineNo">206</span><a name="line.206"></a>
+<span class="sourceLineNo">207</span> private String hadoopLogDir;<a name="line.207"></a>
+<span class="sourceLineNo">208</span><a name="line.208"></a>
+<span class="sourceLineNo">209</span> /** Directory on test filesystem where we put the data for this instance of<a name="line.209"></a>
+<span class="sourceLineNo">210</span> * HBaseTestingUtility*/<a name="line.210"></a>
+<span class="sourceLineNo">211</span> private Path dataTestDirOnTestFS = null;<a name="line.211"></a>
+<span class="sourceLineNo">212</span><a name="line.212"></a>
+<span class="sourceLineNo">213</span> /**<a name="line.213"></a>
+<span class="sourceLineNo">214</span> * Shared cluster connection.<a name="line.214"></a>
+<span class="sourceLineNo">215</span> */<a name="line.215"></a>
+<span class="sourceLineNo">216</span> private volatile Connection connection;<a name="line.216"></a>
+<span class="sourceLineNo">217</span><a name="line.217"></a>
+<span class="sourceLineNo">218</span> /** Filesystem URI used for map-reduce mini-cluster setup */<a name="line.218"></a>
+<span class="sourceLineNo">219</span> private static String FS_URI;<a name="line.219"></a>
+<span class="sourceLineNo">220</span><a name="line.220"></a>
+<span class="sourceLineNo">221</span> /** This is for unit tests parameterized with a single boolean. */<a name="line.221"></a>
+<span class="sourceLineNo">222</span> public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();<a name="line.222"></a>
+<span class="sourceLineNo">223</span><a name="line.223"></a>
+<span class="sourceLineNo">224</span> /**<a name="line.224"></a>
+<span class="sourceLineNo">225</span> * Checks to see if a specific port is available.<a name="line.225"></a>
+<span class="sourceLineNo">226</span> *<a name="line.226"></a>
+<span class="sourceLineNo">227</span> * @param port the port number to check for availability<a name="line.227"></a>
+<span class="sourceLineNo">228</span> * @return <tt>true</tt> if the port is available, or <tt>false</tt> if not<a name="line.228"></a>
+<span class="sourceLineNo">229</span> */<a name="line.229"></a>
+<span class="sourceLineNo">230</span> public static boolean available(int port) {<a name="line.230"></a>
+<span class="sourceLineNo">231</span> ServerSocket ss = null;<a name="line.231"></a>
+<span class="sourceLineNo">232</span> DatagramSocket ds = null;<a name="line.232"></a>
+<span class="sourceLineNo">233</span> try {<a name="line.233"></a>
+<span class="sourceLineNo">234</span> ss = new ServerSocket(port);<a name="line.234"></a>
+<span class="sourceLineNo">235</span> ss.setReuseAddress(true);<a name="line.235"></a>
+<span class="sourceLineNo">236</span> ds = new DatagramSocket(port);<a name="line.236"></a>
+<span class="sourceLineNo">237</span> ds.setReuseAddress(true);<a name="line.237"></a>
+<span class="sourceLineNo">238</span> return true;<a name="line.238"></a>
+<span class="sourceLineNo">239</span> } catch (IOException e) {<a name="line.239"></a>
+<span class="sourceLineNo">240</span> // Do nothing<a name="line.240"></a>
+<span class="sourceLineNo">241</span> } finally {<a name="line.241"></a>
+<span class="sourceLineNo">242</span> if (ds != null) {<a name="line.242"></a>
+<span class="sourceLineNo">243</span> ds.close();<a name="line.243"></a>
+<span class="sourceLineNo">244</span> }<a name="line.244"></a>
+<span class="sourceLineNo">245</span><a name="line.245"></a>
+<span class="sourceLineNo">246</span> if (ss != null) {<a name="line.246"></a>
+<span class="sourceLineNo">247</span> try {<a name="line.247"></a>
+<span class="sourceLineNo">248</span> ss.close();<a name="line.248"></a>
+<span class="sourceLineNo">249</span> } catch (IOException e) {<a name="line.249"></a>
+<span class="sourceLineNo">250</span> /* should not be thrown */<a name="line.250"></a>
+<span class="sourceLineNo">251</span> }<a name="line.251"></a>
+<span class="sourceLineNo">252</span> }<a name="line.252"></a>
+<span class="sourceLineNo">253</span> }<a name="line.253"></a>
+<span class="sourceLineNo">254</span><a name="line.254"></a>
+<span class="sourceLineNo">255</span> return false;<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> /**<a name="line.258"></a>
+<span class="sourceLineNo">259</span> * Create all combinations of Bloom filters and compression algorithms for<a name="line.259"></a>
+<span class="sourceLineNo">260</span> * testing.<a name="line.260"></a>
+<span class="sourceLineNo">261</span> */<a name="line.261"></a>
+<span class="sourceLineNo">262</span> private static List<Object[]> bloomAndCompressionCombinations() {<a name="line.262"></a>
+<span class="sourceLineNo">263</span> List<Object[]> configurations = new ArrayList<>();<a name="line.263"></a>
+<span class="sourceLineNo">264</span> for (Compression.Algorithm comprAlgo :<a name="line.264"></a>
+<span class="sourceLineNo">265</span> HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {<a name="line.265"></a>
+<span class="sourceLineNo">266</span> for (BloomType bloomType : BloomType.values()) {<a name="line.266"></a>
+<span class="sourceLineNo">267</span> configurations.add(new Object[] { comprAlgo, bloomType });<a name="line.267"></a>
+<span class="sourceLineNo">268</span> }<a name="line.268"></a>
+<span class="sourceLineNo">269</span> }<a name="line.269"></a>
+<span class="sourceLineNo">270</span> return Collections.unmodifiableList(configurations);<a name="line.270"></a>
+<span class="sourceLineNo">271</span> }<a name="line.271"></a>
+<span class="sourceLineNo">272</span><a name="line.272"></a>
+<span class="sourceLineNo">273</span> /**<a name="line.273"></a>
+<span class="sourceLineNo">274</span> * Create combination of memstoreTS and tags<a name="line.274"></a>
+<span class="sourceLineNo">275</span> */<a name="line.275"></a>
+<span class="sourceLineNo">276</span> private static List<Object[]> memStoreTSAndTagsCombination() {<a name="line.276"></a>
+<span class="sourceLineNo">277</span> List<Object[]> configurations = new ArrayList<>();<a name="line.277"></a>
+<span class="sourceLineNo">278</span> configurations.add(new Object[] { false, false });<a name="line.278"></a>
+<span class="sourceLineNo">279</span> configurations.add(new Object[] { false, true });<a name="line.279"></a>
+<span class="sourceLineNo">280</span> configurations.add(new Object[] { true, false });<a name="line.280"></a>
+<span class="sourceLineNo">281</span> configurations.add(new Object[] { true, true });<a name="line.281"></a>
+<span class="sourceLineNo">282</span> return Collections.unmodifiableList(configurations);<a name="line.282"></a>
+<span class="sourceLineNo">283</span> }<a name="line.283"></a>
+<span class="sourceLineNo">284</span><a name="line.284"></a>
+<span class="sourceLineNo">285</span> public static List<Object[]> memStoreTSTagsAndOffheapCombination() {<a name="line.285"></a>
+<span class="sourceLineNo">286</span> List<Object[]> configurations = new ArrayList<>();<a name="line.286"></a>
+<span class="sourceLineNo">287</span> configurations.add(new Object[] { false, false, true });<a name="line.287"></a>
+<span class="sourceLineNo">288</span> configurations.add(new Object[] { false, false, false });<a name="line.288"></a>
+<span class="sourceLineNo">289</span> configurations.add(new Object[] { false, true, true });<a name="line.289"></a>
+<span class="sourceLineNo">290</span> configurations.add(new Object[] { false, true, false });<a name="line.290"></a>
+<span class="sourceLineNo">291</span> configurations.add(new Object[] { true, false, true });<a name="line.291"></a>
+<span class="sourceLineNo">292</span> configurations.add(new Object[] { true, false, false });<a name="line.292"></a>
+<span class="sourceLineNo">293</span> configurations.add(new Object[] { true, true, true });<a name="line.293"></a>
+<span class="sourceLineNo">294</span> configurations.add(new Object[] { true, true, false });<a name="line.294"></a>
+<span class="sourceLineNo">295</span> return Collections.unmodifiableList(configurations);<a name="line.295"></a>
+<span class="sourceLineNo">296</span> }<a name="line.296"></a>
+<span class="sourceLineNo">297</span><a name="line.297"></a>
+<span class="sourceLineNo">298</span> public static final Collection<Object[]> BLOOM_AND_COMPRESSION_COMBINATIONS =<a name="line.298"></a>
+<span class="sourceLineNo">299</span> bloomAndCompressionCombinations();<a name="line.299"></a>
+<span class="sourceLineNo">300</span><a name="line.300"></a>
<span class="sourceLineNo">301</span><a name="line.301"></a>
-<span class="sourceLineNo">302</span><a name="line.302"></a>
-<span class="sourceLineNo">303</span> /**<a name="line.303"></a>
-<span class="sourceLineNo">304</span> * <p>Create an HBaseTestingUtility using a default configuration.<a name="line.304"></a>
-<span class="sourceLineNo">305</span> *<a name="line.305"></a>
-<span class="sourceLineNo">306</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.306"></a>
-<span class="sourceLineNo">307</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.307"></a>
-<span class="sourceLineNo">308</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.308"></a>
-<span class="sourceLineNo">309</span> *<a name="line.309"></a>
-<span class="sourceLineNo">310</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.310"></a>
-<span class="sourceLineNo">311</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.311"></a>
-<span class="sourceLineNo">312</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.312"></a>
-<span class="sourceLineNo">313</span> * at which point they will switch to using mini DFS for storage.<a name="line.313"></a>
-<span class="sourceLineNo">314</span> */<a name="line.314"></a>
-<span class="sourceLineNo">315</span> public HBaseTestingUtility() {<a name="line.315"></a>
-<span class="sourceLineNo">316</span> this(HBaseConfiguration.create());<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> * <p>Create an HBaseTestingUtility using a given configuration.<a name="line.320"></a>
-<span class="sourceLineNo">321</span> *<a name="line.321"></a>
-<span class="sourceLineNo">322</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.322"></a>
-<span class="sourceLineNo">323</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.323"></a>
-<span class="sourceLineNo">324</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.324"></a>
-<span class="sourceLineNo">325</span> *<a name="line.325"></a>
-<span class="sourceLineNo">326</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.326"></a>
-<span class="sourceLineNo">327</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.327"></a>
-<span class="sourceLineNo">328</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.328"></a>
-<span class="sourceLineNo">329</span> * at which point they will switch to using mini DFS for storage.<a name="line.329"></a>
-<span class="sourceLineNo">330</span> *<a name="line.330"></a>
-<span class="sourceLineNo">331</span> * @param conf The configuration to use for further operations<a name="line.331"></a>
-<span class="sourceLineNo">332</span> */<a name="line.332"></a>
-<span class="sourceLineNo">333</span> public HBaseTestingUtility(@Nullable Configuration conf) {<a name="line.333"></a>
-<span class="sourceLineNo">334</span> super(conf);<a name="line.334"></a>
-<span class="sourceLineNo">335</span><a name="line.335"></a>
-<span class="sourceLineNo">336</span> // a hbase checksum verification failure will cause unit tests to fail<a name="line.336"></a>
-<span class="sourceLineNo">337</span> ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.337"></a>
-<span class="sourceLineNo">338</span><a name="line.338"></a>
-<span class="sourceLineNo">339</span> // Save this for when setting default file:// breaks things<a name="line.339"></a>
-<span class="sourceLineNo">340</span> if (this.conf.get("fs.defaultFS") != null) {<a name="line.340"></a>
-<span class="sourceLineNo">341</span> this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.341"></a>
-<span class="sourceLineNo">342</span> }<a name="line.342"></a>
-<span class="sourceLineNo">343</span> if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.343"></a>
-<span class="sourceLineNo">344</span> this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.344"></a>
-<span class="sourceLineNo">345</span> }<a name="line.345"></a>
-<span class="sourceLineNo">346</span> // Every cluster is a local cluster until we start DFS<a name="line.346"></a>
-<span class="sourceLineNo">347</span> // Note that conf could be null, but this.conf will not be<a name="line.347"></a>
-<span class="sourceLineNo">348</span> String dataTestDir = getDataTestDir().toString();<a name="line.348"></a>
-<span class="sourceLineNo">349</span> this.conf.set("fs.defaultFS","file:///");<a name="line.349"></a>
-<span class="sourceLineNo">350</span> this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.350"></a>
-<span class="sourceLineNo">351</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.351"></a>
-<span class="sourceLineNo">352</span> this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.352"></a>
-<span class="sourceLineNo">353</span> // If the value for random ports isn't set set it to true, thus making<a name="line.353"></a>
-<span class="sourceLineNo">354</span> // tests opt-out for random port assignment<a name="line.354"></a>
-<span class="sourceLineNo">355</span> this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.355"></a>
-<span class="sourceLineNo">356</span> this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.356"></a>
-<span class="sourceLineNo">357</span> }<a name="line.357"></a>
-<span class="sourceLineNo">358</span><a name="line.358"></a>
-<span class="sourceLineNo">359</span> /**<a name="line.359"></a>
-<span class="sourceLineNo">360</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.360"></a>
-<span class="sourceLineNo">361</span> * @return a normal HBaseTestingUtility<a name="line.361"></a>
-<span class="sourceLineNo">362</span> */<a name="line.362"></a>
-<span class="sourceLineNo">363</span> @Deprecated<a name="line.363"></a>
-<span class="sourceLineNo">364</span> public static HBaseTestingUtility createLocalHTU() {<a name="line.364"></a>
-<span class="sourceLineNo">365</span> return new HBaseTestingUtility();<a name="line.365"></a>
-<span class="sourceLineNo">366</span> }<a name="line.366"></a>
-<span class="sourceLineNo">367</span><a name="line.367"></a>
-<span class="sourceLineNo">368</span> /**<a name="line.368"></a>
-<span class="sourceLineNo">369</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.369"></a>
-<span class="sourceLineNo">370</span> * @return a normal HBaseTestingUtility<a name="line.370"></a>
-<span class="sourceLineNo">371</span> */<a name="line.371"></a>
-<span class="sourceLineNo">372</span> @Deprecated<a name="line.372"></a>
-<span class="sourceLineNo">373</span> public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.373"></a>
-<span class="sourceLineNo">374</span> return new HBaseTestingUtility(c);<a name="line.374"></a>
-<span class="sourceLineNo">375</span> }<a name="line.375"></a>
-<span class="sourceLineNo">376</span><a name="line.376"></a>
-<span class="sourceLineNo">377</span> /**<a name="line.377"></a>
-<span class="sourceLineNo">378</span> * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.378"></a>
-<span class="sourceLineNo">379</span> */<a name="line.379"></a>
-<span class="sourceLineNo">380</span> public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.380"></a>
-<span class="sourceLineNo">381</span> closeRegionAndWAL((HRegion)r);<a name="line.381"></a>
-<span class="sourceLineNo">382</span> }<a name="line.382"></a>
-<span class="sourceLineNo">383</span><a name="line.383"></a>
-<span class="sourceLineNo">384</span> /**<a name="line.384"></a>
-<span class="sourceLineNo">385</span> * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.385"></a>
-<span class="sourceLineNo">386</span> */<a name="line.386"></a>
-<span class="sourceLineNo">387</span> public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.387"></a>
-<span class="sourceLineNo">388</span> if (r == null) return;<a name="line.388"></a>
-<span class="sourceLineNo">389</span> r.close();<a name="line.389"></a>
-<span class="sourceLineNo">390</span> if (r.getWAL() == null) return;<a name="line.390"></a>
-<span class="sourceLineNo">391</span> r.getWAL().close();<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> /**<a name="line.394"></a>
-<span class="sourceLineNo">395</span> * Returns this classes's instance of {@link Configuration}. Be careful how<a name="line.395"></a>
-<span class="sourceLineNo">396</span> * you use the returned Configuration since {@link Connection} instances<a name="line.396"></a>
-<span class="sourceLineNo">397</span> * can be shared. The Map of Connections is keyed by the Configuration. If<a name="line.397"></a>
-<span class="sourceLineNo">398</span> * say, a Connection was being used against a cluster that had been shutdown,<a name="line.398"></a>
-<span class="sourceLineNo">399</span> * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.399"></a>
-<span class="sourceLineNo">400</span> * be wholesome. Rather than use the return direct, its usually best to<a name="line.400"></a>
-<span class="sourceLineNo">401</span> * make a copy and use that. Do<a name="line.401"></a>
-<span class="sourceLineNo">402</span> * <code>Configuration c = new Configuration(INSTANCE.getConfiguration());</code><a name="line.402"></a>
-<span class="sourceLineNo">403</span> * @return Instance of Configuration.<a name="line.403"></a>
-<span class="sourceLineNo">404</span> */<a name="line.404"></a>
-<span class="sourceLineNo">405</span> @Override<a name="line.405"></a>
-<span class="sourceLineNo">406</span> public Configuration getConfiguration() {<a name="line.406"></a>
-<span class="sourceLineNo">407</span> return super.getConfiguration();<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> public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.410"></a>
-<span class="sourceLineNo">411</span> this.hbaseCluster = hbaseCluster;<a name="line.411"></a>
-<span class="sourceLineNo">412</span> }<a name="line.412"></a>
-<span class="sourceLineNo">413</span><a name="line.413"></a>
-<span class="sourceLineNo">414</span> /**<a name="line.414"></a>
-<span class="sourceLineNo">415</span> * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.415"></a>
-<span class="sourceLineNo">416</span> * Give it a random name so can have many concurrent tests running if<a name="line.416"></a>
-<span class="sourceLineNo">417</span> * we need to. It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.417"></a>
-<span class="sourceLineNo">418</span> * System property, as it's what minidfscluster bases<a name="line.418"></a>
-<span class="sourceLineNo">419</span> * it data dir on. Moding a System property is not the way to do concurrent<a name="line.419"></a>
-<span class="sourceLineNo">420</span> * instances -- another instance could grab the temporary<a name="line.420"></a>
-<span class="sourceLineNo">421</span> * value unintentionally -- but not anything can do about it at moment;<a name="line.421"></a>
-<span class="sourceLineNo">422</span> * single instance only is how the minidfscluster works.<a name="line.422"></a>
-<span class="sourceLineNo">423</span> *<a name="line.423"></a>
-<span class="sourceLineNo">424</span> * We also create the underlying directory for<a name="line.424"></a>
-<span class="sourceLineNo">425</span> * hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.425"></a>
-<span class="sourceLineNo">426</span> * in the conf, and as a system property for hadoop.tmp.dir<a name="line.426"></a>
-<span class="sourceLineNo">427</span> *<a name="line.427"></a>
-<span class="sourceLineNo">428</span> * @return The calculated data test build directory, if newly-created.<a name="line.428"></a>
-<span class="sourceLineNo">429</span> */<a name="line.429"></a>
-<span class="sourceLineNo">430</span> @Override<a name="line.430"></a>
-<span class="sourceLineNo">431</span> protected Path setupDataTestDir() {<a name="line.431"></a>
-<span class="sourceLineNo">432</span> Path testPath = super.setupDataTestDir();<a name="line.432"></a>
-<span class="sourceLineNo">433</span> if (null == testPath) {<a name="line.433"></a>
-<span class="sourceLineNo">434</span> return null;<a name="line.434"></a>
-<span class="sourceLineNo">435</span> }<a name="line.435"></a>
-<span class="sourceLineNo">436</span><a name="line.436"></a>
-<span class="sourceLineNo">437</span> createSubDirAndSystemProperty(<a name="line.437"></a>
-<span class="sourceLineNo">438</span> "hadoop.log.dir",<a name="line.438"></a>
-<span class="sourceLineNo">439</span> testPath, "hadoop-log-dir");<a name="line.439"></a>
-<span class="sourceLineNo">440</span><a name="line.440"></a>
-<span class="sourceLineNo">441</span> // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.441"></a>
-<span class="sourceLineNo">442</span> // we want our own value to ensure uniqueness on the same machine<a name="line.442"></a>
-<span class="sourceLineNo">443</span> createSubDirAndSystemProperty(<a name="line.443"></a>
-<span class="sourceLineNo">444</span> "hadoop.tmp.dir",<a name="line.444"></a>
-<span class="sourceLineNo">445</span> testPath, "hadoop-tmp-dir");<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span> // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.447"></a>
-<span class="sourceLineNo">448</span> createSubDir(<a name="line.448"></a>
-<span class="sourceLineNo">449</span> "mapreduce.cluster.local.dir",<a name="line.449"></a>
-<span class="sourceLineNo">450</span> testPath, "mapred-local-dir");<a name="line.450"></a>
-<span class="sourceLineNo">451</span><a name="line.451"></a>
-<span class="sourceLineNo">452</span> return testPath;<a name="line.452"></a>
-<span class="sourceLineNo">453</span> }<a name="line.453"></a>
-<span class="sourceLineNo">454</span><a name="line.454"></a>
-<span class="sourceLineNo">455</span> private void createSubDirAndSystemProperty(<a name="line.455"></a>
-<span class="sourceLineNo">456</span> String propertyName, Path parent, String subDirName){<a name="line.456"></a>
-<span class="sourceLineNo">457</span><a name="line.457"></a>
-<span class="sourceLineNo">458</span> String sysValue = System.getProperty(propertyName);<a name="line.458"></a>
-<span class="sourceLineNo">459</span><a name="line.459"></a>
-<span class="sourceLineNo">460</span> if (sysValue != null) {<a name="line.460"></a>
-<span class="sourceLineNo">461</span> // There is already a value set. So we do nothing but hope<a name="line.461"></a>
-<span class="sourceLineNo">462</span> // that there will be no conflicts<a name="line.462"></a>
-<span class="sourceLineNo">463</span> LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.463"></a>
-<span class="sourceLineNo">464</span> sysValue + " so I do NOT create it in " + parent);<a name="line.464"></a>
-<span class="sourceLineNo">465</span> String confValue = conf.get(propertyName);<a name="line.465"></a>
-<span class="sourceLineNo">466</span> if (confValue != null && !confValue.endsWith(sysValue)){<a name="line.466"></a>
-<span class="sourceLineNo">467</span> LOG.warn(<a name="line.467"></a>
-<span class="sourceLineNo">468</span> propertyName + " property value differs in configuration and system: "+<a name="line.468"></a>
-<span class="sourceLineNo">469</span> "Configuration="+confValue+" while System="+sysValue+<a name="line.469"></a>
-<span class="sourceLineNo">470</span> " Erasing configuration value by system value."<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> conf.set(propertyName, sysValue);<a name="line.473"></a>
-<span class="sourceLineNo">474</span> } else {<a name="line.474"></a>
-<span class="sourceLineNo">475</span> // Ok, it's not set, so we create it as a subdirectory<a name="line.475"></a>
-<span class="sourceLineNo">476</span> createSubDir(propertyName, parent, subDirName);<a name="line.476"></a>
-<span class="sourceLineNo">477</span> System.setProperty(propertyName, conf.get(propertyName));<a name="line.477"></a>
-<span class="sourceLineNo">478</span> }<a name="line.478"></a>
-<span class="sourceLineNo">479</span> }<a name="line.479"></a>
-<span class="sourceLineNo">480</span><a name="line.480"></a>
-<span class="sourceLineNo">481</span> /**<a name="line.481"></a>
-<span class="sourceLineNo">482</span> * @return Where to write test data on the test filesystem; Returns working directory<a name="line.482"></a>
-<span class="sourceLineNo">483</span> * for the test filesystem by default<a name="line.483"></a>
-<span class="sourceLineNo">484</span> * @see #setupDataTestDirOnTestFS()<a name="line.484"></a>
-<span class="sourceLineNo">485</span> * @see #getTestFileSystem()<a name="line.485"></a>
-<span class="sourceLineNo">486</span> */<a name="line.486"></a>
-<span class="sourceLineNo">487</span> private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.487"></a>
-<span class="sourceLineNo">488</span> FileSystem fs = getTestFileSystem();<a name="line.488"></a>
-<span class="sourceLineNo">489</span> return new Path(fs.getWorkingDirectory(), "test-data");<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> /**<a name="line.492"></a>
-<span class="sourceLineNo">493</span> * @return META table descriptor<a name="line.493"></a>
-<span class="sourceLineNo">494</span> * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.494"></a>
-<span class="sourceLineNo">495</span> * use {@link #getMetaTableDescriptorBuilder()}<a name="line.495"></a>
-<span class="sourceLineNo">496</span> */<a name="line.496"></a>
-<span class="sourceLineNo">497</span> @Deprecated<a name="line.497"></a>
-<span class="sourceLineNo">498</span> public HTableDescriptor getMetaTableDescriptor() {<a name="line.498"></a>
-<span class="sourceLineNo">499</span> return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<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> /**<a name="line.502"></a>
-<span class="sourceLineNo">503</span> * @return META table descriptor<a name="line.503"></a>
-<span class="sourceLineNo">504</span> */<a name="line.504"></a>
-<span class="sourceLineNo">505</span> public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.505"></a>
-<span class="sourceLineNo">506</span> try {<a name="line.506"></a>
-<span class="sourceLineNo">507</span> return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.507"></a>
-<span class="sourceLineNo">508</span> } catch (IOException e) {<a name="line.508"></a>
-<span class="sourceLineNo">509</span> throw new RuntimeException("Unable to create META table descriptor", e);<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><a name="line.512"></a>
-<span class="sourceLineNo">513</span> /**<a name="line.513"></a>
-<span class="sourceLineNo">514</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.514"></a>
-<span class="sourceLineNo">515</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.515"></a>
-<span class="sourceLineNo">516</span> * if the test relies on it.<a name="line.516"></a>
-<span class="sourceLineNo">517</span> * @return a unique path in the test filesystem<a name="line.517"></a>
-<span class="sourceLineNo">518</span> */<a name="line.518"></a>
-<span class="sourceLineNo">519</span> public Path getDataTestDirOnTestFS() throws IOException {<a name="line.519"></a>
-<span class="sourceLineNo">520</span> if (dataTestDirOnTestFS == null) {<a name="line.520"></a>
-<span class="sourceLineNo">521</span> setupDataTestDirOnTestFS();<a name="line.521"></a>
-<span class="sourceLineNo">522</span> }<a name="line.522"></a>
-<span class="sourceLineNo">523</span><a name="line.523"></a>
-<span class="sourceLineNo">524</span> return dataTestDirOnTestFS;<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> /**<a name="line.527"></a>
-<span class="sourceLineNo">528</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.528"></a>
-<span class="sourceLineNo">529</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.529"></a>
-<span class="sourceLineNo">530</span> * if the test relies on it.<a name="line.530"></a>
-<span class="sourceLineNo">531</span> * @return a unique path in the test filesystem<a name="line.531"></a>
-<span class="sourceLineNo">532</span> * @param subdirName name of the subdir to create under the base test dir<a name="line.532"></a>
-<span class="sourceLineNo">533</span> */<a name="line.533"></a>
-<span class="sourceLineNo">534</span> public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.534"></a>
-<span class="sourceLineNo">535</span> return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.535"></a>
-<span class="sourceLineNo">536</span> }<a name="line.536"></a>
-<span class="sourceLineNo">537</span><a name="line.537"></a>
-<span class="sourceLineNo">538</span> /**<a name="line.538"></a>
-<span class="sourceLineNo">539</span> * Sets up a path in test filesystem to be used by tests.<a name="line.539"></a>
-<span class="sourceLineNo">540</span> * Creates a new directory if not already setup.<a name="line.540"></a>
-<span class="sourceLineNo">541</span> */<a name="line.541"></a>
-<span class="sourceLineNo">542</span> private void setupDataTestDirOnTestFS() throws IOException {<a name="line.542"></a>
-<span class="sourceLineNo">543</span> if (dataTestDirOnTestFS != null) {<a name="line.543"></a>
-<span class="sourceLineNo">544</span> LOG.warn("Data test on test fs dir already setup in "<a name="line.544"></a>
-<span class="sourceLineNo">545</span> + dataTestDirOnTestFS.toString());<a name="line.545"></a>
-<span class="sourceLineNo">546</span> return;<a name="line.546"></a>
-<span class="sourceLineNo">547</span> }<a name="line.547"></a>
-<span class="sourceLineNo">548</span> dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.548"></a>
-<span class="sourceLineNo">549</span> }<a name="line.549"></a>
-<span class="sourceLineNo">550</span><a name="line.550"></a>
-<span class="sourceLineNo">551</span> /**<a name="line.551"></a>
-<span class="sourceLineNo">552</span> * Sets up a new path in test filesystem to be used by tests.<a name="line.552"></a>
-<span class="sourceLineNo">553</span> */<a name="line.553"></a>
-<span class="sourceLineNo">554</span> private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.554"></a>
-<span class="sourceLineNo">555</span> //The file system can be either local, mini dfs, or if the configuration<a name="line.555"></a>
-<span class="sourceLineNo">556</span> //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.556"></a>
-<span class="sourceLineNo">557</span> //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.557"></a>
-<span class="sourceLineNo">558</span> //the working directory, and create a unique sub dir there<a name="line.558"></a>
-<span class="sourceLineNo">559</span> FileSystem fs = getTestFileSystem();<a name="line.559"></a>
-<span class="sourceLineNo">560</span> Path newDataTestDir;<a name="line.560"></a>
-<span class="sourceLineNo">561</span> String randomStr = getRandomUUID().toString();<a name="line.561"></a>
-<span class="sourceLineNo">562</span> if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.562"></a>
-<span class="sourceLineNo">563</span> newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.563"></a>
-<span class="sourceLineNo">564</span> File dataTestDir = new File(newDataTestDir.toString());<a name="line.564"></a>
-<span class="sourceLineNo">565</span> if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.565"></a>
-<span class="sourceLineNo">566</span> } else {<a name="line.566"></a>
-<span class="sourceLineNo">567</span> Path base = getBaseTestDirOnTestFS();<a name="line.567"></a>
-<span class="sourceLineNo">568</span> newDataTestDir = new Path(base, randomStr);<a name="line.568"></a>
-<span class="sourceLineNo">569</span> if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.569"></a>
-<span class="sourceLineNo">570</span> }<a name="line.570"></a>
-<span class="sourceLineNo">571</span> return newDataTestDir;<a name="line.571"></a>
-<span class="sourceLineNo">572</span> }<a name="line.572"></a>
-<span class="sourceLineNo">573</span><a name="line.573"></a>
-<span class="sourceLineNo">574</span> /**<a name="line.574"></a>
-<span class="sourceLineNo">575</span> * Cleans the test data directory on the test filesystem.<a name="line.575"></a>
-<span class="sourceLineNo">576</span> * @return True if we removed the test dirs<a name="line.576"></a>
-<span class="sourceLineNo">577</span> * @throws IOException<a name="line.577"></a>
-<span class="sourceLineNo">578</span> */<a name="line.578"></a>
-<span class="sourceLineNo">579</span> public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.579"></a>
-<span class="sourceLineNo">580</span> boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.580"></a>
-<span class="sourceLineNo">581</span> if (ret)<a name="line.581"></a>
-<span class="sourceLineNo">582</span> dataTestDirOnTestFS = null;<a name="line.582"></a>
-<span class="sourceLineNo">583</span> return ret;<a name="line.583"></a>
-<span class="sourceLineNo">584</span> }<a name="line.584"></a>
-<span class="sourceLineNo">585</span><a name="line.585"></a>
-<span class="sourceLineNo">586</span> /**<a name="line.586"></a>
-<span class="sourceLineNo">587</span> * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.587"></a>
-<span class="sourceLineNo">588</span> * @return True if we removed child<a name="line.588"></a>
-<span class="sourceLineNo">589</span> * @throws IOException<a name="line.589"></a>
-<span class="sourceLineNo">590</span> */<a name="line.590"></a>
-<span class="sourceLineNo">591</span> public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.591"></a>
-<span class="sourceLineNo">592</span> Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.592"></a>
-<span class="sourceLineNo">593</span> return getTestFileSystem().delete(cpath, true);<a name="line.593"></a>
-<span class="sourceLineNo">594</span> }<a name="line.594"></a>
-<span class="sourceLineNo">595</span><a name="line.595"></a>
-<span class="sourceLineNo">596</span> /**<a name="line.596"></a>
-<span class="sourceLineNo">597</span> * Start a minidfscluster.<a name="line.597"></a>
-<span class="sourceLineNo">598</span> * @param servers How many DNs to start.<a name="line.598"></a>
-<span class="sourceLineNo">599</span> * @throws Exception<a name="line.599"></a>
-<span class="sourceLineNo">600</span> * @see #shutdownMiniDFSCluster()<a name="line.600"></a>
-<span class="sourceLineNo">601</span> * @return The mini dfs cluster created.<a name="line.601"></a>
-<span class="sourceLineNo">602</span> */<a name="line.602"></a>
-<span class="sourceLineNo">603</span> public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.603"></a>
-<span class="sourceLineNo">604</span> return startMiniDFSCluster(servers, null);<a name="line.604"></a>
-<span class="sourceLineNo">605</span> }<a name="line.605"></a>
-<span class="sourceLineNo">606</span><a name="line.606"></a>
-<span class="sourceLineNo">607</span> /**<a name="line.607"></a>
-<span class="sourceLineNo">608</span> * Start a minidfscluster.<a name="line.608"></a>
-<span class="sourceLineNo">609</span> * This is useful if you want to run datanode on distinct hosts for things<a name="line.609"></a>
-<span class="sourceLineNo">610</span> * like HDFS block location verification.<a name="line.610"></a>
-<span class="sourceLineNo">611</span> * If you start MiniDFSCluster without host names, all instances of the<a name="line.611"></a>
-<span class="sourceLineNo">612</span> * datanodes will have the same host name.<a name="line.612"></a>
-<span class="sourceLineNo">613</span> * @param hosts hostnames DNs to run on.<a name="line.613"></a>
-<span class="sourceLineNo">614</span> * @throws Exception<a name="line.614"></a>
-<span class="sourceLineNo">615</span> * @see #shutdownMiniDFSCluster()<a name="line.615"></a>
-<span class="sourceLineNo">616</span> * @return The mini dfs cluster created.<a name="line.616"></a>
-<span class="sourceLineNo">617</span> */<a name="line.617"></a>
-<span class="sourceLineNo">618</span> public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.618"></a>
-<span class="sourceLineNo">619</span> throws Exception {<a name="line.619"></a>
-<span class="sourceLineNo">620</span> if ( hosts != null && hosts.length != 0) {<a name="line.620"></a>
-<span class="sourceLineNo">621</span> return startMiniDFSCluster(hosts.length, hosts);<a name="line.621"></a>
-<span class="sourceLineNo">622</span> } else {<a name="line.622"></a>
-<span class="sourceLineNo">623</span> return startMiniDFSCluster(1, null);<a name="line.623"></a>
-<span class="sourceLineNo">624</span> }<a name="line.624"></a>
-<span class="sourceLineNo">625</span> }<a name="line.625"></a>
-<span class="sourceLineNo">626</span><a name="line.626"></a>
-<span class="sourceLineNo">627</span> /**<a name="line.627"></a>
-<span class="sourceLineNo">628</span> * Start a minidfscluster.<a name="line.628"></a>
-<span class="sourceLineNo">629</span> * Can only create one.<a name="line.629"></a>
-<span class="sourceLineNo">630</span> * @param servers How many DNs to start.<a name="line.630"></a>
-<span class="sourceLineNo">631</span> * @param hosts hostnames DNs to run on.<a name="line.631"></a>
-<span class="sourceLineNo">632</span> * @throws Exception<a name="line.632"></a>
-<span class="sourceLineNo">633</span> * @see #shutdownMiniDFSCluster()<a name="line.633"></a>
-<span class="sourceLineNo">634</span> * @return The mini dfs cluster created.<a name="line.634"></a>
-<span class="sourceLineNo">635</span> */<a name="line.635"></a>
-<span class="sourceLineNo">636</span> public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.636"></a>
-<span class="sourceLineNo">637</span> throws Exception {<a name="line.637"></a>
-<span class="sourceLineNo">638</span> return startMiniDFSCluster(servers, null, hosts);<a name="line.638"></a>
-<span class="sourceLineNo">639</span> }<a name="line.639"></a>
-<span class="sourceLineNo">640</span><a name="line.640"></a>
-<span class="sourceLineNo">641</span> private void setFs() throws IOException {<a name="line.641"></a>
-<span class="sourceLineNo">642</span> if(this.dfsCluster == null){<a name="line.642"></a>
-<span class="sourceLineNo">643</span> LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.643"></a>
-<span class="sourceLineNo">644</span> return;<a name="line.644"></a>
-<span class="sourceLineNo">645</span> }<a name="line.645"></a>
-<span class="sourceLineNo">646</span> FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.646"></a>
-<span class="sourceLineNo">647</span> FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.647"></a>
-<span class="sourceLineNo">648</span><a name="line.648"></a>
-<span class="sourceLineNo">649</span> // re-enable this check with dfs<a name="line.649"></a>
-<span class="sourceLineNo">650</span> conf.unset(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE);<a name="line.650"></a>
-<span class="sourceLineNo">651</span> }<a name="line.651"></a>
-<span class="sourceLineNo">652</span><a name="line.652"></a>
-<span class="sourceLineNo">653</span> public MiniDFSCluster startMiniDFSCluster(int servers, final String racks[], String hosts[])<a name="line.653"></a>
-<span class="sourceLineNo">654</span> throws Exception {<a name="line.654"></a>
-<span class="sourceLineNo">655</span> createDirsAndSetProperties();<a name="line.655"></a>
-<span class="sourceLineNo">656</span> EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);<a name="line.656"></a>
-<span class="sourceLineNo">657</span><a name="line.657"></a>
-<span class="sourceLineNo">658</span> // Error level to skip some warnings specific to the minicluster. See HBASE-4709<a name="line.658"></a>
-<span class="sourceLineNo">659</span> org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).<a name="line.659"></a>
-<span class="sourceLineNo">660</span> setLevel(org.apache.log4j.Level.ERROR);<a name="line.660"></a>
-<span class="sourceLineNo">661</span> org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.impl.MetricsSystemImpl.class).<a name="line.661"></a>
-<span class="sourceLineNo">662</span> setLevel(org.apache.log4j.Level.ERROR);<a name="line.662"></a>
-<span class="sourceLineNo">663</span><a name="line.663"></a>
-<span class="sourceLineNo">664</span> TraceUtil.initTracer(conf);<a name="line.664"></a>
-<span class="sourceLineNo">665</span><a name="line.665"></a>
-<span class="sourceLineNo">666</span> this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,<a name="line.666"></a>
-<span class="sourceLineNo">667</span> true, null, racks, hosts, null);<a name="line.667"></a>
-<span class="sourceLineNo">668</span><a name="line.668"></a>
-<span class="sourceLineNo">669</span> // Set this just-started cluster as our filesystem.<a name="line.669"></a>
-<span class="sourceLineNo">670</span> setFs();<a name="line.670"></a>
-<span class="sourceLineNo">671</span><a name="line.671"></a>
-<span class="sourceLineNo">672</span> // Wait for the cluster to be totally up<a name="line.672"></a>
-<span class="sourceLineNo">673</span> this.dfsCluster.waitClusterUp();<a name="line.673"></a>
-<span class="sourceLineNo">674</span><a name="line.674"></a>
-<span class="sourceLineNo">675</span> //reset the test directory for test file system<a name="line.675"></a>
-<span class="sourceLineNo">676</span> dataTestDirOnTestFS = null;<a name="line.676"></a>
-<span class="sourceLineNo">677</span> String dataTestDir = getDataTestDir().toString();<a name="line.677"></a>
-<span class="sourceLineNo">678</span> conf.set(HConstants.HBASE_DIR, dataTestDir);<a name="line.678"></a>
-<span class="sourceLineNo">679</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.679"></a>
-<span class="sourceLineNo">680</span><a name="line.680"></a>
-<span class="sourceLineNo">681</span> return this.dfsCluster;<a name="line.681"></a>
-<span class="sourceLineNo">682</span> }<a name="line.682"></a>
-<span class="sourceLineNo">683</span><a name="line.683"></a>
-<span class="sourceLineNo">684</span> public MiniDFSCluster startMiniDFSClusterForTestWAL(int namenodePort) throws IOException {<a name="line.684"></a>
-<span class="sourceLineNo">685</span> createDirsAndSetProperties();<a name="line.685"></a>
-<span class="sourceLineNo">686</span> dfsCluster = new MiniDFSCluster(namenodePort, conf, 5, false, true, true, null,<a name="line.686"></a>
-<span class="sourceLineNo">687</span> null, null, null);<a name="line.687"></a>
-<span class="sourceLineNo">688</span> return dfsCluster;<a name="line.688"></a>
-<span class="sourceLineNo">689</span> }<a name="line.689"></a>
-<span class="sourceLineNo">690</span><a name="line.690"></a>
-<span class="sourceLineNo">691</span> /** This is used before starting HDFS and map-reduce mini-clusters */<a name="line.691"></a>
-<span class="sourceLineNo">692</span> private void createDirsAndSetProperties() throws IOException {<a name="line.692"></a>
-<span class="sourceLineNo">693</span> setupClusterTestDir();<a name="line.693"></a>
-<span class="sourceLineNo">694</span> conf.set(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.694"></a>
-<span class="sourceLineNo">695</span> System.setProperty(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.695"></a>
-<span class="sourceLineNo">696</span> createDirAndSetProperty("cache_data", "test.cache.data");<a name="line.696"></a>
-<span class="sourceLineNo">697</span> createDirAndSetProperty("hadoop_tmp", "hadoop.tmp.dir");<a name="line.697"></a>
-<span class="sourceLineNo">698</span> hadoopLogDir = createDirAndSetProperty("hadoop_logs", "hadoop.log.dir");<a name="line.698"></a>
-<span class="sourceLineNo">699</span> createDirAndSetProperty("mapred_local", "mapreduce.cluster.local.dir");<a name="line.699"></a>
-<span class="sourceLineNo">700</span> createDirAndSetProperty("mapred_temp", "mapreduce.cluster.temp.dir");<a name="line.700"></a>
-<span class="sourceLineNo">701</span> enableShortCircuit();<a name="line.701"></a>
-<span class="sourceLineNo">702</span><a name="line.702"></a>
-<span class="sourceLineNo">703</span> Path root = getDataTestDirOnTestFS("hadoop");<a name="line.703"></a>
-<span class="sourceLineNo">704</span> conf.set(MapreduceTestingShim.getMROutputDirProp(),<a name="line.704"></a>
-<span class="sourceLineNo">705</span> new Path(root, "mapred-output-dir").toString());<a name="line.705"></a>
-<span class="sourceLineNo">706</span> conf.set("mapreduce.jobtracker.system.dir", new Path(root, "mapred-system-dir").toString());<a name="line.706"></a>
-<span class="sourceLineNo">707</span> conf.set("mapreduce.jobtracker.staging.root.dir",<a name="line.707"></a>
-<span class="sourceLineNo">708</span> new Path(root, "mapreduce-jobtracker-staging-root-dir").toString());<a name="line.708"></a>
-<span class="sourceLineNo">709</span> conf.set("mapreduce.job.working.dir", new Path(root, "mapred-working-dir").toString());<a name="line.709"></a>
-<span class="sourceLineNo">710</span> conf.set("yarn.app.mapreduce.am.staging-dir",<a name="line.710"></a>
-<span class="sourceLineNo">711</span> new Path(root, "mapreduce-am-staging-root-dir").toString());<a name="line.711"></a>
-<span class="sourceLineNo">712</span> }<a name="line.712"></a>
+<span class="sourceLineNo">302</span> /**<a name="line.302"></a>
+<span class="sourceLineNo">303</span> * <p>Create an HBaseTestingUtility using a default configuration.<a name="line.303"></a>
+<span class="sourceLineNo">304</span> *<a name="line.304"></a>
+<span class="sourceLineNo">305</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.305"></a>
+<span class="sourceLineNo">306</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.306"></a>
+<span class="sourceLineNo">307</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.307"></a>
+<span class="sourceLineNo">308</span> *<a name="line.308"></a>
+<span class="sourceLineNo">309</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.309"></a>
+<span class="sourceLineNo">310</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.310"></a>
+<span class="sourceLineNo">311</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.311"></a>
+<span class="sourceLineNo">312</span> * at which point they will switch to using mini DFS for storage.<a name="line.312"></a>
+<span class="sourceLineNo">313</span> */<a name="line.313"></a>
+<span class="sourceLineNo">314</span> public HBaseTestingUtility() {<a name="line.314"></a>
+<span class="sourceLineNo">315</span> this(HBaseConfiguration.create());<a name="line.315"></a>
+<span class="sourceLineNo">316</span> }<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> * <p>Create an HBaseTestingUtility using a given configuration.<a name="line.319"></a>
+<span class="sourceLineNo">320</span> *<a name="line.320"></a>
+<span class="sourceLineNo">321</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.321"></a>
+<span class="sourceLineNo">322</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.322"></a>
+<span class="sourceLineNo">323</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.323"></a>
+<span class="sourceLineNo">324</span> *<a name="line.324"></a>
+<span class="sourceLineNo">325</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.325"></a>
+<span class="sourceLineNo">326</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.326"></a>
+<span class="sourceLineNo">327</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.327"></a>
+<span class="sourceLineNo">328</span> * at which point they will switch to using mini DFS for storage.<a name="line.328"></a>
+<span class="sourceLineNo">329</span> *<a name="line.329"></a>
+<span class="sourceLineNo">330</span> * @param conf The configuration to use for further operations<a name="line.330"></a>
+<span class="sourceLineNo">331</span> */<a name="line.331"></a>
+<span class="sourceLineNo">332</span> public HBaseTestingUtility(@Nullable Configuration conf) {<a name="line.332"></a>
+<span class="sourceLineNo">333</span> super(conf);<a name="line.333"></a>
+<span class="sourceLineNo">334</span><a name="line.334"></a>
+<span class="sourceLineNo">335</span> // a hbase checksum verification failure will cause unit tests to fail<a name="line.335"></a>
+<span class="sourceLineNo">336</span> ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.336"></a>
+<span class="sourceLineNo">337</span><a name="line.337"></a>
+<span class="sourceLineNo">338</span> // Save this for when setting default file:// breaks things<a name="line.338"></a>
+<span class="sourceLineNo">339</span> if (this.conf.get("fs.defaultFS") != null) {<a name="line.339"></a>
+<span class="sourceLineNo">340</span> this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.340"></a>
+<span class="sourceLineNo">341</span> }<a name="line.341"></a>
+<span class="sourceLineNo">342</span> if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.342"></a>
+<span class="sourceLineNo">343</span> this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.343"></a>
+<span class="sourceLineNo">344</span> }<a name="line.344"></a>
+<span class="sourceLineNo">345</span> // Every cluster is a local cluster until we start DFS<a name="line.345"></a>
+<span class="sourceLineNo">346</span> // Note that conf could be null, but this.conf will not be<a name="line.346"></a>
+<span class="sourceLineNo">347</span> String dataTestDir = getDataTestDir().toString();<a name="line.347"></a>
+<span class="sourceLineNo">348</span> this.conf.set("fs.defaultFS","file:///");<a name="line.348"></a>
+<span class="sourceLineNo">349</span> this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.349"></a>
+<span class="sourceLineNo">350</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.350"></a>
+<span class="sourceLineNo">351</span> this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.351"></a>
+<span class="sourceLineNo">352</span> // If the value for random ports isn't set set it to true, thus making<a name="line.352"></a>
+<span class="sourceLineNo">353</span> // tests opt-out for random port assignment<a name="line.353"></a>
+<span class="sourceLineNo">354</span> this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.354"></a>
+<span class="sourceLineNo">355</span> this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.355"></a>
+<span class="sourceLineNo">356</span> }<a name="line.356"></a>
+<span class="sourceLineNo">357</span><a name="line.357"></a>
+<span class="sourceLineNo">358</span> /**<a name="line.358"></a>
+<span class="sourceLineNo">359</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.359"></a>
+<span class="sourceLineNo">360</span> * @return a normal HBaseTestingUtility<a name="line.360"></a>
+<span class="sourceLineNo">361</span> */<a name="line.361"></a>
+<span class="sourceLineNo">362</span> @Deprecated<a name="line.362"></a>
+<span class="sourceLineNo">363</span> public static HBaseTestingUtility createLocalHTU() {<a name="line.363"></a>
+<span class="sourceLineNo">364</span> return new HBaseTestingUtility();<a name="line.364"></a>
+<span class="sourceLineNo">365</span> }<a name="line.365"></a>
+<span class="sourceLineNo">366</span><a name="line.366"></a>
+<span class="sourceLineNo">367</span> /**<a name="line.367"></a>
+<span class="sourceLineNo">368</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.368"></a>
+<span class="sourceLineNo">369</span> * @return a normal HBaseTestingUtility<a name="line.369"></a>
+<span class="sourceLineNo">370</span> */<a name="line.370"></a>
+<span class="sourceLineNo">371</span> @Deprecated<a name="line.371"></a>
+<span class="sourceLineNo">372</span> public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.372"></a>
+<span class="sourceLineNo">373</span> return new HBaseTestingUtility(c);<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> /**<a name="line.376"></a>
+<span class="sourceLineNo">377</span> * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.377"></a>
+<span class="sourceLineNo">378</span> */<a name="line.378"></a>
+<span class="sourceLineNo">379</span> public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.379"></a>
+<span class="sourceLineNo">380</span> closeRegionAndWAL((HRegion)r);<a name="line.380"></a>
+<span class="sourceLineNo">381</span> }<a name="line.381"></a>
+<span class="sourceLineNo">382</span><a name="line.382"></a>
+<span class="sourceLineNo">383</span> /**<a name="line.383"></a>
+<span class="sourceLineNo">384</span> * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.384"></a>
+<span class="sourceLineNo">385</span> */<a name="line.385"></a>
+<span class="sourceLineNo">386</span> public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.386"></a>
+<span class="sourceLineNo">387</span> if (r == null) return;<a name="line.387"></a>
+<span class="sourceLineNo">388</span> r.close();<a name="line.388"></a>
+<span class="sourceLineNo">389</span> if (r.getWAL() == null) return;<a name="line.389"></a>
+<span class="sourceLineNo">390</span> r.getWAL().close();<a name="line.390"></a>
+<span class="sourceLineNo">391</span> }<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> * Returns this classes's instance of {@link Configuration}. Be careful how<a name="line.394"></a>
+<span class="sourceLineNo">395</span> * you use the returned Configuration since {@link Connection} instances<a name="line.395"></a>
+<span class="sourceLineNo">396</span> * can be shared. The Map of Connections is keyed by the Configuration. If<a name="line.396"></a>
+<span class="sourceLineNo">397</span> * say, a Connection was being used against a cluster that had been shutdown,<a name="line.397"></a>
+<span class="sourceLineNo">398</span> * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.398"></a>
+<span class="sourceLineNo">399</span> * be wholesome. Rather than use the return direct, its usually best to<a name="line.399"></a>
+<span class="sourceLineNo">400</span> * make a copy and use that. Do<a name="line.400"></a>
+<span class="sourceLineNo">401</span> * <code>Configuration c = new Configuration(INSTANCE.getConfiguration());</code><a name="line.401"></a>
+<span class="sourceLineNo">402</span> * @return Instance of Configuration.<a name="line.402"></a>
+<span class="sourceLineNo">403</span> */<a name="line.403"></a>
+<span class="sourceLineNo">404</span> @Override<a name="line.404"></a>
+<span class="sourceLineNo">405</span> public Configuration getConfiguration() {<a name="line.405"></a>
+<span class="sourceLineNo">406</span> return super.getConfiguration();<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> public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.409"></a>
+<span class="sourceLineNo">410</span> this.hbaseCluster = hbaseCluster;<a name="line.410"></a>
+<span class="sourceLineNo">411</span> }<a name="line.411"></a>
+<span class="sourceLineNo">412</span><a name="line.412"></a>
+<span class="sourceLineNo">413</span> /**<a name="line.413"></a>
+<span class="sourceLineNo">414</span> * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.414"></a>
+<span class="sourceLineNo">415</span> * Give it a random name so can have many concurrent tests running if<a name="line.415"></a>
+<span class="sourceLineNo">416</span> * we need to. It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.416"></a>
+<span class="sourceLineNo">417</span> * System property, as it's what minidfscluster bases<a name="line.417"></a>
+<span class="sourceLineNo">418</span> * it data dir on. Moding a System property is not the way to do concurrent<a name="line.418"></a>
+<span class="sourceLineNo">419</span> * instances -- another instance could grab the temporary<a name="line.419"></a>
+<span class="sourceLineNo">420</span> * value unintentionally -- but not anything can do about it at moment;<a name="line.420"></a>
+<span class="sourceLineNo">421</span> * single instance only is how the minidfscluster works.<a name="line.421"></a>
+<span class="sourceLineNo">422</span> *<a name="line.422"></a>
+<span class="sourceLineNo">423</span> * We also create the underlying directory for<a name="line.423"></a>
+<span class="sourceLineNo">424</span> * hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.424"></a>
+<span class="sourceLineNo">425</span> * in the conf, and as a system property for hadoop.tmp.dir<a name="line.425"></a>
+<span class="sourceLineNo">426</span> *<a name="line.426"></a>
+<span class="sourceLineNo">427</span> * @return The calculated data test build directory, if newly-created.<a name="line.427"></a>
+<span class="sourceLineNo">428</span> */<a name="line.428"></a>
+<span class="sourceLineNo">429</span> @Override<a name="line.429"></a>
+<span class="sourceLineNo">430</span> protected Path setupDataTestDir() {<a name="line.430"></a>
+<span class="sourceLineNo">431</span> Path testPath = super.setupDataTestDir();<a name="line.431"></a>
+<span class="sourceLineNo">432</span> if (null == testPath) {<a name="line.432"></a>
+<span class="sourceLineNo">433</span> return null;<a name="line.433"></a>
+<span class="sourceLineNo">434</span> }<a name="line.434"></a>
+<span class="sourceLineNo">435</span><a name="line.435"></a>
+<span class="sourceLineNo">436</span> createSubDirAndSystemProperty(<a name="line.436"></a>
+<span class="sourceLineNo">437</span> "hadoop.log.dir",<a name="line.437"></a>
+<span class="sourceLineNo">438</span> testPath, "hadoop-log-dir");<a name="line.438"></a>
+<span class="sourceLineNo">439</span><a name="line.439"></a>
+<span class="sourceLineNo">440</span> // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.440"></a>
+<span class="sourceLineNo">441</span> // we want our own value to ensure uniqueness on the same machine<a name="line.441"></a>
+<span class="sourceLineNo">442</span> createSubDirAndSystemProperty(<a name="line.442"></a>
+<span class="sourceLineNo">443</span> "hadoop.tmp.dir",<a name="line.443"></a>
+<span class="sourceLineNo">444</span> testPath, "hadoop-tmp-dir");<a name="line.444"></a>
+<span class="sourceLineNo">445</span><a name="line.445"></a>
+<span class="sourceLineNo">446</span> // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.446"></a>
+<span class="sourceLineNo">447</span> createSubDir(<a name="line.447"></a>
+<span class="sourceLineNo">448</span> "mapreduce.cluster.local.dir",<a name="line.448"></a>
+<span class="sourceLineNo">449</span> testPath, "mapred-local-dir");<a name="line.449"></a>
+<span class="sourceLineNo">450</span><a name="line.450"></a>
+<span class="sourceLineNo">451</span> return testPath;<a name="line.451"></a>
+<span class="sourceLineNo">452</span> }<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span> private void createSubDirAndSystemProperty(<a name="line.454"></a>
+<span class="sourceLineNo">455</span> String propertyName, Path parent, String subDirName){<a name="line.455"></a>
+<span class="sourceLineNo">456</span><a name="line.456"></a>
+<span class="sourceLineNo">457</span> String sysValue = System.getProperty(propertyName);<a name="line.457"></a>
+<span class="sourceLineNo">458</span><a name="line.458"></a>
+<span class="sourceLineNo">459</span> if (sysValue != null) {<a name="line.459"></a>
+<span class="sourceLineNo">460</span> // There is already a value set. So we do nothing but hope<a name="line.460"></a>
+<span class="sourceLineNo">461</span> // that there will be no conflicts<a name="line.461"></a>
+<span class="sourceLineNo">462</span> LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.462"></a>
+<span class="sourceLineNo">463</span> sysValue + " so I do NOT create it in " + parent);<a name="line.463"></a>
+<span class="sourceLineNo">464</span> String confValue = conf.get(propertyName);<a name="line.464"></a>
+<span class="sourceLineNo">465</span> if (confValue != null && !confValue.endsWith(sysValue)){<a name="line.465"></a>
+<span class="sourceLineNo">466</span> LOG.warn(<a name="line.466"></a>
+<span class="sourceLineNo">467</span> propertyName + " property value differs in configuration and system: "+<a name="line.467"></a>
+<span class="sourceLineNo">468</span> "Configuration="+confValue+" while System="+sysValue+<a name="line.468"></a>
+<span class="sourceLineNo">469</span> " Erasing configuration value by system value."<a name="line.469"></a>
+<span class="sourceLineNo">470</span> );<a name="line.470"></a>
+<span class="sourceLineNo">471</span> }<a name="line.471"></a>
+<span class="sourceLineNo">472</span> conf.set(propertyName, sysValue);<a name="line.472"></a>
+<span class="sourceLineNo">473</span> } else {<a name="line.473"></a>
+<span class="sourceLineNo">474</span> // Ok, it's not set, so we create it as a subdirectory<a name="line.474"></a>
+<span class="sourceLineNo">475</span> createSubDir(propertyName, parent, subDirName);<a name="line.475"></a>
+<span class="sourceLineNo">476</span> System.setProperty(propertyName, conf.get(propertyName));<a name="line.476"></a>
+<span class="sourceLineNo">477</span> }<a name="line.477"></a>
+<span class="sourceLineNo">478</span> }<a name="line.478"></a>
+<span class="sourceLineNo">479</span><a name="line.479"></a>
+<span class="sourceLineNo">480</span> /**<a name="line.480"></a>
+<span class="sourceLineNo">481</span> * @return Where to write test data on the test filesystem; Returns working directory<a name="line.481"></a>
+<span class="sourceLineNo">482</span> * for the test filesystem by default<a name="line.482"></a>
+<span class="sourceLineNo">483</span> * @see #setupDataTestDirOnTestFS()<a name="line.483"></a>
+<span class="sourceLineNo">484</span> * @see #getTestFileSystem()<a name="line.484"></a>
+<span class="sourceLineNo">485</span> */<a name="line.485"></a>
+<span class="sourceLineNo">486</span> private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.486"></a>
+<span class="sourceLineNo">487</span> FileSystem fs = getTestFileSystem();<a name="line.487"></a>
+<span class="sourceLineNo">488</span> return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.488"></a>
+<span class="sourceLineNo">489</span> }<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> * @return META table descriptor<a name="line.492"></a>
+<span class="sourceLineNo">493</span> * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.493"></a>
+<span class="sourceLineNo">494</span> * use {@link #getMetaTableDescriptorBuilder()}<a name="line.494"></a>
+<span class="sourceLineNo">495</span> */<a name="line.495"></a>
+<span class="sourceLineNo">496</span> @Deprecated<a name="line.496"></a>
+<span class="sourceLineNo">497</span> public HTableDescriptor getMetaTableDescriptor() {<a name="line.497"></a>
+<span class="sourceLineNo">498</span> return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.498"></a>
+<span class="sourceLineNo">499</span> }<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> * @return META table descriptor<a name="line.502"></a>
+<span class="sourceLineNo">503</span> */<a name="line.503"></a>
+<span class="sourceLineNo">504</span> public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.504"></a>
+<span class="sourceLineNo">505</span> try {<a name="line.505"></a>
+<span class="sourceLineNo">506</span> return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.506"></a>
+<span class="sourceLineNo">507</span> } catch (IOException e) {<a name="line.507"></a>
+<span class="sourceLineNo">508</span> throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.508"></a>
+<span class="sourceLineNo">509</span> }<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> /**<a name="line.512"></a>
+<span class="sourceLineNo">513</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.513"></a>
+<span class="sourceLineNo">514</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.514"></a>
+<span class="sourceLineNo">515</span> * if the test relies on it.<a name="line.515"></a>
+<span class="sourceLineNo">516</span> * @return a unique path in the test filesystem<a name="line.516"></a>
+<span class="sourceLineNo">517</span> */<a name="line.517"></a>
+<span class="sourceLineNo">518</span> public Path getDataTestDirOnTestFS() throws IOException {<a name="line.518"></a>
+<span class="sourceLineNo">519</span> if (dataTestDirOnTestFS == null) {<a name="line.519"></a>
+<span class="sourceLineNo">520</span> setupDataTestDirOnTestFS();<a name="line.520"></a>
+<span class="sourceLineNo">521</span> }<a name="line.521"></a>
+<span class="sourceLineNo">522</span><a name="line.522"></a>
+<span class="sourceLineNo">523</span> return dataTestDirOnTestFS;<a name="line.523"></a>
+<span class="sourceLineNo">524</span> }<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> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.527"></a>
+<span class="sourceLineNo">528</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.528"></a>
+<span class="sourceLineNo">529</span> * if the test relies on it.<a name="line.529"></a>
+<span class="sourceLineNo">530</span> * @return a unique path in the test filesystem<a name="line.530"></a>
+<span class="sourceLineNo">531</span> * @param subdirName name of the subdir to create under the base test dir<a name="line.531"></a>
+<span class="sourceLineNo">532</span> */<a name="line.532"></a>
+<span class="sourceLineNo">533</span> public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.533"></a>
+<span class="sourceLineNo">534</span> return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.534"></a>
+<span class="sourceLineNo">535</span> }<a name="line.535"></a>
+<span class="sourceLineNo">536</span><a name="line.536"></a>
+<span class="sourceLineNo">537</span> /**<a name="line.537">
<TRUNCATED>
[09/10] hbase-site git commit: Published site at
e8df847d4ed16b8432221d28bcfc00e1621df586.
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/replication.html
----------------------------------------------------------------------
diff --git a/replication.html b/replication.html
index 4f45fbb..8d518f8 100644
--- a/replication.html
+++ b/replication.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase –
Apache HBase (TM) Replication
@@ -303,7 +303,7 @@ under the License. -->
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/resources.html
----------------------------------------------------------------------
diff --git a/resources.html b/resources.html
index fc88cf4..9c59d69 100644
--- a/resources.html
+++ b/resources.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Other Apache HBase (TM) Resources</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -331,7 +331,7 @@ under the License. -->
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/source-repository.html
----------------------------------------------------------------------
diff --git a/source-repository.html b/source-repository.html
index c80871e..0b4772a 100644
--- a/source-repository.html
+++ b/source-repository.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Source Code Management</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -299,7 +299,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/sponsors.html
----------------------------------------------------------------------
diff --git a/sponsors.html b/sponsors.html
index ead7413..c3ecb62 100644
--- a/sponsors.html
+++ b/sponsors.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Apache HBase™ Sponsors</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -333,7 +333,7 @@ under the License. -->
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/supportingprojects.html
----------------------------------------------------------------------
diff --git a/supportingprojects.html b/supportingprojects.html
index 80d2a1f..7ae8745 100644
--- a/supportingprojects.html
+++ b/supportingprojects.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Supporting Projects</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -520,7 +520,7 @@ under the License. -->
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/team-list.html
----------------------------------------------------------------------
diff --git a/team-list.html b/team-list.html
index c3b3487..5c1e5e0 100644
--- a/team-list.html
+++ b/team-list.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Project Team</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -754,7 +754,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
[10/10] hbase-site git commit: Published site at
e8df847d4ed16b8432221d28bcfc00e1621df586.
Posted by gi...@apache.org.
Published site at e8df847d4ed16b8432221d28bcfc00e1621df586.
Project: http://git-wip-us.apache.org/repos/asf/hbase-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase-site/commit/37bdc06b
Tree: http://git-wip-us.apache.org/repos/asf/hbase-site/tree/37bdc06b
Diff: http://git-wip-us.apache.org/repos/asf/hbase-site/diff/37bdc06b
Branch: refs/heads/asf-site
Commit: 37bdc06bfa01f6bb861225dce0af9735f48583c7
Parents: 7fdd77a
Author: jenkins <bu...@apache.org>
Authored: Mon Oct 8 14:52:40 2018 +0000
Committer: jenkins <bu...@apache.org>
Committed: Mon Oct 8 14:52:40 2018 +0000
----------------------------------------------------------------------
acid-semantics.html | 4 +-
apache_hbase_reference_guide.pdf | 4 +-
book.html | 2 +-
bulk-loads.html | 4 +-
checkstyle-aggregate.html | 452 +-
coc.html | 4 +-
dependencies.html | 4 +-
dependency-convergence.html | 4 +-
dependency-info.html | 4 +-
dependency-management.html | 4 +-
devapidocs/constant-values.html | 4 +-
.../org/apache/hadoop/hbase/Version.html | 4 +-
downloads.html | 4 +-
export_control.html | 4 +-
index.html | 4 +-
integration.html | 4 +-
issue-tracking.html | 4 +-
license.html | 4 +-
mail-lists.html | 4 +-
metrics.html | 4 +-
old_news.html | 4 +-
plugin-management.html | 4 +-
plugins.html | 4 +-
poweredbyhbase.html | 4 +-
project-info.html | 4 +-
project-reports.html | 4 +-
project-summary.html | 4 +-
pseudo-distributed.html | 4 +-
replication.html | 4 +-
resources.html | 4 +-
source-repository.html | 4 +-
sponsors.html | 4 +-
supportingprojects.html | 4 +-
team-list.html | 4 +-
.../hadoop/hbase/HBaseTestingUtility.html | 469 +-
.../hadoop/hbase/HBaseTestingUtility.html | 8269 +++++++++---------
...lity.PortAllocator.AvailablePortChecker.html | 4 +-
.../HBaseTestingUtility.PortAllocator.html | 20 +-
.../HBaseTestingUtility.SeenRowTracker.html | 20 +-
.../hadoop/hbase/HBaseTestingUtility.html | 529 +-
...lity.PortAllocator.AvailablePortChecker.html | 8269 +++++++++---------
.../HBaseTestingUtility.PortAllocator.html | 8269 +++++++++---------
.../HBaseTestingUtility.SeenRowTracker.html | 8269 +++++++++---------
.../hadoop/hbase/HBaseTestingUtility.html | 8269 +++++++++---------
44 files changed, 21481 insertions(+), 21488 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/acid-semantics.html
----------------------------------------------------------------------
diff --git a/acid-semantics.html b/acid-semantics.html
index 3cf6935..f8b15ae 100644
--- a/acid-semantics.html
+++ b/acid-semantics.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase –
Apache HBase (TM) ACID Properties
@@ -601,7 +601,7 @@ under the License. -->
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/apache_hbase_reference_guide.pdf
----------------------------------------------------------------------
diff --git a/apache_hbase_reference_guide.pdf b/apache_hbase_reference_guide.pdf
index e00d83f..847967e 100644
--- a/apache_hbase_reference_guide.pdf
+++ b/apache_hbase_reference_guide.pdf
@@ -5,8 +5,8 @@
/Author (Apache HBase Team)
/Creator (Asciidoctor PDF 1.5.0.alpha.15, based on Prawn 2.2.2)
/Producer (Apache HBase Team)
-/ModDate (D:20181007143325+00'00')
-/CreationDate (D:20181007144858+00'00')
+/ModDate (D:20181008143356+00'00')
+/CreationDate (D:20181008144919+00'00')
>>
endobj
2 0 obj
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/book.html
----------------------------------------------------------------------
diff --git a/book.html b/book.html
index 2e1e354..0b130fc 100644
--- a/book.html
+++ b/book.html
@@ -41284,7 +41284,7 @@ org/apache/hadoop/hbase/security/access/AccessControlClient.revoke:(Lorg/apache/
<div id="footer">
<div id="footer-text">
Version 3.0.0-SNAPSHOT<br>
-Last updated 2018-10-07 14:33:25 UTC
+Last updated 2018-10-08 14:33:56 UTC
</div>
</div>
</body>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/bulk-loads.html
----------------------------------------------------------------------
diff --git a/bulk-loads.html b/bulk-loads.html
index 113ff66..fd37d28 100644
--- a/bulk-loads.html
+++ b/bulk-loads.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase –
Bulk Loads in Apache HBase (TM)
@@ -306,7 +306,7 @@ under the License. -->
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/checkstyle-aggregate.html
----------------------------------------------------------------------
diff --git a/checkstyle-aggregate.html b/checkstyle-aggregate.html
index ec7776f..ec0721b 100644
--- a/checkstyle-aggregate.html
+++ b/checkstyle-aggregate.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Checkstyle Results</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -11373,1345 +11373,1345 @@
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>388</td></tr>
+<td>387</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>390</td></tr>
+<td>389</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'if' child has incorrect indentation level 7, expected level should be 8.</td>
-<td>467</td></tr>
+<td>466</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method call' child has incorrect indentation level 9, expected level should be 10.</td>
-<td>468</td></tr>
+<td>467</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method call' child has incorrect indentation level 9, expected level should be 10.</td>
-<td>469</td></tr>
+<td>468</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method call' child has incorrect indentation level 9, expected level should be 10.</td>
-<td>470</td></tr>
+<td>469</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method call rparen' has incorrect indentation level 7, expected level should be 8.</td>
-<td>471</td></tr>
+<td>470</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>JavadocTagContinuationIndentation</td>
<td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>483</td></tr>
+<td>482</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>565</td></tr>
+<td>564</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>569</td></tr>
+<td>568</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>577</td></tr>
+<td>576</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>581</td></tr>
+<td>580</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>589</td></tr>
+<td>588</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>599</td></tr>
+<td>598</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>614</td></tr>
+<td>613</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>misc</td>
<td>ArrayTypeStyle</td>
<td>Array brackets at illegal position.</td>
-<td>618</td></tr>
+<td>617</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>619</td></tr>
+<td>618</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>whitespace</td>
<td>ParenPad</td>
<td>'(' is followed by whitespace.</td>
-<td>620</td></tr>
+<td>619</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>632</td></tr>
+<td>631</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>misc</td>
<td>ArrayTypeStyle</td>
<td>Array brackets at illegal position.</td>
-<td>636</td></tr>
+<td>635</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>637</td></tr>
+<td>636</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>misc</td>
<td>ArrayTypeStyle</td>
<td>Array brackets at illegal position.</td>
-<td>653</td></tr>
+<td>652</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>misc</td>
<td>ArrayTypeStyle</td>
<td>Array brackets at illegal position.</td>
-<td>653</td></tr>
+<td>652</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>760</td></tr>
+<td>759</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>798</td></tr>
+<td>797</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>EmptyBlock</td>
<td>Must have at least one statement.</td>
-<td>1201</td></tr>
+<td>1200</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>JavadocTagContinuationIndentation</td>
<td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>1212</td></tr>
+<td>1211</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1225</td></tr>
+<td>1224</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1272</td></tr>
+<td>1271</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1287</td></tr>
+<td>1286</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>JavadocTagContinuationIndentation</td>
<td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>1299</td></tr>
+<td>1298</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>JavadocTagContinuationIndentation</td>
<td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>1300</td></tr>
+<td>1299</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>JavadocTagContinuationIndentation</td>
<td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>1301</td></tr>
+<td>1300</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1303</td></tr>
+<td>1302</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1318</td></tr>
+<td>1317</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1331</td></tr>
+<td>1330</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1353</td></tr>
+<td>1352</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1361</td></tr>
+<td>1360</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1369</td></tr>
+<td>1368</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1377</td></tr>
+<td>1376</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1385</td></tr>
+<td>1384</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1386</td></tr>
+<td>1385</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1388</td></tr>
+<td>1387</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1391</td></tr>
+<td>1390</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1397</td></tr>
+<td>1396</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1398</td></tr>
+<td>1397</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1400</td></tr>
+<td>1399</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1403</td></tr>
+<td>1402</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1413</td></tr>
+<td>1412</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1414</td></tr>
+<td>1413</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1416</td></tr>
+<td>1415</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1419</td></tr>
+<td>1418</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1425</td></tr>
+<td>1424</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1426</td></tr>
+<td>1425</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1427</td></tr>
+<td>1426</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1429</td></tr>
+<td>1428</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>1433</td></tr>
+<td>1432</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1443</td></tr>
+<td>1442</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1444</td></tr>
+<td>1443</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1446</td></tr>
+<td>1445</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1449</td></tr>
+<td>1448</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1455</td></tr>
+<td>1454</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1456</td></tr>
+<td>1455</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1458</td></tr>
+<td>1457</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1466</td></tr>
+<td>1465</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1467</td></tr>
+<td>1466</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1468</td></tr>
+<td>1467</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1470</td></tr>
+<td>1469</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1494</td></tr>
+<td>1493</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1506</td></tr>
+<td>1505</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1507</td></tr>
+<td>1506</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1510</td></tr>
+<td>1509</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1513</td></tr>
+<td>1512</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1567</td></tr>
+<td>1566</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1586</td></tr>
+<td>1585</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1597</td></tr>
+<td>1596</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1598</td></tr>
+<td>1597</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1599</td></tr>
+<td>1598</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1601</td></tr>
+<td>1600</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1604</td></tr>
+<td>1603</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1610</td></tr>
+<td>1609</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1611</td></tr>
+<td>1610</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1612</td></tr>
+<td>1611</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1614</td></tr>
+<td>1613</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1623</td></tr>
+<td>1622</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1624</td></tr>
+<td>1623</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1625</td></tr>
+<td>1624</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1626</td></tr>
+<td>1625</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1628</td></tr>
+<td>1627</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1646</td></tr>
+<td>1645</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1647</td></tr>
+<td>1646</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1648</td></tr>
+<td>1647</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1650</td></tr>
+<td>1649</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1659</td></tr>
+<td>1658</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1660</td></tr>
+<td>1659</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1661</td></tr>
+<td>1660</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1662</td></tr>
+<td>1661</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1664</td></tr>
+<td>1663</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method def' child has incorrect indentation level 6, expected level should be 4.</td>
-<td>1684</td></tr>
+<td>1683</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'for' has incorrect indentation level 6, expected level should be 4.</td>
-<td>1685</td></tr>
+<td>1684</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'for' child has incorrect indentation level 8, expected level should be 6.</td>
-<td>1686</td></tr>
+<td>1685</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'for' child has incorrect indentation level 8, expected level should be 6.</td>
-<td>1689</td></tr>
+<td>1688</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'for rcurly' has incorrect indentation level 6, expected level should be 4.</td>
-<td>1690</td></tr>
+<td>1689</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'if' has incorrect indentation level 6, expected level should be 4.</td>
-<td>1691</td></tr>
+<td>1690</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'if' child has incorrect indentation level 8, expected level should be 6.</td>
-<td>1692</td></tr>
+<td>1691</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'if rcurly' has incorrect indentation level 6, expected level should be 4.</td>
-<td>1693</td></tr>
+<td>1692</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method def' child has incorrect indentation level 6, expected level should be 4.</td>
-<td>1694</td></tr>
+<td>1693</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method def' child has incorrect indentation level 6, expected level should be 4.</td>
-<td>1697</td></tr>
+<td>1696</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method def' child has incorrect indentation level 6, expected level should be 4.</td>
-<td>1698</td></tr>
+<td>1697</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method def rcurly' has incorrect indentation level 4, expected level should be 2.</td>
-<td>1699</td></tr>
+<td>1698</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1703</td></tr>
+<td>1702</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1704</td></tr>
+<td>1703</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1705</td></tr>
+<td>1704</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1707</td></tr>
+<td>1706</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1711</td></tr>
+<td>1710</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1729</td></tr>
+<td>1728</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1730</td></tr>
+<td>1729</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1731</td></tr>
+<td>1730</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1733</td></tr>
+<td>1732</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1749</td></tr>
+<td>1748</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1750</td></tr>
+<td>1749</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1752</td></tr>
+<td>1751</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'block' child has incorrect indentation level 6, expected level should be one of the following: 8, 10.</td>
-<td>1766</td></tr>
+<td>1765</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'block' child has incorrect indentation level 6, expected level should be one of the following: 8, 10.</td>
-<td>1767</td></tr>
+<td>1766</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'block rcurly' has incorrect indentation level 4, expected level should be one of the following: 6, 8.</td>
-<td>1768</td></tr>
+<td>1767</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>annotation</td>
<td>MissingDeprecated</td>
<td>Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description.</td>
-<td>1838</td></tr>
+<td>1837</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>annotation</td>
<td>MissingDeprecated</td>
<td>Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description.</td>
-<td>1850</td></tr>
+<td>1849</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1903</td></tr>
+<td>1902</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1907</td></tr>
+<td>1906</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1926</td></tr>
+<td>1925</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1934</td></tr>
+<td>1933</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1935</td></tr>
+<td>1934</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1936</td></tr>
+<td>1935</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1937</td></tr>
+<td>1936</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1938</td></tr>
+<td>1937</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1939</td></tr>
+<td>1938</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1940</td></tr>
+<td>1939</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1941</td></tr>
+<td>1940</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1957</td></tr>
+<td>1956</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1958</td></tr>
+<td>1957</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1959</td></tr>
+<td>1958</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1960</td></tr>
+<td>1959</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1961</td></tr>
+<td>1960</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>1964</td></tr>
+<td>1963</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2006</td></tr>
+<td>2005</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2056</td></tr>
+<td>2055</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2067</td></tr>
+<td>2066</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2078</td></tr>
+<td>2077</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2090</td></tr>
+<td>2089</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2102</td></tr>
+<td>2101</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2186</td></tr>
+<td>2185</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>2189</td></tr>
+<td>2188</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>2290</td></tr>
+<td>2289</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2432</td></tr>
+<td>2431</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2433</td></tr>
+<td>2432</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2434</td></tr>
+<td>2433</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2436</td></tr>
+<td>2435</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2450</td></tr>
+<td>2449</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2451</td></tr>
+<td>2450</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2452</td></tr>
+<td>2451</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2454</td></tr>
+<td>2453</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>2458</td></tr>
+<td>2457</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2594</td></tr>
+<td>2593</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2595</td></tr>
+<td>2594</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2804</td></tr>
+<td>2803</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method def' child has incorrect indentation level 3, expected level should be 4.</td>
-<td>2842</td></tr>
+<td>2841</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method def modifier' has incorrect indentation level 6, expected level should be one of the following: 8, 10.</td>
-<td>2873</td></tr>
+<td>2872</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method def' child has incorrect indentation level 8, expected level should be one of the following: 10, 12.</td>
-<td>2875</td></tr>
+<td>2874</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method def rcurly' has incorrect indentation level 6, expected level should be one of the following: 8, 10.</td>
-<td>2876</td></tr>
+<td>2875</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'object def rcurly' has incorrect indentation level 4, expected level should be one of the following: 6, 8.</td>
-<td>2877</td></tr>
+<td>2876</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'while' child has incorrect indentation level 7, expected level should be 6.</td>
-<td>2888</td></tr>
+<td>2887</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>2929</td></tr>
+<td>2928</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>2950</td></tr>
+<td>2949</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3010</td></tr>
+<td>3009</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>3042</td></tr>
+<td>3041</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>JavadocTagContinuationIndentation</td>
<td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>3069</td></tr>
+<td>3068</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3090</td></tr>
+<td>3089</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3091</td></tr>
+<td>3090</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3107</td></tr>
+<td>3106</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3108</td></tr>
+<td>3107</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>3111</td></tr>
+<td>3110</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>3162</td></tr>
+<td>3161</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>3165</td></tr>
+<td>3164</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3182</td></tr>
+<td>3181</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3183</td></tr>
+<td>3182</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3184</td></tr>
+<td>3183</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3197</td></tr>
+<td>3196</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3198</td></tr>
+<td>3197</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>3201</td></tr>
+<td>3200</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>3206</td></tr>
+<td>3205</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3214</td></tr>
+<td>3213</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3215</td></tr>
+<td>3214</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3231</td></tr>
+<td>3230</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3232</td></tr>
+<td>3231</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3244</td></tr>
+<td>3243</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3265</td></tr>
+<td>3264</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3297</td></tr>
+<td>3296</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>3301</td></tr>
+<td>3300</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3353</td></tr>
+<td>3352</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3354</td></tr>
+<td>3353</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3355</td></tr>
+<td>3354</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3356</td></tr>
+<td>3355</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3357</td></tr>
+<td>3356</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3397</td></tr>
+<td>3396</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3398</td></tr>
+<td>3397</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3424</td></tr>
+<td>3423</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3433</td></tr>
+<td>3432</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3447</td></tr>
+<td>3446</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>coding</td>
<td>InnerAssignment</td>
<td>Inner assignments should be avoided.</td>
-<td>3467</td></tr>
+<td>3466</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>sizes</td>
<td>LineLength</td>
<td>Line is longer than 100 characters (found 104).</td>
-<td>3498</td></tr>
+<td>3497</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3557</td></tr>
+<td>3556</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>3558</td></tr>
+<td>3557</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>indentation</td>
<td>Indentation</td>
<td>'method def rparen' has incorrect indentation level 48, expected level should be 2.</td>
-<td>3578</td></tr>
+<td>3577</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>EmptyBlock</td>
<td>Must have at least one statement.</td>
-<td>3596</td></tr>
+<td>3595</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>sizes</td>
<td>LineLength</td>
<td>Line is longer than 100 characters (found 101).</td>
-<td>3887</td></tr>
+<td>3886</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>3974</td></tr>
+<td>3973</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>3976</td></tr>
+<td>3975</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>4010</td></tr>
+<td>4009</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>4047</td></tr>
+<td>4046</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>blocks</td>
<td>NeedBraces</td>
<td>'if' construct must use '{}'s.</td>
-<td>4049</td></tr>
+<td>4048</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>4127</td></tr>
+<td>4126</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>4135</td></tr>
+<td>4134</td></tr>
<tr class="b">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>4143</td></tr>
+<td>4142</td></tr>
<tr class="a">
<td><img src="images/icon_error_sml.gif" alt="" /> Error</td>
<td>javadoc</td>
<td>NonEmptyAtclauseDescription</td>
<td>At-clause should have a non-empty description.</td>
-<td>4144</td></tr></table></div>
+<td>4143</td></tr></table></div>
<div class="section">
<h3 id="org.apache.hadoop.hbase.HColumnDescriptor.java">org/apache/hadoop/hbase/HColumnDescriptor.java</h3>
<table border="0" class="table table-striped">
@@ -117991,7 +117991,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/coc.html
----------------------------------------------------------------------
diff --git a/coc.html b/coc.html
index 208308f..6982c85 100644
--- a/coc.html
+++ b/coc.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase –
Code of Conduct Policy
@@ -375,7 +375,7 @@ email to <a class="externalLink" href="mailto:private@hbase.apache.org">the priv
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/dependencies.html
----------------------------------------------------------------------
diff --git a/dependencies.html b/dependencies.html
index 768e257..c980daf 100644
--- a/dependencies.html
+++ b/dependencies.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Project Dependencies</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -440,7 +440,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/dependency-convergence.html
----------------------------------------------------------------------
diff --git a/dependency-convergence.html b/dependency-convergence.html
index 34cde0c..340f0f0 100644
--- a/dependency-convergence.html
+++ b/dependency-convergence.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Reactor Dependency Convergence</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -879,7 +879,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/dependency-info.html
----------------------------------------------------------------------
diff --git a/dependency-info.html b/dependency-info.html
index 54ec82d..6af6e64 100644
--- a/dependency-info.html
+++ b/dependency-info.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Dependency Information</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -313,7 +313,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/dependency-management.html
----------------------------------------------------------------------
diff --git a/dependency-management.html b/dependency-management.html
index 534a7e8..9777958 100644
--- a/dependency-management.html
+++ b/dependency-management.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Project Dependency Management</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -1005,7 +1005,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/devapidocs/constant-values.html
----------------------------------------------------------------------
diff --git a/devapidocs/constant-values.html b/devapidocs/constant-values.html
index 199bd39..7577a0a 100644
--- a/devapidocs/constant-values.html
+++ b/devapidocs/constant-values.html
@@ -3824,14 +3824,14 @@
<!-- -->
</a><code>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td><code><a href="org/apache/hadoop/hbase/Version.html#date">date</a></code></td>
-<td class="colLast"><code>"Sun Oct 7 14:43:35 UTC 2018"</code></td>
+<td class="colLast"><code>"Mon Oct 8 14:44:16 UTC 2018"</code></td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a name="org.apache.hadoop.hbase.Version.revision">
<!-- -->
</a><code>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td><code><a href="org/apache/hadoop/hbase/Version.html#revision">revision</a></code></td>
-<td class="colLast"><code>"118b0746849c886fc64b0a53014f3186e2db4d9d"</code></td>
+<td class="colLast"><code>"e8df847d4ed16b8432221d28bcfc00e1621df586"</code></td>
</tr>
<tr class="altColor">
<td class="colFirst"><a name="org.apache.hadoop.hbase.Version.srcChecksum">
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
index 6adb66a..f15f943 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
@@ -16,9 +16,9 @@
<span class="sourceLineNo">008</span>@InterfaceAudience.Private<a name="line.8"></a>
<span class="sourceLineNo">009</span>public class Version {<a name="line.9"></a>
<span class="sourceLineNo">010</span> public static final String version = "3.0.0-SNAPSHOT";<a name="line.10"></a>
-<span class="sourceLineNo">011</span> public static final String revision = "118b0746849c886fc64b0a53014f3186e2db4d9d";<a name="line.11"></a>
+<span class="sourceLineNo">011</span> public static final String revision = "e8df847d4ed16b8432221d28bcfc00e1621df586";<a name="line.11"></a>
<span class="sourceLineNo">012</span> public static final String user = "jenkins";<a name="line.12"></a>
-<span class="sourceLineNo">013</span> public static final String date = "Sun Oct 7 14:43:35 UTC 2018";<a name="line.13"></a>
+<span class="sourceLineNo">013</span> public static final String date = "Mon Oct 8 14:44:16 UTC 2018";<a name="line.13"></a>
<span class="sourceLineNo">014</span> public static final String url = "git://jenkins-websites1.apache.org/home/jenkins/jenkins-slave/workspace/hbase_generate_website/hbase";<a name="line.14"></a>
<span class="sourceLineNo">015</span> public static final String srcChecksum = "b7d588f335c5ff6e4fab5b0955be3c4a";<a name="line.15"></a>
<span class="sourceLineNo">016</span>}<a name="line.16"></a>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/downloads.html
----------------------------------------------------------------------
diff --git a/downloads.html b/downloads.html
index def12c6..e7f25d7 100644
--- a/downloads.html
+++ b/downloads.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Apache HBase Downloads</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -423,7 +423,7 @@ under the License. -->
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/export_control.html
----------------------------------------------------------------------
diff --git a/export_control.html b/export_control.html
index 8775cb8..1b77480 100644
--- a/export_control.html
+++ b/export_control.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase –
Export Control
@@ -331,7 +331,7 @@ for more details.</p>
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/index.html
----------------------------------------------------------------------
diff --git a/index.html b/index.html
index b6b2adf..39cb6b8 100644
--- a/index.html
+++ b/index.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Apache HBaseâ„¢ Home</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -411,7 +411,7 @@ Apache HBase is an open-source, distributed, versioned, non-relational database
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/integration.html
----------------------------------------------------------------------
diff --git a/integration.html b/integration.html
index 4cf01a7..e7b6c7f 100644
--- a/integration.html
+++ b/integration.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – CI Management</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -291,7 +291,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/issue-tracking.html
----------------------------------------------------------------------
diff --git a/issue-tracking.html b/issue-tracking.html
index d072f6c..bec11f9 100644
--- a/issue-tracking.html
+++ b/issue-tracking.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Issue Management</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -288,7 +288,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/license.html
----------------------------------------------------------------------
diff --git a/license.html b/license.html
index d196f14..8330b11 100644
--- a/license.html
+++ b/license.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Project Licenses</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -491,7 +491,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/mail-lists.html
----------------------------------------------------------------------
diff --git a/mail-lists.html b/mail-lists.html
index 4df4ff0..86db186 100644
--- a/mail-lists.html
+++ b/mail-lists.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Project Mailing Lists</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -341,7 +341,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/metrics.html
----------------------------------------------------------------------
diff --git a/metrics.html b/metrics.html
index cdc9274..f9401cb 100644
--- a/metrics.html
+++ b/metrics.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase –
Apache HBase (TM) Metrics
@@ -459,7 +459,7 @@ export HBASE_REGIONSERVER_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxrem
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/old_news.html
----------------------------------------------------------------------
diff --git a/old_news.html b/old_news.html
index 91010c1..32e6225 100644
--- a/old_news.html
+++ b/old_news.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase –
Old Apache HBase (TM) News
@@ -440,7 +440,7 @@ under the License. -->
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/plugin-management.html
----------------------------------------------------------------------
diff --git a/plugin-management.html b/plugin-management.html
index b0dca55..3f1e861 100644
--- a/plugin-management.html
+++ b/plugin-management.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Project Plugin Management</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -440,7 +440,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/plugins.html
----------------------------------------------------------------------
diff --git a/plugins.html b/plugins.html
index 4605e89..8ca96cc 100644
--- a/plugins.html
+++ b/plugins.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Project Plugins</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -375,7 +375,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/poweredbyhbase.html
----------------------------------------------------------------------
diff --git a/poweredbyhbase.html b/poweredbyhbase.html
index 9f0036c..6b058d0 100644
--- a/poweredbyhbase.html
+++ b/poweredbyhbase.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Powered By Apache HBase™</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -769,7 +769,7 @@ under the License. -->
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/project-info.html
----------------------------------------------------------------------
diff --git a/project-info.html b/project-info.html
index a7c101b..29181d8 100644
--- a/project-info.html
+++ b/project-info.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Project Information</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -335,7 +335,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/project-reports.html
----------------------------------------------------------------------
diff --git a/project-reports.html b/project-reports.html
index b69caba..0e34184 100644
--- a/project-reports.html
+++ b/project-reports.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Generated Reports</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -305,7 +305,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/project-summary.html
----------------------------------------------------------------------
diff --git a/project-summary.html b/project-summary.html
index 43757dd..68e3941 100644
--- a/project-summary.html
+++ b/project-summary.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase – Project Summary</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.4-HBase.min.css" />
@@ -331,7 +331,7 @@
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/pseudo-distributed.html
----------------------------------------------------------------------
diff --git a/pseudo-distributed.html b/pseudo-distributed.html
index 69f1340..5d69567 100644
--- a/pseudo-distributed.html
+++ b/pseudo-distributed.html
@@ -7,7 +7,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20181007" />
+ <meta name="Date-Revision-yyyymmdd" content="20181008" />
<meta http-equiv="Content-Language" content="en" />
<title>Apache HBase –
Running Apache HBase (TM) in pseudo-distributed mode
@@ -308,7 +308,7 @@ under the License. -->
<a href="https://www.apache.org/">The Apache Software Foundation</a>.
All rights reserved.
- <li id="publishDate" class="pull-right">Last Published: 2018-10-07</li>
+ <li id="publishDate" class="pull-right">Last Published: 2018-10-08</li>
</p>
</div>
[02/10] hbase-site git commit: Published site at
e8df847d4ed16b8432221d28bcfc00e1621df586.
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html
index 65a28b9..0c894de 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html
@@ -179,4146 +179,4145 @@
<span class="sourceLineNo">171</span> * avoiding port contention if another local HBase instance is already running).<a name="line.171"></a>
<span class="sourceLineNo">172</span> * <p>To preserve test data directories, pass the system property "hbase.testing.preserve.testdir"<a name="line.172"></a>
<span class="sourceLineNo">173</span> * setting it to true.<a name="line.173"></a>
-<span class="sourceLineNo">174</span> * For triggering test.<a name="line.174"></a>
-<span class="sourceLineNo">175</span> */<a name="line.175"></a>
-<span class="sourceLineNo">176</span>@InterfaceAudience.Public<a name="line.176"></a>
-<span class="sourceLineNo">177</span>@SuppressWarnings("deprecation")<a name="line.177"></a>
-<span class="sourceLineNo">178</span>public class HBaseTestingUtility extends HBaseZKTestingUtility {<a name="line.178"></a>
-<span class="sourceLineNo">179</span><a name="line.179"></a>
-<span class="sourceLineNo">180</span> /**<a name="line.180"></a>
-<span class="sourceLineNo">181</span> * System property key to get test directory value. Name is as it is because mini dfs has<a name="line.181"></a>
-<span class="sourceLineNo">182</span> * hard-codings to put test data here. It should NOT be used directly in HBase, as it's a property<a name="line.182"></a>
-<span class="sourceLineNo">183</span> * used in mini dfs.<a name="line.183"></a>
-<span class="sourceLineNo">184</span> * @deprecated can be used only with mini dfs<a name="line.184"></a>
-<span class="sourceLineNo">185</span> */<a name="line.185"></a>
-<span class="sourceLineNo">186</span> @Deprecated<a name="line.186"></a>
-<span class="sourceLineNo">187</span> private static final String TEST_DIRECTORY_KEY = "test.build.data";<a name="line.187"></a>
-<span class="sourceLineNo">188</span><a name="line.188"></a>
-<span class="sourceLineNo">189</span> public static final String REGIONS_PER_SERVER_KEY = "hbase.test.regions-per-server";<a name="line.189"></a>
-<span class="sourceLineNo">190</span> /**<a name="line.190"></a>
-<span class="sourceLineNo">191</span> * The default number of regions per regionserver when creating a pre-split<a name="line.191"></a>
-<span class="sourceLineNo">192</span> * table.<a name="line.192"></a>
-<span class="sourceLineNo">193</span> */<a name="line.193"></a>
-<span class="sourceLineNo">194</span> public static final int DEFAULT_REGIONS_PER_SERVER = 3;<a name="line.194"></a>
+<span class="sourceLineNo">174</span> */<a name="line.174"></a>
+<span class="sourceLineNo">175</span>@InterfaceAudience.Public<a name="line.175"></a>
+<span class="sourceLineNo">176</span>@SuppressWarnings("deprecation")<a name="line.176"></a>
+<span class="sourceLineNo">177</span>public class HBaseTestingUtility extends HBaseZKTestingUtility {<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span> /**<a name="line.179"></a>
+<span class="sourceLineNo">180</span> * System property key to get test directory value. Name is as it is because mini dfs has<a name="line.180"></a>
+<span class="sourceLineNo">181</span> * hard-codings to put test data here. It should NOT be used directly in HBase, as it's a property<a name="line.181"></a>
+<span class="sourceLineNo">182</span> * used in mini dfs.<a name="line.182"></a>
+<span class="sourceLineNo">183</span> * @deprecated can be used only with mini dfs<a name="line.183"></a>
+<span class="sourceLineNo">184</span> */<a name="line.184"></a>
+<span class="sourceLineNo">185</span> @Deprecated<a name="line.185"></a>
+<span class="sourceLineNo">186</span> private static final String TEST_DIRECTORY_KEY = "test.build.data";<a name="line.186"></a>
+<span class="sourceLineNo">187</span><a name="line.187"></a>
+<span class="sourceLineNo">188</span> public static final String REGIONS_PER_SERVER_KEY = "hbase.test.regions-per-server";<a name="line.188"></a>
+<span class="sourceLineNo">189</span> /**<a name="line.189"></a>
+<span class="sourceLineNo">190</span> * The default number of regions per regionserver when creating a pre-split<a name="line.190"></a>
+<span class="sourceLineNo">191</span> * table.<a name="line.191"></a>
+<span class="sourceLineNo">192</span> */<a name="line.192"></a>
+<span class="sourceLineNo">193</span> public static final int DEFAULT_REGIONS_PER_SERVER = 3;<a name="line.193"></a>
+<span class="sourceLineNo">194</span><a name="line.194"></a>
<span class="sourceLineNo">195</span><a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span> public static final String PRESPLIT_TEST_TABLE_KEY = "hbase.test.pre-split-table";<a name="line.197"></a>
-<span class="sourceLineNo">198</span> public static final boolean PRESPLIT_TEST_TABLE = true;<a name="line.198"></a>
-<span class="sourceLineNo">199</span><a name="line.199"></a>
-<span class="sourceLineNo">200</span> private MiniDFSCluster dfsCluster = null;<a name="line.200"></a>
-<span class="sourceLineNo">201</span><a name="line.201"></a>
-<span class="sourceLineNo">202</span> private volatile HBaseCluster hbaseCluster = null;<a name="line.202"></a>
-<span class="sourceLineNo">203</span> private MiniMRCluster mrCluster = null;<a name="line.203"></a>
-<span class="sourceLineNo">204</span><a name="line.204"></a>
-<span class="sourceLineNo">205</span> /** If there is a mini cluster running for this testing utility instance. */<a name="line.205"></a>
-<span class="sourceLineNo">206</span> private volatile boolean miniClusterRunning;<a name="line.206"></a>
-<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span> private String hadoopLogDir;<a name="line.208"></a>
-<span class="sourceLineNo">209</span><a name="line.209"></a>
-<span class="sourceLineNo">210</span> /** Directory on test filesystem where we put the data for this instance of<a name="line.210"></a>
-<span class="sourceLineNo">211</span> * HBaseTestingUtility*/<a name="line.211"></a>
-<span class="sourceLineNo">212</span> private Path dataTestDirOnTestFS = null;<a name="line.212"></a>
-<span class="sourceLineNo">213</span><a name="line.213"></a>
-<span class="sourceLineNo">214</span> /**<a name="line.214"></a>
-<span class="sourceLineNo">215</span> * Shared cluster connection.<a name="line.215"></a>
-<span class="sourceLineNo">216</span> */<a name="line.216"></a>
-<span class="sourceLineNo">217</span> private volatile Connection connection;<a name="line.217"></a>
-<span class="sourceLineNo">218</span><a name="line.218"></a>
-<span class="sourceLineNo">219</span> /** Filesystem URI used for map-reduce mini-cluster setup */<a name="line.219"></a>
-<span class="sourceLineNo">220</span> private static String FS_URI;<a name="line.220"></a>
-<span class="sourceLineNo">221</span><a name="line.221"></a>
-<span class="sourceLineNo">222</span> /** This is for unit tests parameterized with a single boolean. */<a name="line.222"></a>
-<span class="sourceLineNo">223</span> public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();<a name="line.223"></a>
-<span class="sourceLineNo">224</span><a name="line.224"></a>
-<span class="sourceLineNo">225</span> /**<a name="line.225"></a>
-<span class="sourceLineNo">226</span> * Checks to see if a specific port is available.<a name="line.226"></a>
-<span class="sourceLineNo">227</span> *<a name="line.227"></a>
-<span class="sourceLineNo">228</span> * @param port the port number to check for availability<a name="line.228"></a>
-<span class="sourceLineNo">229</span> * @return <tt>true</tt> if the port is available, or <tt>false</tt> if not<a name="line.229"></a>
-<span class="sourceLineNo">230</span> */<a name="line.230"></a>
-<span class="sourceLineNo">231</span> public static boolean available(int port) {<a name="line.231"></a>
-<span class="sourceLineNo">232</span> ServerSocket ss = null;<a name="line.232"></a>
-<span class="sourceLineNo">233</span> DatagramSocket ds = null;<a name="line.233"></a>
-<span class="sourceLineNo">234</span> try {<a name="line.234"></a>
-<span class="sourceLineNo">235</span> ss = new ServerSocket(port);<a name="line.235"></a>
-<span class="sourceLineNo">236</span> ss.setReuseAddress(true);<a name="line.236"></a>
-<span class="sourceLineNo">237</span> ds = new DatagramSocket(port);<a name="line.237"></a>
-<span class="sourceLineNo">238</span> ds.setReuseAddress(true);<a name="line.238"></a>
-<span class="sourceLineNo">239</span> return true;<a name="line.239"></a>
-<span class="sourceLineNo">240</span> } catch (IOException e) {<a name="line.240"></a>
-<span class="sourceLineNo">241</span> // Do nothing<a name="line.241"></a>
-<span class="sourceLineNo">242</span> } finally {<a name="line.242"></a>
-<span class="sourceLineNo">243</span> if (ds != null) {<a name="line.243"></a>
-<span class="sourceLineNo">244</span> ds.close();<a name="line.244"></a>
-<span class="sourceLineNo">245</span> }<a name="line.245"></a>
-<span class="sourceLineNo">246</span><a name="line.246"></a>
-<span class="sourceLineNo">247</span> if (ss != null) {<a name="line.247"></a>
-<span class="sourceLineNo">248</span> try {<a name="line.248"></a>
-<span class="sourceLineNo">249</span> ss.close();<a name="line.249"></a>
-<span class="sourceLineNo">250</span> } catch (IOException e) {<a name="line.250"></a>
-<span class="sourceLineNo">251</span> /* should not be thrown */<a name="line.251"></a>
-<span class="sourceLineNo">252</span> }<a name="line.252"></a>
-<span class="sourceLineNo">253</span> }<a name="line.253"></a>
-<span class="sourceLineNo">254</span> }<a name="line.254"></a>
-<span class="sourceLineNo">255</span><a name="line.255"></a>
-<span class="sourceLineNo">256</span> return false;<a name="line.256"></a>
-<span class="sourceLineNo">257</span> }<a name="line.257"></a>
-<span class="sourceLineNo">258</span><a name="line.258"></a>
-<span class="sourceLineNo">259</span> /**<a name="line.259"></a>
-<span class="sourceLineNo">260</span> * Create all combinations of Bloom filters and compression algorithms for<a name="line.260"></a>
-<span class="sourceLineNo">261</span> * testing.<a name="line.261"></a>
-<span class="sourceLineNo">262</span> */<a name="line.262"></a>
-<span class="sourceLineNo">263</span> private static List<Object[]> bloomAndCompressionCombinations() {<a name="line.263"></a>
-<span class="sourceLineNo">264</span> List<Object[]> configurations = new ArrayList<>();<a name="line.264"></a>
-<span class="sourceLineNo">265</span> for (Compression.Algorithm comprAlgo :<a name="line.265"></a>
-<span class="sourceLineNo">266</span> HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {<a name="line.266"></a>
-<span class="sourceLineNo">267</span> for (BloomType bloomType : BloomType.values()) {<a name="line.267"></a>
-<span class="sourceLineNo">268</span> configurations.add(new Object[] { comprAlgo, bloomType });<a name="line.268"></a>
-<span class="sourceLineNo">269</span> }<a name="line.269"></a>
-<span class="sourceLineNo">270</span> }<a name="line.270"></a>
-<span class="sourceLineNo">271</span> return Collections.unmodifiableList(configurations);<a name="line.271"></a>
-<span class="sourceLineNo">272</span> }<a name="line.272"></a>
-<span class="sourceLineNo">273</span><a name="line.273"></a>
-<span class="sourceLineNo">274</span> /**<a name="line.274"></a>
-<span class="sourceLineNo">275</span> * Create combination of memstoreTS and tags<a name="line.275"></a>
-<span class="sourceLineNo">276</span> */<a name="line.276"></a>
-<span class="sourceLineNo">277</span> private static List<Object[]> memStoreTSAndTagsCombination() {<a name="line.277"></a>
-<span class="sourceLineNo">278</span> List<Object[]> configurations = new ArrayList<>();<a name="line.278"></a>
-<span class="sourceLineNo">279</span> configurations.add(new Object[] { false, false });<a name="line.279"></a>
-<span class="sourceLineNo">280</span> configurations.add(new Object[] { false, true });<a name="line.280"></a>
-<span class="sourceLineNo">281</span> configurations.add(new Object[] { true, false });<a name="line.281"></a>
-<span class="sourceLineNo">282</span> configurations.add(new Object[] { true, true });<a name="line.282"></a>
-<span class="sourceLineNo">283</span> return Collections.unmodifiableList(configurations);<a name="line.283"></a>
-<span class="sourceLineNo">284</span> }<a name="line.284"></a>
-<span class="sourceLineNo">285</span><a name="line.285"></a>
-<span class="sourceLineNo">286</span> public static List<Object[]> memStoreTSTagsAndOffheapCombination() {<a name="line.286"></a>
-<span class="sourceLineNo">287</span> List<Object[]> configurations = new ArrayList<>();<a name="line.287"></a>
-<span class="sourceLineNo">288</span> configurations.add(new Object[] { false, false, true });<a name="line.288"></a>
-<span class="sourceLineNo">289</span> configurations.add(new Object[] { false, false, false });<a name="line.289"></a>
-<span class="sourceLineNo">290</span> configurations.add(new Object[] { false, true, true });<a name="line.290"></a>
-<span class="sourceLineNo">291</span> configurations.add(new Object[] { false, true, false });<a name="line.291"></a>
-<span class="sourceLineNo">292</span> configurations.add(new Object[] { true, false, true });<a name="line.292"></a>
-<span class="sourceLineNo">293</span> configurations.add(new Object[] { true, false, false });<a name="line.293"></a>
-<span class="sourceLineNo">294</span> configurations.add(new Object[] { true, true, true });<a name="line.294"></a>
-<span class="sourceLineNo">295</span> configurations.add(new Object[] { true, true, false });<a name="line.295"></a>
-<span class="sourceLineNo">296</span> return Collections.unmodifiableList(configurations);<a name="line.296"></a>
-<span class="sourceLineNo">297</span> }<a name="line.297"></a>
-<span class="sourceLineNo">298</span><a name="line.298"></a>
-<span class="sourceLineNo">299</span> public static final Collection<Object[]> BLOOM_AND_COMPRESSION_COMBINATIONS =<a name="line.299"></a>
-<span class="sourceLineNo">300</span> bloomAndCompressionCombinations();<a name="line.300"></a>
+<span class="sourceLineNo">196</span> public static final String PRESPLIT_TEST_TABLE_KEY = "hbase.test.pre-split-table";<a name="line.196"></a>
+<span class="sourceLineNo">197</span> public static final boolean PRESPLIT_TEST_TABLE = true;<a name="line.197"></a>
+<span class="sourceLineNo">198</span><a name="line.198"></a>
+<span class="sourceLineNo">199</span> private MiniDFSCluster dfsCluster = null;<a name="line.199"></a>
+<span class="sourceLineNo">200</span><a name="line.200"></a>
+<span class="sourceLineNo">201</span> private volatile HBaseCluster hbaseCluster = null;<a name="line.201"></a>
+<span class="sourceLineNo">202</span> private MiniMRCluster mrCluster = null;<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span> /** If there is a mini cluster running for this testing utility instance. */<a name="line.204"></a>
+<span class="sourceLineNo">205</span> private volatile boolean miniClusterRunning;<a name="line.205"></a>
+<span class="sourceLineNo">206</span><a name="line.206"></a>
+<span class="sourceLineNo">207</span> private String hadoopLogDir;<a name="line.207"></a>
+<span class="sourceLineNo">208</span><a name="line.208"></a>
+<span class="sourceLineNo">209</span> /** Directory on test filesystem where we put the data for this instance of<a name="line.209"></a>
+<span class="sourceLineNo">210</span> * HBaseTestingUtility*/<a name="line.210"></a>
+<span class="sourceLineNo">211</span> private Path dataTestDirOnTestFS = null;<a name="line.211"></a>
+<span class="sourceLineNo">212</span><a name="line.212"></a>
+<span class="sourceLineNo">213</span> /**<a name="line.213"></a>
+<span class="sourceLineNo">214</span> * Shared cluster connection.<a name="line.214"></a>
+<span class="sourceLineNo">215</span> */<a name="line.215"></a>
+<span class="sourceLineNo">216</span> private volatile Connection connection;<a name="line.216"></a>
+<span class="sourceLineNo">217</span><a name="line.217"></a>
+<span class="sourceLineNo">218</span> /** Filesystem URI used for map-reduce mini-cluster setup */<a name="line.218"></a>
+<span class="sourceLineNo">219</span> private static String FS_URI;<a name="line.219"></a>
+<span class="sourceLineNo">220</span><a name="line.220"></a>
+<span class="sourceLineNo">221</span> /** This is for unit tests parameterized with a single boolean. */<a name="line.221"></a>
+<span class="sourceLineNo">222</span> public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();<a name="line.222"></a>
+<span class="sourceLineNo">223</span><a name="line.223"></a>
+<span class="sourceLineNo">224</span> /**<a name="line.224"></a>
+<span class="sourceLineNo">225</span> * Checks to see if a specific port is available.<a name="line.225"></a>
+<span class="sourceLineNo">226</span> *<a name="line.226"></a>
+<span class="sourceLineNo">227</span> * @param port the port number to check for availability<a name="line.227"></a>
+<span class="sourceLineNo">228</span> * @return <tt>true</tt> if the port is available, or <tt>false</tt> if not<a name="line.228"></a>
+<span class="sourceLineNo">229</span> */<a name="line.229"></a>
+<span class="sourceLineNo">230</span> public static boolean available(int port) {<a name="line.230"></a>
+<span class="sourceLineNo">231</span> ServerSocket ss = null;<a name="line.231"></a>
+<span class="sourceLineNo">232</span> DatagramSocket ds = null;<a name="line.232"></a>
+<span class="sourceLineNo">233</span> try {<a name="line.233"></a>
+<span class="sourceLineNo">234</span> ss = new ServerSocket(port);<a name="line.234"></a>
+<span class="sourceLineNo">235</span> ss.setReuseAddress(true);<a name="line.235"></a>
+<span class="sourceLineNo">236</span> ds = new DatagramSocket(port);<a name="line.236"></a>
+<span class="sourceLineNo">237</span> ds.setReuseAddress(true);<a name="line.237"></a>
+<span class="sourceLineNo">238</span> return true;<a name="line.238"></a>
+<span class="sourceLineNo">239</span> } catch (IOException e) {<a name="line.239"></a>
+<span class="sourceLineNo">240</span> // Do nothing<a name="line.240"></a>
+<span class="sourceLineNo">241</span> } finally {<a name="line.241"></a>
+<span class="sourceLineNo">242</span> if (ds != null) {<a name="line.242"></a>
+<span class="sourceLineNo">243</span> ds.close();<a name="line.243"></a>
+<span class="sourceLineNo">244</span> }<a name="line.244"></a>
+<span class="sourceLineNo">245</span><a name="line.245"></a>
+<span class="sourceLineNo">246</span> if (ss != null) {<a name="line.246"></a>
+<span class="sourceLineNo">247</span> try {<a name="line.247"></a>
+<span class="sourceLineNo">248</span> ss.close();<a name="line.248"></a>
+<span class="sourceLineNo">249</span> } catch (IOException e) {<a name="line.249"></a>
+<span class="sourceLineNo">250</span> /* should not be thrown */<a name="line.250"></a>
+<span class="sourceLineNo">251</span> }<a name="line.251"></a>
+<span class="sourceLineNo">252</span> }<a name="line.252"></a>
+<span class="sourceLineNo">253</span> }<a name="line.253"></a>
+<span class="sourceLineNo">254</span><a name="line.254"></a>
+<span class="sourceLineNo">255</span> return false;<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> /**<a name="line.258"></a>
+<span class="sourceLineNo">259</span> * Create all combinations of Bloom filters and compression algorithms for<a name="line.259"></a>
+<span class="sourceLineNo">260</span> * testing.<a name="line.260"></a>
+<span class="sourceLineNo">261</span> */<a name="line.261"></a>
+<span class="sourceLineNo">262</span> private static List<Object[]> bloomAndCompressionCombinations() {<a name="line.262"></a>
+<span class="sourceLineNo">263</span> List<Object[]> configurations = new ArrayList<>();<a name="line.263"></a>
+<span class="sourceLineNo">264</span> for (Compression.Algorithm comprAlgo :<a name="line.264"></a>
+<span class="sourceLineNo">265</span> HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {<a name="line.265"></a>
+<span class="sourceLineNo">266</span> for (BloomType bloomType : BloomType.values()) {<a name="line.266"></a>
+<span class="sourceLineNo">267</span> configurations.add(new Object[] { comprAlgo, bloomType });<a name="line.267"></a>
+<span class="sourceLineNo">268</span> }<a name="line.268"></a>
+<span class="sourceLineNo">269</span> }<a name="line.269"></a>
+<span class="sourceLineNo">270</span> return Collections.unmodifiableList(configurations);<a name="line.270"></a>
+<span class="sourceLineNo">271</span> }<a name="line.271"></a>
+<span class="sourceLineNo">272</span><a name="line.272"></a>
+<span class="sourceLineNo">273</span> /**<a name="line.273"></a>
+<span class="sourceLineNo">274</span> * Create combination of memstoreTS and tags<a name="line.274"></a>
+<span class="sourceLineNo">275</span> */<a name="line.275"></a>
+<span class="sourceLineNo">276</span> private static List<Object[]> memStoreTSAndTagsCombination() {<a name="line.276"></a>
+<span class="sourceLineNo">277</span> List<Object[]> configurations = new ArrayList<>();<a name="line.277"></a>
+<span class="sourceLineNo">278</span> configurations.add(new Object[] { false, false });<a name="line.278"></a>
+<span class="sourceLineNo">279</span> configurations.add(new Object[] { false, true });<a name="line.279"></a>
+<span class="sourceLineNo">280</span> configurations.add(new Object[] { true, false });<a name="line.280"></a>
+<span class="sourceLineNo">281</span> configurations.add(new Object[] { true, true });<a name="line.281"></a>
+<span class="sourceLineNo">282</span> return Collections.unmodifiableList(configurations);<a name="line.282"></a>
+<span class="sourceLineNo">283</span> }<a name="line.283"></a>
+<span class="sourceLineNo">284</span><a name="line.284"></a>
+<span class="sourceLineNo">285</span> public static List<Object[]> memStoreTSTagsAndOffheapCombination() {<a name="line.285"></a>
+<span class="sourceLineNo">286</span> List<Object[]> configurations = new ArrayList<>();<a name="line.286"></a>
+<span class="sourceLineNo">287</span> configurations.add(new Object[] { false, false, true });<a name="line.287"></a>
+<span class="sourceLineNo">288</span> configurations.add(new Object[] { false, false, false });<a name="line.288"></a>
+<span class="sourceLineNo">289</span> configurations.add(new Object[] { false, true, true });<a name="line.289"></a>
+<span class="sourceLineNo">290</span> configurations.add(new Object[] { false, true, false });<a name="line.290"></a>
+<span class="sourceLineNo">291</span> configurations.add(new Object[] { true, false, true });<a name="line.291"></a>
+<span class="sourceLineNo">292</span> configurations.add(new Object[] { true, false, false });<a name="line.292"></a>
+<span class="sourceLineNo">293</span> configurations.add(new Object[] { true, true, true });<a name="line.293"></a>
+<span class="sourceLineNo">294</span> configurations.add(new Object[] { true, true, false });<a name="line.294"></a>
+<span class="sourceLineNo">295</span> return Collections.unmodifiableList(configurations);<a name="line.295"></a>
+<span class="sourceLineNo">296</span> }<a name="line.296"></a>
+<span class="sourceLineNo">297</span><a name="line.297"></a>
+<span class="sourceLineNo">298</span> public static final Collection<Object[]> BLOOM_AND_COMPRESSION_COMBINATIONS =<a name="line.298"></a>
+<span class="sourceLineNo">299</span> bloomAndCompressionCombinations();<a name="line.299"></a>
+<span class="sourceLineNo">300</span><a name="line.300"></a>
<span class="sourceLineNo">301</span><a name="line.301"></a>
-<span class="sourceLineNo">302</span><a name="line.302"></a>
-<span class="sourceLineNo">303</span> /**<a name="line.303"></a>
-<span class="sourceLineNo">304</span> * <p>Create an HBaseTestingUtility using a default configuration.<a name="line.304"></a>
-<span class="sourceLineNo">305</span> *<a name="line.305"></a>
-<span class="sourceLineNo">306</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.306"></a>
-<span class="sourceLineNo">307</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.307"></a>
-<span class="sourceLineNo">308</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.308"></a>
-<span class="sourceLineNo">309</span> *<a name="line.309"></a>
-<span class="sourceLineNo">310</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.310"></a>
-<span class="sourceLineNo">311</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.311"></a>
-<span class="sourceLineNo">312</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.312"></a>
-<span class="sourceLineNo">313</span> * at which point they will switch to using mini DFS for storage.<a name="line.313"></a>
-<span class="sourceLineNo">314</span> */<a name="line.314"></a>
-<span class="sourceLineNo">315</span> public HBaseTestingUtility() {<a name="line.315"></a>
-<span class="sourceLineNo">316</span> this(HBaseConfiguration.create());<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> * <p>Create an HBaseTestingUtility using a given configuration.<a name="line.320"></a>
-<span class="sourceLineNo">321</span> *<a name="line.321"></a>
-<span class="sourceLineNo">322</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.322"></a>
-<span class="sourceLineNo">323</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.323"></a>
-<span class="sourceLineNo">324</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.324"></a>
-<span class="sourceLineNo">325</span> *<a name="line.325"></a>
-<span class="sourceLineNo">326</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.326"></a>
-<span class="sourceLineNo">327</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.327"></a>
-<span class="sourceLineNo">328</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.328"></a>
-<span class="sourceLineNo">329</span> * at which point they will switch to using mini DFS for storage.<a name="line.329"></a>
-<span class="sourceLineNo">330</span> *<a name="line.330"></a>
-<span class="sourceLineNo">331</span> * @param conf The configuration to use for further operations<a name="line.331"></a>
-<span class="sourceLineNo">332</span> */<a name="line.332"></a>
-<span class="sourceLineNo">333</span> public HBaseTestingUtility(@Nullable Configuration conf) {<a name="line.333"></a>
-<span class="sourceLineNo">334</span> super(conf);<a name="line.334"></a>
-<span class="sourceLineNo">335</span><a name="line.335"></a>
-<span class="sourceLineNo">336</span> // a hbase checksum verification failure will cause unit tests to fail<a name="line.336"></a>
-<span class="sourceLineNo">337</span> ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.337"></a>
-<span class="sourceLineNo">338</span><a name="line.338"></a>
-<span class="sourceLineNo">339</span> // Save this for when setting default file:// breaks things<a name="line.339"></a>
-<span class="sourceLineNo">340</span> if (this.conf.get("fs.defaultFS") != null) {<a name="line.340"></a>
-<span class="sourceLineNo">341</span> this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.341"></a>
-<span class="sourceLineNo">342</span> }<a name="line.342"></a>
-<span class="sourceLineNo">343</span> if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.343"></a>
-<span class="sourceLineNo">344</span> this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.344"></a>
-<span class="sourceLineNo">345</span> }<a name="line.345"></a>
-<span class="sourceLineNo">346</span> // Every cluster is a local cluster until we start DFS<a name="line.346"></a>
-<span class="sourceLineNo">347</span> // Note that conf could be null, but this.conf will not be<a name="line.347"></a>
-<span class="sourceLineNo">348</span> String dataTestDir = getDataTestDir().toString();<a name="line.348"></a>
-<span class="sourceLineNo">349</span> this.conf.set("fs.defaultFS","file:///");<a name="line.349"></a>
-<span class="sourceLineNo">350</span> this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.350"></a>
-<span class="sourceLineNo">351</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.351"></a>
-<span class="sourceLineNo">352</span> this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.352"></a>
-<span class="sourceLineNo">353</span> // If the value for random ports isn't set set it to true, thus making<a name="line.353"></a>
-<span class="sourceLineNo">354</span> // tests opt-out for random port assignment<a name="line.354"></a>
-<span class="sourceLineNo">355</span> this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.355"></a>
-<span class="sourceLineNo">356</span> this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.356"></a>
-<span class="sourceLineNo">357</span> }<a name="line.357"></a>
-<span class="sourceLineNo">358</span><a name="line.358"></a>
-<span class="sourceLineNo">359</span> /**<a name="line.359"></a>
-<span class="sourceLineNo">360</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.360"></a>
-<span class="sourceLineNo">361</span> * @return a normal HBaseTestingUtility<a name="line.361"></a>
-<span class="sourceLineNo">362</span> */<a name="line.362"></a>
-<span class="sourceLineNo">363</span> @Deprecated<a name="line.363"></a>
-<span class="sourceLineNo">364</span> public static HBaseTestingUtility createLocalHTU() {<a name="line.364"></a>
-<span class="sourceLineNo">365</span> return new HBaseTestingUtility();<a name="line.365"></a>
-<span class="sourceLineNo">366</span> }<a name="line.366"></a>
-<span class="sourceLineNo">367</span><a name="line.367"></a>
-<span class="sourceLineNo">368</span> /**<a name="line.368"></a>
-<span class="sourceLineNo">369</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.369"></a>
-<span class="sourceLineNo">370</span> * @return a normal HBaseTestingUtility<a name="line.370"></a>
-<span class="sourceLineNo">371</span> */<a name="line.371"></a>
-<span class="sourceLineNo">372</span> @Deprecated<a name="line.372"></a>
-<span class="sourceLineNo">373</span> public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.373"></a>
-<span class="sourceLineNo">374</span> return new HBaseTestingUtility(c);<a name="line.374"></a>
-<span class="sourceLineNo">375</span> }<a name="line.375"></a>
-<span class="sourceLineNo">376</span><a name="line.376"></a>
-<span class="sourceLineNo">377</span> /**<a name="line.377"></a>
-<span class="sourceLineNo">378</span> * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.378"></a>
-<span class="sourceLineNo">379</span> */<a name="line.379"></a>
-<span class="sourceLineNo">380</span> public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.380"></a>
-<span class="sourceLineNo">381</span> closeRegionAndWAL((HRegion)r);<a name="line.381"></a>
-<span class="sourceLineNo">382</span> }<a name="line.382"></a>
-<span class="sourceLineNo">383</span><a name="line.383"></a>
-<span class="sourceLineNo">384</span> /**<a name="line.384"></a>
-<span class="sourceLineNo">385</span> * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.385"></a>
-<span class="sourceLineNo">386</span> */<a name="line.386"></a>
-<span class="sourceLineNo">387</span> public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.387"></a>
-<span class="sourceLineNo">388</span> if (r == null) return;<a name="line.388"></a>
-<span class="sourceLineNo">389</span> r.close();<a name="line.389"></a>
-<span class="sourceLineNo">390</span> if (r.getWAL() == null) return;<a name="line.390"></a>
-<span class="sourceLineNo">391</span> r.getWAL().close();<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> /**<a name="line.394"></a>
-<span class="sourceLineNo">395</span> * Returns this classes's instance of {@link Configuration}. Be careful how<a name="line.395"></a>
-<span class="sourceLineNo">396</span> * you use the returned Configuration since {@link Connection} instances<a name="line.396"></a>
-<span class="sourceLineNo">397</span> * can be shared. The Map of Connections is keyed by the Configuration. If<a name="line.397"></a>
-<span class="sourceLineNo">398</span> * say, a Connection was being used against a cluster that had been shutdown,<a name="line.398"></a>
-<span class="sourceLineNo">399</span> * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.399"></a>
-<span class="sourceLineNo">400</span> * be wholesome. Rather than use the return direct, its usually best to<a name="line.400"></a>
-<span class="sourceLineNo">401</span> * make a copy and use that. Do<a name="line.401"></a>
-<span class="sourceLineNo">402</span> * <code>Configuration c = new Configuration(INSTANCE.getConfiguration());</code><a name="line.402"></a>
-<span class="sourceLineNo">403</span> * @return Instance of Configuration.<a name="line.403"></a>
-<span class="sourceLineNo">404</span> */<a name="line.404"></a>
-<span class="sourceLineNo">405</span> @Override<a name="line.405"></a>
-<span class="sourceLineNo">406</span> public Configuration getConfiguration() {<a name="line.406"></a>
-<span class="sourceLineNo">407</span> return super.getConfiguration();<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> public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.410"></a>
-<span class="sourceLineNo">411</span> this.hbaseCluster = hbaseCluster;<a name="line.411"></a>
-<span class="sourceLineNo">412</span> }<a name="line.412"></a>
-<span class="sourceLineNo">413</span><a name="line.413"></a>
-<span class="sourceLineNo">414</span> /**<a name="line.414"></a>
-<span class="sourceLineNo">415</span> * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.415"></a>
-<span class="sourceLineNo">416</span> * Give it a random name so can have many concurrent tests running if<a name="line.416"></a>
-<span class="sourceLineNo">417</span> * we need to. It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.417"></a>
-<span class="sourceLineNo">418</span> * System property, as it's what minidfscluster bases<a name="line.418"></a>
-<span class="sourceLineNo">419</span> * it data dir on. Moding a System property is not the way to do concurrent<a name="line.419"></a>
-<span class="sourceLineNo">420</span> * instances -- another instance could grab the temporary<a name="line.420"></a>
-<span class="sourceLineNo">421</span> * value unintentionally -- but not anything can do about it at moment;<a name="line.421"></a>
-<span class="sourceLineNo">422</span> * single instance only is how the minidfscluster works.<a name="line.422"></a>
-<span class="sourceLineNo">423</span> *<a name="line.423"></a>
-<span class="sourceLineNo">424</span> * We also create the underlying directory for<a name="line.424"></a>
-<span class="sourceLineNo">425</span> * hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.425"></a>
-<span class="sourceLineNo">426</span> * in the conf, and as a system property for hadoop.tmp.dir<a name="line.426"></a>
-<span class="sourceLineNo">427</span> *<a name="line.427"></a>
-<span class="sourceLineNo">428</span> * @return The calculated data test build directory, if newly-created.<a name="line.428"></a>
-<span class="sourceLineNo">429</span> */<a name="line.429"></a>
-<span class="sourceLineNo">430</span> @Override<a name="line.430"></a>
-<span class="sourceLineNo">431</span> protected Path setupDataTestDir() {<a name="line.431"></a>
-<span class="sourceLineNo">432</span> Path testPath = super.setupDataTestDir();<a name="line.432"></a>
-<span class="sourceLineNo">433</span> if (null == testPath) {<a name="line.433"></a>
-<span class="sourceLineNo">434</span> return null;<a name="line.434"></a>
-<span class="sourceLineNo">435</span> }<a name="line.435"></a>
-<span class="sourceLineNo">436</span><a name="line.436"></a>
-<span class="sourceLineNo">437</span> createSubDirAndSystemProperty(<a name="line.437"></a>
-<span class="sourceLineNo">438</span> "hadoop.log.dir",<a name="line.438"></a>
-<span class="sourceLineNo">439</span> testPath, "hadoop-log-dir");<a name="line.439"></a>
-<span class="sourceLineNo">440</span><a name="line.440"></a>
-<span class="sourceLineNo">441</span> // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.441"></a>
-<span class="sourceLineNo">442</span> // we want our own value to ensure uniqueness on the same machine<a name="line.442"></a>
-<span class="sourceLineNo">443</span> createSubDirAndSystemProperty(<a name="line.443"></a>
-<span class="sourceLineNo">444</span> "hadoop.tmp.dir",<a name="line.444"></a>
-<span class="sourceLineNo">445</span> testPath, "hadoop-tmp-dir");<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span> // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.447"></a>
-<span class="sourceLineNo">448</span> createSubDir(<a name="line.448"></a>
-<span class="sourceLineNo">449</span> "mapreduce.cluster.local.dir",<a name="line.449"></a>
-<span class="sourceLineNo">450</span> testPath, "mapred-local-dir");<a name="line.450"></a>
-<span class="sourceLineNo">451</span><a name="line.451"></a>
-<span class="sourceLineNo">452</span> return testPath;<a name="line.452"></a>
-<span class="sourceLineNo">453</span> }<a name="line.453"></a>
-<span class="sourceLineNo">454</span><a name="line.454"></a>
-<span class="sourceLineNo">455</span> private void createSubDirAndSystemProperty(<a name="line.455"></a>
-<span class="sourceLineNo">456</span> String propertyName, Path parent, String subDirName){<a name="line.456"></a>
-<span class="sourceLineNo">457</span><a name="line.457"></a>
-<span class="sourceLineNo">458</span> String sysValue = System.getProperty(propertyName);<a name="line.458"></a>
-<span class="sourceLineNo">459</span><a name="line.459"></a>
-<span class="sourceLineNo">460</span> if (sysValue != null) {<a name="line.460"></a>
-<span class="sourceLineNo">461</span> // There is already a value set. So we do nothing but hope<a name="line.461"></a>
-<span class="sourceLineNo">462</span> // that there will be no conflicts<a name="line.462"></a>
-<span class="sourceLineNo">463</span> LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.463"></a>
-<span class="sourceLineNo">464</span> sysValue + " so I do NOT create it in " + parent);<a name="line.464"></a>
-<span class="sourceLineNo">465</span> String confValue = conf.get(propertyName);<a name="line.465"></a>
-<span class="sourceLineNo">466</span> if (confValue != null && !confValue.endsWith(sysValue)){<a name="line.466"></a>
-<span class="sourceLineNo">467</span> LOG.warn(<a name="line.467"></a>
-<span class="sourceLineNo">468</span> propertyName + " property value differs in configuration and system: "+<a name="line.468"></a>
-<span class="sourceLineNo">469</span> "Configuration="+confValue+" while System="+sysValue+<a name="line.469"></a>
-<span class="sourceLineNo">470</span> " Erasing configuration value by system value."<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> conf.set(propertyName, sysValue);<a name="line.473"></a>
-<span class="sourceLineNo">474</span> } else {<a name="line.474"></a>
-<span class="sourceLineNo">475</span> // Ok, it's not set, so we create it as a subdirectory<a name="line.475"></a>
-<span class="sourceLineNo">476</span> createSubDir(propertyName, parent, subDirName);<a name="line.476"></a>
-<span class="sourceLineNo">477</span> System.setProperty(propertyName, conf.get(propertyName));<a name="line.477"></a>
-<span class="sourceLineNo">478</span> }<a name="line.478"></a>
-<span class="sourceLineNo">479</span> }<a name="line.479"></a>
-<span class="sourceLineNo">480</span><a name="line.480"></a>
-<span class="sourceLineNo">481</span> /**<a name="line.481"></a>
-<span class="sourceLineNo">482</span> * @return Where to write test data on the test filesystem; Returns working directory<a name="line.482"></a>
-<span class="sourceLineNo">483</span> * for the test filesystem by default<a name="line.483"></a>
-<span class="sourceLineNo">484</span> * @see #setupDataTestDirOnTestFS()<a name="line.484"></a>
-<span class="sourceLineNo">485</span> * @see #getTestFileSystem()<a name="line.485"></a>
-<span class="sourceLineNo">486</span> */<a name="line.486"></a>
-<span class="sourceLineNo">487</span> private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.487"></a>
-<span class="sourceLineNo">488</span> FileSystem fs = getTestFileSystem();<a name="line.488"></a>
-<span class="sourceLineNo">489</span> return new Path(fs.getWorkingDirectory(), "test-data");<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> /**<a name="line.492"></a>
-<span class="sourceLineNo">493</span> * @return META table descriptor<a name="line.493"></a>
-<span class="sourceLineNo">494</span> * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.494"></a>
-<span class="sourceLineNo">495</span> * use {@link #getMetaTableDescriptorBuilder()}<a name="line.495"></a>
-<span class="sourceLineNo">496</span> */<a name="line.496"></a>
-<span class="sourceLineNo">497</span> @Deprecated<a name="line.497"></a>
-<span class="sourceLineNo">498</span> public HTableDescriptor getMetaTableDescriptor() {<a name="line.498"></a>
-<span class="sourceLineNo">499</span> return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<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> /**<a name="line.502"></a>
-<span class="sourceLineNo">503</span> * @return META table descriptor<a name="line.503"></a>
-<span class="sourceLineNo">504</span> */<a name="line.504"></a>
-<span class="sourceLineNo">505</span> public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.505"></a>
-<span class="sourceLineNo">506</span> try {<a name="line.506"></a>
-<span class="sourceLineNo">507</span> return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.507"></a>
-<span class="sourceLineNo">508</span> } catch (IOException e) {<a name="line.508"></a>
-<span class="sourceLineNo">509</span> throw new RuntimeException("Unable to create META table descriptor", e);<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><a name="line.512"></a>
-<span class="sourceLineNo">513</span> /**<a name="line.513"></a>
-<span class="sourceLineNo">514</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.514"></a>
-<span class="sourceLineNo">515</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.515"></a>
-<span class="sourceLineNo">516</span> * if the test relies on it.<a name="line.516"></a>
-<span class="sourceLineNo">517</span> * @return a unique path in the test filesystem<a name="line.517"></a>
-<span class="sourceLineNo">518</span> */<a name="line.518"></a>
-<span class="sourceLineNo">519</span> public Path getDataTestDirOnTestFS() throws IOException {<a name="line.519"></a>
-<span class="sourceLineNo">520</span> if (dataTestDirOnTestFS == null) {<a name="line.520"></a>
-<span class="sourceLineNo">521</span> setupDataTestDirOnTestFS();<a name="line.521"></a>
-<span class="sourceLineNo">522</span> }<a name="line.522"></a>
-<span class="sourceLineNo">523</span><a name="line.523"></a>
-<span class="sourceLineNo">524</span> return dataTestDirOnTestFS;<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> /**<a name="line.527"></a>
-<span class="sourceLineNo">528</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.528"></a>
-<span class="sourceLineNo">529</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.529"></a>
-<span class="sourceLineNo">530</span> * if the test relies on it.<a name="line.530"></a>
-<span class="sourceLineNo">531</span> * @return a unique path in the test filesystem<a name="line.531"></a>
-<span class="sourceLineNo">532</span> * @param subdirName name of the subdir to create under the base test dir<a name="line.532"></a>
-<span class="sourceLineNo">533</span> */<a name="line.533"></a>
-<span class="sourceLineNo">534</span> public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.534"></a>
-<span class="sourceLineNo">535</span> return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.535"></a>
-<span class="sourceLineNo">536</span> }<a name="line.536"></a>
-<span class="sourceLineNo">537</span><a name="line.537"></a>
-<span class="sourceLineNo">538</span> /**<a name="line.538"></a>
-<span class="sourceLineNo">539</span> * Sets up a path in test filesystem to be used by tests.<a name="line.539"></a>
-<span class="sourceLineNo">540</span> * Creates a new directory if not already setup.<a name="line.540"></a>
-<span class="sourceLineNo">541</span> */<a name="line.541"></a>
-<span class="sourceLineNo">542</span> private void setupDataTestDirOnTestFS() throws IOException {<a name="line.542"></a>
-<span class="sourceLineNo">543</span> if (dataTestDirOnTestFS != null) {<a name="line.543"></a>
-<span class="sourceLineNo">544</span> LOG.warn("Data test on test fs dir already setup in "<a name="line.544"></a>
-<span class="sourceLineNo">545</span> + dataTestDirOnTestFS.toString());<a name="line.545"></a>
-<span class="sourceLineNo">546</span> return;<a name="line.546"></a>
-<span class="sourceLineNo">547</span> }<a name="line.547"></a>
-<span class="sourceLineNo">548</span> dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.548"></a>
-<span class="sourceLineNo">549</span> }<a name="line.549"></a>
-<span class="sourceLineNo">550</span><a name="line.550"></a>
-<span class="sourceLineNo">551</span> /**<a name="line.551"></a>
-<span class="sourceLineNo">552</span> * Sets up a new path in test filesystem to be used by tests.<a name="line.552"></a>
-<span class="sourceLineNo">553</span> */<a name="line.553"></a>
-<span class="sourceLineNo">554</span> private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.554"></a>
-<span class="sourceLineNo">555</span> //The file system can be either local, mini dfs, or if the configuration<a name="line.555"></a>
-<span class="sourceLineNo">556</span> //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.556"></a>
-<span class="sourceLineNo">557</span> //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.557"></a>
-<span class="sourceLineNo">558</span> //the working directory, and create a unique sub dir there<a name="line.558"></a>
-<span class="sourceLineNo">559</span> FileSystem fs = getTestFileSystem();<a name="line.559"></a>
-<span class="sourceLineNo">560</span> Path newDataTestDir;<a name="line.560"></a>
-<span class="sourceLineNo">561</span> String randomStr = getRandomUUID().toString();<a name="line.561"></a>
-<span class="sourceLineNo">562</span> if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.562"></a>
-<span class="sourceLineNo">563</span> newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.563"></a>
-<span class="sourceLineNo">564</span> File dataTestDir = new File(newDataTestDir.toString());<a name="line.564"></a>
-<span class="sourceLineNo">565</span> if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.565"></a>
-<span class="sourceLineNo">566</span> } else {<a name="line.566"></a>
-<span class="sourceLineNo">567</span> Path base = getBaseTestDirOnTestFS();<a name="line.567"></a>
-<span class="sourceLineNo">568</span> newDataTestDir = new Path(base, randomStr);<a name="line.568"></a>
-<span class="sourceLineNo">569</span> if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.569"></a>
-<span class="sourceLineNo">570</span> }<a name="line.570"></a>
-<span class="sourceLineNo">571</span> return newDataTestDir;<a name="line.571"></a>
-<span class="sourceLineNo">572</span> }<a name="line.572"></a>
-<span class="sourceLineNo">573</span><a name="line.573"></a>
-<span class="sourceLineNo">574</span> /**<a name="line.574"></a>
-<span class="sourceLineNo">575</span> * Cleans the test data directory on the test filesystem.<a name="line.575"></a>
-<span class="sourceLineNo">576</span> * @return True if we removed the test dirs<a name="line.576"></a>
-<span class="sourceLineNo">577</span> * @throws IOException<a name="line.577"></a>
-<span class="sourceLineNo">578</span> */<a name="line.578"></a>
-<span class="sourceLineNo">579</span> public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.579"></a>
-<span class="sourceLineNo">580</span> boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.580"></a>
-<span class="sourceLineNo">581</span> if (ret)<a name="line.581"></a>
-<span class="sourceLineNo">582</span> dataTestDirOnTestFS = null;<a name="line.582"></a>
-<span class="sourceLineNo">583</span> return ret;<a name="line.583"></a>
-<span class="sourceLineNo">584</span> }<a name="line.584"></a>
-<span class="sourceLineNo">585</span><a name="line.585"></a>
-<span class="sourceLineNo">586</span> /**<a name="line.586"></a>
-<span class="sourceLineNo">587</span> * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.587"></a>
-<span class="sourceLineNo">588</span> * @return True if we removed child<a name="line.588"></a>
-<span class="sourceLineNo">589</span> * @throws IOException<a name="line.589"></a>
-<span class="sourceLineNo">590</span> */<a name="line.590"></a>
-<span class="sourceLineNo">591</span> public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.591"></a>
-<span class="sourceLineNo">592</span> Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.592"></a>
-<span class="sourceLineNo">593</span> return getTestFileSystem().delete(cpath, true);<a name="line.593"></a>
-<span class="sourceLineNo">594</span> }<a name="line.594"></a>
-<span class="sourceLineNo">595</span><a name="line.595"></a>
-<span class="sourceLineNo">596</span> /**<a name="line.596"></a>
-<span class="sourceLineNo">597</span> * Start a minidfscluster.<a name="line.597"></a>
-<span class="sourceLineNo">598</span> * @param servers How many DNs to start.<a name="line.598"></a>
-<span class="sourceLineNo">599</span> * @throws Exception<a name="line.599"></a>
-<span class="sourceLineNo">600</span> * @see #shutdownMiniDFSCluster()<a name="line.600"></a>
-<span class="sourceLineNo">601</span> * @return The mini dfs cluster created.<a name="line.601"></a>
-<span class="sourceLineNo">602</span> */<a name="line.602"></a>
-<span class="sourceLineNo">603</span> public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.603"></a>
-<span class="sourceLineNo">604</span> return startMiniDFSCluster(servers, null);<a name="line.604"></a>
-<span class="sourceLineNo">605</span> }<a name="line.605"></a>
-<span class="sourceLineNo">606</span><a name="line.606"></a>
-<span class="sourceLineNo">607</span> /**<a name="line.607"></a>
-<span class="sourceLineNo">608</span> * Start a minidfscluster.<a name="line.608"></a>
-<span class="sourceLineNo">609</span> * This is useful if you want to run datanode on distinct hosts for things<a name="line.609"></a>
-<span class="sourceLineNo">610</span> * like HDFS block location verification.<a name="line.610"></a>
-<span class="sourceLineNo">611</span> * If you start MiniDFSCluster without host names, all instances of the<a name="line.611"></a>
-<span class="sourceLineNo">612</span> * datanodes will have the same host name.<a name="line.612"></a>
-<span class="sourceLineNo">613</span> * @param hosts hostnames DNs to run on.<a name="line.613"></a>
-<span class="sourceLineNo">614</span> * @throws Exception<a name="line.614"></a>
-<span class="sourceLineNo">615</span> * @see #shutdownMiniDFSCluster()<a name="line.615"></a>
-<span class="sourceLineNo">616</span> * @return The mini dfs cluster created.<a name="line.616"></a>
-<span class="sourceLineNo">617</span> */<a name="line.617"></a>
-<span class="sourceLineNo">618</span> public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.618"></a>
-<span class="sourceLineNo">619</span> throws Exception {<a name="line.619"></a>
-<span class="sourceLineNo">620</span> if ( hosts != null && hosts.length != 0) {<a name="line.620"></a>
-<span class="sourceLineNo">621</span> return startMiniDFSCluster(hosts.length, hosts);<a name="line.621"></a>
-<span class="sourceLineNo">622</span> } else {<a name="line.622"></a>
-<span class="sourceLineNo">623</span> return startMiniDFSCluster(1, null);<a name="line.623"></a>
-<span class="sourceLineNo">624</span> }<a name="line.624"></a>
-<span class="sourceLineNo">625</span> }<a name="line.625"></a>
-<span class="sourceLineNo">626</span><a name="line.626"></a>
-<span class="sourceLineNo">627</span> /**<a name="line.627"></a>
-<span class="sourceLineNo">628</span> * Start a minidfscluster.<a name="line.628"></a>
-<span class="sourceLineNo">629</span> * Can only create one.<a name="line.629"></a>
-<span class="sourceLineNo">630</span> * @param servers How many DNs to start.<a name="line.630"></a>
-<span class="sourceLineNo">631</span> * @param hosts hostnames DNs to run on.<a name="line.631"></a>
-<span class="sourceLineNo">632</span> * @throws Exception<a name="line.632"></a>
-<span class="sourceLineNo">633</span> * @see #shutdownMiniDFSCluster()<a name="line.633"></a>
-<span class="sourceLineNo">634</span> * @return The mini dfs cluster created.<a name="line.634"></a>
-<span class="sourceLineNo">635</span> */<a name="line.635"></a>
-<span class="sourceLineNo">636</span> public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.636"></a>
-<span class="sourceLineNo">637</span> throws Exception {<a name="line.637"></a>
-<span class="sourceLineNo">638</span> return startMiniDFSCluster(servers, null, hosts);<a name="line.638"></a>
-<span class="sourceLineNo">639</span> }<a name="line.639"></a>
-<span class="sourceLineNo">640</span><a name="line.640"></a>
-<span class="sourceLineNo">641</span> private void setFs() throws IOException {<a name="line.641"></a>
-<span class="sourceLineNo">642</span> if(this.dfsCluster == null){<a name="line.642"></a>
-<span class="sourceLineNo">643</span> LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.643"></a>
-<span class="sourceLineNo">644</span> return;<a name="line.644"></a>
-<span class="sourceLineNo">645</span> }<a name="line.645"></a>
-<span class="sourceLineNo">646</span> FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.646"></a>
-<span class="sourceLineNo">647</span> FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.647"></a>
-<span class="sourceLineNo">648</span><a name="line.648"></a>
-<span class="sourceLineNo">649</span> // re-enable this check with dfs<a name="line.649"></a>
-<span class="sourceLineNo">650</span> conf.unset(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE);<a name="line.650"></a>
-<span class="sourceLineNo">651</span> }<a name="line.651"></a>
-<span class="sourceLineNo">652</span><a name="line.652"></a>
-<span class="sourceLineNo">653</span> public MiniDFSCluster startMiniDFSCluster(int servers, final String racks[], String hosts[])<a name="line.653"></a>
-<span class="sourceLineNo">654</span> throws Exception {<a name="line.654"></a>
-<span class="sourceLineNo">655</span> createDirsAndSetProperties();<a name="line.655"></a>
-<span class="sourceLineNo">656</span> EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);<a name="line.656"></a>
-<span class="sourceLineNo">657</span><a name="line.657"></a>
-<span class="sourceLineNo">658</span> // Error level to skip some warnings specific to the minicluster. See HBASE-4709<a name="line.658"></a>
-<span class="sourceLineNo">659</span> org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).<a name="line.659"></a>
-<span class="sourceLineNo">660</span> setLevel(org.apache.log4j.Level.ERROR);<a name="line.660"></a>
-<span class="sourceLineNo">661</span> org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.impl.MetricsSystemImpl.class).<a name="line.661"></a>
-<span class="sourceLineNo">662</span> setLevel(org.apache.log4j.Level.ERROR);<a name="line.662"></a>
-<span class="sourceLineNo">663</span><a name="line.663"></a>
-<span class="sourceLineNo">664</span> TraceUtil.initTracer(conf);<a name="line.664"></a>
-<span class="sourceLineNo">665</span><a name="line.665"></a>
-<span class="sourceLineNo">666</span> this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,<a name="line.666"></a>
-<span class="sourceLineNo">667</span> true, null, racks, hosts, null);<a name="line.667"></a>
-<span class="sourceLineNo">668</span><a name="line.668"></a>
-<span class="sourceLineNo">669</span> // Set this just-started cluster as our filesystem.<a name="line.669"></a>
-<span class="sourceLineNo">670</span> setFs();<a name="line.670"></a>
-<span class="sourceLineNo">671</span><a name="line.671"></a>
-<span class="sourceLineNo">672</span> // Wait for the cluster to be totally up<a name="line.672"></a>
-<span class="sourceLineNo">673</span> this.dfsCluster.waitClusterUp();<a name="line.673"></a>
-<span class="sourceLineNo">674</span><a name="line.674"></a>
-<span class="sourceLineNo">675</span> //reset the test directory for test file system<a name="line.675"></a>
-<span class="sourceLineNo">676</span> dataTestDirOnTestFS = null;<a name="line.676"></a>
-<span class="sourceLineNo">677</span> String dataTestDir = getDataTestDir().toString();<a name="line.677"></a>
-<span class="sourceLineNo">678</span> conf.set(HConstants.HBASE_DIR, dataTestDir);<a name="line.678"></a>
-<span class="sourceLineNo">679</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.679"></a>
-<span class="sourceLineNo">680</span><a name="line.680"></a>
-<span class="sourceLineNo">681</span> return this.dfsCluster;<a name="line.681"></a>
-<span class="sourceLineNo">682</span> }<a name="line.682"></a>
-<span class="sourceLineNo">683</span><a name="line.683"></a>
-<span class="sourceLineNo">684</span> public MiniDFSCluster startMiniDFSClusterForTestWAL(int namenodePort) throws IOException {<a name="line.684"></a>
-<span class="sourceLineNo">685</span> createDirsAndSetProperties();<a name="line.685"></a>
-<span class="sourceLineNo">686</span> dfsCluster = new MiniDFSCluster(namenodePort, conf, 5, false, true, true, null,<a name="line.686"></a>
-<span class="sourceLineNo">687</span> null, null, null);<a name="line.687"></a>
-<span class="sourceLineNo">688</span> return dfsCluster;<a name="line.688"></a>
-<span class="sourceLineNo">689</span> }<a name="line.689"></a>
-<span class="sourceLineNo">690</span><a name="line.690"></a>
-<span class="sourceLineNo">691</span> /** This is used before starting HDFS and map-reduce mini-clusters */<a name="line.691"></a>
-<span class="sourceLineNo">692</span> private void createDirsAndSetProperties() throws IOException {<a name="line.692"></a>
-<span class="sourceLineNo">693</span> setupClusterTestDir();<a name="line.693"></a>
-<span class="sourceLineNo">694</span> conf.set(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.694"></a>
-<span class="sourceLineNo">695</span> System.setProperty(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.695"></a>
-<span class="sourceLineNo">696</span> createDirAndSetProperty("cache_data", "test.cache.data");<a name="line.696"></a>
-<span class="sourceLineNo">697</span> createDirAndSetProperty("hadoop_tmp", "hadoop.tmp.dir");<a name="line.697"></a>
-<span class="sourceLineNo">698</span> hadoopLogDir = createDirAndSetProperty("hadoop_logs", "hadoop.log.dir");<a name="line.698"></a>
-<span class="sourceLineNo">699</span> createDirAndSetProperty("mapred_local", "mapreduce.cluster.local.dir");<a name="line.699"></a>
-<span class="sourceLineNo">700</span> createDirAndSetProperty("mapred_temp", "mapreduce.cluster.temp.dir");<a name="line.700"></a>
-<span class="sourceLineNo">701</span> enableShortCircuit();<a name="line.701"></a>
-<span class="sourceLineNo">702</span><a name="line.702"></a>
-<span class="sourceLineNo">703</span> Path root = getDataTestDirOnTestFS("hadoop");<a name="line.703"></a>
-<span class="sourceLineNo">704</span> conf.set(MapreduceTestingShim.getMROutputDirProp(),<a name="line.704"></a>
-<span class="sourceLineNo">705</span> new Path(root, "mapred-output-dir").toString());<a name="line.705"></a>
-<span class="sourceLineNo">706</span> conf.set("mapreduce.jobtracker.system.dir", new Path(root, "mapred-system-dir").toString());<a name="line.706"></a>
-<span class="sourceLineNo">707</span> conf.set("mapreduce.jobtracker.staging.root.dir",<a name="line.707"></a>
-<span class="sourceLineNo">708</span> new Path(root, "mapreduce-jobtracker-staging-root-dir").toString());<a name="line.708"></a>
-<span class="sourceLineNo">709</span> conf.set("mapreduce.job.working.dir", new Path(root, "mapred-working-dir").toString());<a name="line.709"></a>
-<span class="sourceLineNo">710</span> conf.set("yarn.app.mapreduce.am.staging-dir",<a name="line.710"></a>
-<span class="sourceLineNo">711</span> new Path(root, "mapreduce-am-staging-root-dir").toString());<a name="line.711"></a>
-<span class="sourceLineNo">712</span> }<a name="line.712"></a>
+<span class="sourceLineNo">302</span> /**<a name="line.302"></a>
+<span class="sourceLineNo">303</span> * <p>Create an HBaseTestingUtility using a default configuration.<a name="line.303"></a>
+<span class="sourceLineNo">304</span> *<a name="line.304"></a>
+<span class="sourceLineNo">305</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.305"></a>
+<span class="sourceLineNo">306</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.306"></a>
+<span class="sourceLineNo">307</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.307"></a>
+<span class="sourceLineNo">308</span> *<a name="line.308"></a>
+<span class="sourceLineNo">309</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.309"></a>
+<span class="sourceLineNo">310</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.310"></a>
+<span class="sourceLineNo">311</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.311"></a>
+<span class="sourceLineNo">312</span> * at which point they will switch to using mini DFS for storage.<a name="line.312"></a>
+<span class="sourceLineNo">313</span> */<a name="line.313"></a>
+<span class="sourceLineNo">314</span> public HBaseTestingUtility() {<a name="line.314"></a>
+<span class="sourceLineNo">315</span> this(HBaseConfiguration.create());<a name="line.315"></a>
+<span class="sourceLineNo">316</span> }<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> * <p>Create an HBaseTestingUtility using a given configuration.<a name="line.319"></a>
+<span class="sourceLineNo">320</span> *<a name="line.320"></a>
+<span class="sourceLineNo">321</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.321"></a>
+<span class="sourceLineNo">322</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.322"></a>
+<span class="sourceLineNo">323</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.323"></a>
+<span class="sourceLineNo">324</span> *<a name="line.324"></a>
+<span class="sourceLineNo">325</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.325"></a>
+<span class="sourceLineNo">326</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.326"></a>
+<span class="sourceLineNo">327</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.327"></a>
+<span class="sourceLineNo">328</span> * at which point they will switch to using mini DFS for storage.<a name="line.328"></a>
+<span class="sourceLineNo">329</span> *<a name="line.329"></a>
+<span class="sourceLineNo">330</span> * @param conf The configuration to use for further operations<a name="line.330"></a>
+<span class="sourceLineNo">331</span> */<a name="line.331"></a>
+<span class="sourceLineNo">332</span> public HBaseTestingUtility(@Nullable Configuration conf) {<a name="line.332"></a>
+<span class="sourceLineNo">333</span> super(conf);<a name="line.333"></a>
+<span class="sourceLineNo">334</span><a name="line.334"></a>
+<span class="sourceLineNo">335</span> // a hbase checksum verification failure will cause unit tests to fail<a name="line.335"></a>
+<span class="sourceLineNo">336</span> ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.336"></a>
+<span class="sourceLineNo">337</span><a name="line.337"></a>
+<span class="sourceLineNo">338</span> // Save this for when setting default file:// breaks things<a name="line.338"></a>
+<span class="sourceLineNo">339</span> if (this.conf.get("fs.defaultFS") != null) {<a name="line.339"></a>
+<span class="sourceLineNo">340</span> this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.340"></a>
+<span class="sourceLineNo">341</span> }<a name="line.341"></a>
+<span class="sourceLineNo">342</span> if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.342"></a>
+<span class="sourceLineNo">343</span> this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.343"></a>
+<span class="sourceLineNo">344</span> }<a name="line.344"></a>
+<span class="sourceLineNo">345</span> // Every cluster is a local cluster until we start DFS<a name="line.345"></a>
+<span class="sourceLineNo">346</span> // Note that conf could be null, but this.conf will not be<a name="line.346"></a>
+<span class="sourceLineNo">347</span> String dataTestDir = getDataTestDir().toString();<a name="line.347"></a>
+<span class="sourceLineNo">348</span> this.conf.set("fs.defaultFS","file:///");<a name="line.348"></a>
+<span class="sourceLineNo">349</span> this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.349"></a>
+<span class="sourceLineNo">350</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.350"></a>
+<span class="sourceLineNo">351</span> this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.351"></a>
+<span class="sourceLineNo">352</span> // If the value for random ports isn't set set it to true, thus making<a name="line.352"></a>
+<span class="sourceLineNo">353</span> // tests opt-out for random port assignment<a name="line.353"></a>
+<span class="sourceLineNo">354</span> this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.354"></a>
+<span class="sourceLineNo">355</span> this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.355"></a>
+<span class="sourceLineNo">356</span> }<a name="line.356"></a>
+<span class="sourceLineNo">357</span><a name="line.357"></a>
+<span class="sourceLineNo">358</span> /**<a name="line.358"></a>
+<span class="sourceLineNo">359</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.359"></a>
+<span class="sourceLineNo">360</span> * @return a normal HBaseTestingUtility<a name="line.360"></a>
+<span class="sourceLineNo">361</span> */<a name="line.361"></a>
+<span class="sourceLineNo">362</span> @Deprecated<a name="line.362"></a>
+<span class="sourceLineNo">363</span> public static HBaseTestingUtility createLocalHTU() {<a name="line.363"></a>
+<span class="sourceLineNo">364</span> return new HBaseTestingUtility();<a name="line.364"></a>
+<span class="sourceLineNo">365</span> }<a name="line.365"></a>
+<span class="sourceLineNo">366</span><a name="line.366"></a>
+<span class="sourceLineNo">367</span> /**<a name="line.367"></a>
+<span class="sourceLineNo">368</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.368"></a>
+<span class="sourceLineNo">369</span> * @return a normal HBaseTestingUtility<a name="line.369"></a>
+<span class="sourceLineNo">370</span> */<a name="line.370"></a>
+<span class="sourceLineNo">371</span> @Deprecated<a name="line.371"></a>
+<span class="sourceLineNo">372</span> public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.372"></a>
+<span class="sourceLineNo">373</span> return new HBaseTestingUtility(c);<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> /**<a name="line.376"></a>
+<span class="sourceLineNo">377</span> * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.377"></a>
+<span class="sourceLineNo">378</span> */<a name="line.378"></a>
+<span class="sourceLineNo">379</span> public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.379"></a>
+<span class="sourceLineNo">380</span> closeRegionAndWAL((HRegion)r);<a name="line.380"></a>
+<span class="sourceLineNo">381</span> }<a name="line.381"></a>
+<span class="sourceLineNo">382</span><a name="line.382"></a>
+<span class="sourceLineNo">383</span> /**<a name="line.383"></a>
+<span class="sourceLineNo">384</span> * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.384"></a>
+<span class="sourceLineNo">385</span> */<a name="line.385"></a>
+<span class="sourceLineNo">386</span> public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.386"></a>
+<span class="sourceLineNo">387</span> if (r == null) return;<a name="line.387"></a>
+<span class="sourceLineNo">388</span> r.close();<a name="line.388"></a>
+<span class="sourceLineNo">389</span> if (r.getWAL() == null) return;<a name="line.389"></a>
+<span class="sourceLineNo">390</span> r.getWAL().close();<a name="line.390"></a>
+<span class="sourceLineNo">391</span> }<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> * Returns this classes's instance of {@link Configuration}. Be careful how<a name="line.394"></a>
+<span class="sourceLineNo">395</span> * you use the returned Configuration since {@link Connection} instances<a name="line.395"></a>
+<span class="sourceLineNo">396</span> * can be shared. The Map of Connections is keyed by the Configuration. If<a name="line.396"></a>
+<span class="sourceLineNo">397</span> * say, a Connection was being used against a cluster that had been shutdown,<a name="line.397"></a>
+<span class="sourceLineNo">398</span> * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.398"></a>
+<span class="sourceLineNo">399</span> * be wholesome. Rather than use the return direct, its usually best to<a name="line.399"></a>
+<span class="sourceLineNo">400</span> * make a copy and use that. Do<a name="line.400"></a>
+<span class="sourceLineNo">401</span> * <code>Configuration c = new Configuration(INSTANCE.getConfiguration());</code><a name="line.401"></a>
+<span class="sourceLineNo">402</span> * @return Instance of Configuration.<a name="line.402"></a>
+<span class="sourceLineNo">403</span> */<a name="line.403"></a>
+<span class="sourceLineNo">404</span> @Override<a name="line.404"></a>
+<span class="sourceLineNo">405</span> public Configuration getConfiguration() {<a name="line.405"></a>
+<span class="sourceLineNo">406</span> return super.getConfiguration();<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> public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.409"></a>
+<span class="sourceLineNo">410</span> this.hbaseCluster = hbaseCluster;<a name="line.410"></a>
+<span class="sourceLineNo">411</span> }<a name="line.411"></a>
+<span class="sourceLineNo">412</span><a name="line.412"></a>
+<span class="sourceLineNo">413</span> /**<a name="line.413"></a>
+<span class="sourceLineNo">414</span> * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.414"></a>
+<span class="sourceLineNo">415</span> * Give it a random name so can have many concurrent tests running if<a name="line.415"></a>
+<span class="sourceLineNo">416</span> * we need to. It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.416"></a>
+<span class="sourceLineNo">417</span> * System property, as it's what minidfscluster bases<a name="line.417"></a>
+<span class="sourceLineNo">418</span> * it data dir on. Moding a System property is not the way to do concurrent<a name="line.418"></a>
+<span class="sourceLineNo">419</span> * instances -- another instance could grab the temporary<a name="line.419"></a>
+<span class="sourceLineNo">420</span> * value unintentionally -- but not anything can do about it at moment;<a name="line.420"></a>
+<span class="sourceLineNo">421</span> * single instance only is how the minidfscluster works.<a name="line.421"></a>
+<span class="sourceLineNo">422</span> *<a name="line.422"></a>
+<span class="sourceLineNo">423</span> * We also create the underlying directory for<a name="line.423"></a>
+<span class="sourceLineNo">424</span> * hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.424"></a>
+<span class="sourceLineNo">425</span> * in the conf, and as a system property for hadoop.tmp.dir<a name="line.425"></a>
+<span class="sourceLineNo">426</span> *<a name="line.426"></a>
+<span class="sourceLineNo">427</span> * @return The calculated data test build directory, if newly-created.<a name="line.427"></a>
+<span class="sourceLineNo">428</span> */<a name="line.428"></a>
+<span class="sourceLineNo">429</span> @Override<a name="line.429"></a>
+<span class="sourceLineNo">430</span> protected Path setupDataTestDir() {<a name="line.430"></a>
+<span class="sourceLineNo">431</span> Path testPath = super.setupDataTestDir();<a name="line.431"></a>
+<span class="sourceLineNo">432</span> if (null == testPath) {<a name="line.432"></a>
+<span class="sourceLineNo">433</span> return null;<a name="line.433"></a>
+<span class="sourceLineNo">434</span> }<a name="line.434"></a>
+<span class="sourceLineNo">435</span><a name="line.435"></a>
+<span class="sourceLineNo">436</span> createSubDirAndSystemProperty(<a name="line.436"></a>
+<span class="sourceLineNo">437</span> "hadoop.log.dir",<a name="line.437"></a>
+<span class="sourceLineNo">438</span> testPath, "hadoop-log-dir");<a name="line.438"></a>
+<span class="sourceLineNo">439</span><a name="line.439"></a>
+<span class="sourceLineNo">440</span> // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.440"></a>
+<span class="sourceLineNo">441</span> // we want our own value to ensure uniqueness on the same machine<a name="line.441"></a>
+<span class="sourceLineNo">442</span> createSubDirAndSystemProperty(<a name="line.442"></a>
+<span class="sourceLineNo">443</span> "hadoop.tmp.dir",<a name="line.443"></a>
+<span class="sourceLineNo">444</span> testPath, "hadoop-tmp-dir");<a name="line.444"></a>
+<span class="sourceLineNo">445</span><a name="line.445"></a>
+<span class="sourceLineNo">446</span> // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.446"></a>
+<span class="sourceLineNo">447</span> createSubDir(<a name="line.447"></a>
+<span class="sourceLineNo">448</span> "mapreduce.cluster.local.dir",<a name="line.448"></a>
+<span class="sourceLineNo">449</span> testPath, "mapred-local-dir");<a name="line.449"></a>
+<span class="sourceLineNo">450</span><a name="line.450"></a>
+<span class="sourceLineNo">451</span> return testPath;<a name="line.451"></a>
+<span class="sourceLineNo">452</span> }<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span> private void createSubDirAndSystemProperty(<a name="line.454"></a>
+<span class="sourceLineNo">455</span> String propertyName, Path parent, String subDirName){<a name="line.455"></a>
+<span class="sourceLineNo">456</span><a name="line.456"></a>
+<span class="sourceLineNo">457</span> String sysValue = System.getProperty(propertyName);<a name="line.457"></a>
+<span class="sourceLineNo">458</span><a name="line.458"></a>
+<span class="sourceLineNo">459</span> if (sysValue != null) {<a name="line.459"></a>
+<span class="sourceLineNo">460</span> // There is already a value set. So we do nothing but hope<a name="line.460"></a>
+<span class="sourceLineNo">461</span> // that there will be no conflicts<a name="line.461"></a>
+<span class="sourceLineNo">462</span> LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.462"></a>
+<span class="sourceLineNo">463</span> sysValue + " so I do NOT create it in " + parent);<a name="line.463"></a>
+<span class="sourceLineNo">464</span> String confValue = conf.get(propertyName);<a name="line.464"></a>
+<span class="sourceLineNo">465</span> if (confValue != null && !confValue.endsWith(sysValue)){<a name="line.465"></a>
+<span class="sourceLineNo">466</span> LOG.warn(<a name="line.466"></a>
+<span class="sourceLineNo">467</span> propertyName + " property value differs in configuration and system: "+<a name="line.467"></a>
+<span class="sourceLineNo">468</span> "Configuration="+confValue+" while System="+sysValue+<a name="line.468"></a>
+<span class="sourceLineNo">469</span> " Erasing configuration value by system value."<a name="line.469"></a>
+<span class="sourceLineNo">470</span> );<a name="line.470"></a>
+<span class="sourceLineNo">471</span> }<a name="line.471"></a>
+<span class="sourceLineNo">472</span> conf.set(propertyName, sysValue);<a name="line.472"></a>
+<span class="sourceLineNo">473</span> } else {<a name="line.473"></a>
+<span class="sourceLineNo">474</span> // Ok, it's not set, so we create it as a subdirectory<a name="line.474"></a>
+<span class="sourceLineNo">475</span> createSubDir(propertyName, parent, subDirName);<a name="line.475"></a>
+<span class="sourceLineNo">476</span> System.setProperty(propertyName, conf.get(propertyName));<a name="line.476"></a>
+<span class="sourceLineNo">477</span> }<a name="line.477"></a>
+<span class="sourceLineNo">478</span> }<a name="line.478"></a>
+<span class="sourceLineNo">479</span><a name="line.479"></a>
+<span class="sourceLineNo">480</span> /**<a name="line.480"></a>
+<span class="sourceLineNo">481</span> * @return Where to write test data on the test filesystem; Returns working directory<a name="line.481"></a>
+<span class="sourceLineNo">482</span> * for the test filesystem by default<a name="line.482"></a>
+<span class="sourceLineNo">483</span> * @see #setupDataTestDirOnTestFS()<a name="line.483"></a>
+<span class="sourceLineNo">484</span> * @see #getTestFileSystem()<a name="line.484"></a>
+<span class="sourceLineNo">485</span> */<a name="line.485"></a>
+<span class="sourceLineNo">486</span> private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.486"></a>
+<span class="sourceLineNo">487</span> FileSystem fs = getTestFileSystem();<a name="line.487"></a>
+<span class="sourceLineNo">488</span> return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.488"></a>
+<span class="sourceLineNo">489</span> }<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> * @return META table descriptor<a name="line.492"></a>
+<span class="sourceLineNo">493</span> * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.493"></a>
+<span class="sourceLineNo">494</span> * use {@link #getMetaTableDescriptorBuilder()}<a name="line.494"></a>
+<span class="sourceLineNo">495</span> */<a name="line.495"></a>
+<span class="sourceLineNo">496</span> @Deprecated<a name="line.496"></a>
+<span class="sourceLineNo">497</span> public HTableDescriptor getMetaTableDescriptor() {<a name="line.497"></a>
+<span class="sourceLineNo">498</span> return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.498"></a>
+<span class="sourceLineNo">499</span> }<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> * @return META table descriptor<a name="line.502"></a>
+<span class="sourceLineNo">503</span> */<a name="line.503"></a>
+<span class="sourceLineNo">504</span> public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.504"></a>
+<span class="sourceLineNo">505</span> try {<a name="line.505"></a>
+<span class="sourceLineNo">506</span> return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.506"></a>
+<span class="sourceLineNo">507</span> } catch (IOException e) {<a name="line.507"></a>
+<span class="sourceLineNo">508</span> throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.508"></a>
+<span class="sourceLineNo">509</span> }<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> /**<a name="line.512"></a>
+<span class="sourceLineNo">513</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.513"></a>
+<span class="sourceLineNo">514</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.514"></a>
+<span class="sourceLineNo">515</span> * if the test relies on it.<a name="line.515"></a>
+<span class="sourceLineNo">516</span> * @return a unique path in the test filesystem<a name="line.516"></a>
+<span class="sourceLineNo">517</span> */<a name="line.517"></a>
+<span class="sourceLineNo">518</span> public Path getDataTestDirOnTestFS() throws IOException {<a name="line.518"></a>
+<span class="sourceLineNo">519</span> if (dataTestDirOnTestFS == null) {<a name="line.519"></a>
+<span class="sourceLineNo">520</span> setupDataTestDirOnTestFS();<a name="line.520"></a>
+<span class="sourceLineNo">521</span> }<a name="line.521"></a>
+<span class="sourceLineNo">522</span><a name="line.522"></a>
+<span class="sourceLineNo">523</span> return dataTestDirOnTestFS;<a name="line.523"></a>
+<span class="sourceLineNo">524</span> }<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> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.527"></a>
+<span class="sourceLineNo">528</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.528"></a>
+<span class="sourceLineNo">529</span> * if the test relies on it.<a name="line.529"></a>
+<span class="sourceLineNo">530</span> * @return a unique path in the test filesystem<a name="line.530"></a>
+<span class="sourceLineNo">531</span> * @param subdirName name of the subdir to create under the base test dir<a name="line.531"></a>
+<span class="sourceLineNo">532</span> */<a name="line.532"></a>
+<span class="sourceLineNo">533</span> public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.533"></a>
+<span class="sourceLineNo">534</span> return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.534"></a>
+<span class="sourceLineNo">535</span> }<a name="line.535"></a>
+<span class="sourceLineNo">536</span><a name="li
<TRUNCATED>
[06/10] hbase-site git commit: Published site at
e8df847d4ed16b8432221d28bcfc00e1621df586.
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html
index a3fdb10..60b2272 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html
@@ -105,7 +105,7 @@ var activeTableTab = "activeTableTab";
</dl>
<hr>
<br>
-<pre>static interface <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3782">HBaseTestingUtility.PortAllocator.AvailablePortChecker</a></pre>
+<pre>static interface <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3781">HBaseTestingUtility.PortAllocator.AvailablePortChecker</a></pre>
</li>
</ul>
</div>
@@ -149,7 +149,7 @@ var activeTableTab = "activeTableTab";
<ul class="blockListLast">
<li class="blockList">
<h4>available</h4>
-<pre>boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html#line.3783">available</a>(int port)</pre>
+<pre>boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html#line.3782">available</a>(int port)</pre>
</li>
</ul>
</li>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html
index 2b3ce65..e22f906 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html
@@ -113,7 +113,7 @@ var activeTableTab = "activeTableTab";
</dl>
<hr>
<br>
-<pre>static class <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.3721">HBaseTestingUtility.PortAllocator</a>
+<pre>static class <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.3720">HBaseTestingUtility.PortAllocator</a>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
</li>
</ul>
@@ -250,7 +250,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>MIN_RANDOM_PORT</h4>
-<pre>private static final int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3722">MIN_RANDOM_PORT</a></pre>
+<pre>private static final int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3721">MIN_RANDOM_PORT</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.PortAllocator.MIN_RANDOM_PORT">Constant Field Values</a></dd>
@@ -263,7 +263,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>MAX_RANDOM_PORT</h4>
-<pre>private static final int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3723">MAX_RANDOM_PORT</a></pre>
+<pre>private static final int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3722">MAX_RANDOM_PORT</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.PortAllocator.MAX_RANDOM_PORT">Constant Field Values</a></dd>
@@ -276,7 +276,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>takenRandomPorts</h4>
-<pre>private final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3726">takenRandomPorts</a></pre>
+<pre>private final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3725">takenRandomPorts</a></pre>
<div class="block">A set of ports that have been claimed using <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#randomFreePort--"><code>randomFreePort()</code></a>.</div>
</li>
</ul>
@@ -286,7 +286,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>random</h4>
-<pre>private final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3728">random</a></pre>
+<pre>private final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3727">random</a></pre>
</li>
</ul>
<a name="portChecker">
@@ -295,7 +295,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockListLast">
<li class="blockList">
<h4>portChecker</h4>
-<pre>private final <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html" title="interface in org.apache.hadoop.hbase">HBaseTestingUtility.PortAllocator.AvailablePortChecker</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3729">portChecker</a></pre>
+<pre>private final <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html" title="interface in org.apache.hadoop.hbase">HBaseTestingUtility.PortAllocator.AvailablePortChecker</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3728">portChecker</a></pre>
</li>
</ul>
</li>
@@ -312,7 +312,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>PortAllocator</h4>
-<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3731">PortAllocator</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a> random)</pre>
+<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3730">PortAllocator</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a> random)</pre>
</li>
</ul>
<a name="PortAllocator-java.util.Random-org.apache.hadoop.hbase.HBaseTestingUtility.PortAllocator.AvailablePortChecker-">
@@ -321,7 +321,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockListLast">
<li class="blockList">
<h4>PortAllocator</h4>
-<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3747">PortAllocator</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a> random,
+<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3746">PortAllocator</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a> random,
<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html" title="interface in org.apache.hadoop.hbase">HBaseTestingUtility.PortAllocator.AvailablePortChecker</a> portChecker)</pre>
</li>
</ul>
@@ -339,7 +339,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>randomFreePort</h4>
-<pre>public int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3756">randomFreePort</a>()</pre>
+<pre>public int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3755">randomFreePort</a>()</pre>
<div class="block">Returns a random free port and marks that port as taken. Not thread-safe. Expected to be
called from single-threaded test setup code/</div>
</li>
@@ -350,7 +350,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockListLast">
<li class="blockList">
<h4>randomPort</h4>
-<pre>private int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3777">randomPort</a>()</pre>
+<pre>private int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3776">randomPort</a>()</pre>
<div class="block">Returns a random port. These ports cannot be registered with IANA and are
intended for dynamic allocation (see http://bit.ly/dynports).</div>
</li>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html
index 8076874..f92edd1 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html
@@ -113,7 +113,7 @@ var activeTableTab = "activeTableTab";
</dl>
<hr>
<br>
-<pre>public static class <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2123">HBaseTestingUtility.SeenRowTracker</a>
+<pre>public static class <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2122">HBaseTestingUtility.SeenRowTracker</a>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">A tracker for tracking and validating table rows
generated with <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#loadTable-org.apache.hadoop.hbase.client.Table-byte:A-"><code>HBaseTestingUtility.loadTable(Table, byte[])</code></a></div>
@@ -231,7 +231,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>dim</h4>
-<pre>int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2124">dim</a></pre>
+<pre>int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2123">dim</a></pre>
</li>
</ul>
<a name="seenRows">
@@ -240,7 +240,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>seenRows</h4>
-<pre>int[][][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2125">seenRows</a></pre>
+<pre>int[][][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2124">seenRows</a></pre>
</li>
</ul>
<a name="startRow">
@@ -249,7 +249,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>startRow</h4>
-<pre>byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2126">startRow</a></pre>
+<pre>byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2125">startRow</a></pre>
</li>
</ul>
<a name="stopRow">
@@ -258,7 +258,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockListLast">
<li class="blockList">
<h4>stopRow</h4>
-<pre>byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2127">stopRow</a></pre>
+<pre>byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2126">stopRow</a></pre>
</li>
</ul>
</li>
@@ -275,7 +275,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockListLast">
<li class="blockList">
<h4>SeenRowTracker</h4>
-<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2129">SeenRowTracker</a>(byte[] startRow,
+<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2128">SeenRowTracker</a>(byte[] startRow,
byte[] stopRow)</pre>
</li>
</ul>
@@ -293,7 +293,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
-<pre>void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2134">reset</a>()</pre>
+<pre>void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2133">reset</a>()</pre>
</li>
</ul>
<a name="i-byte-">
@@ -302,7 +302,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>i</h4>
-<pre>int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2140">i</a>(byte b)</pre>
+<pre>int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2139">i</a>(byte b)</pre>
</li>
</ul>
<a name="addRow-byte:A-">
@@ -311,7 +311,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockList">
<li class="blockList">
<h4>addRow</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2144">addRow</a>(byte[] row)</pre>
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2143">addRow</a>(byte[] row)</pre>
</li>
</ul>
<a name="validate--">
@@ -320,7 +320,7 @@ extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html
<ul class="blockListLast">
<li class="blockList">
<h4>validate</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2151">validate</a>()</pre>
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2150">validate</a>()</pre>
<div class="block">Validate that all the rows between startRow and stopRow are seen exactly once, and
all other rows none</div>
</li>
[03/10] hbase-site git commit: Published site at
e8df847d4ed16b8432221d28bcfc00e1621df586.
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html
index 65a28b9..0c894de 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html
@@ -179,4146 +179,4145 @@
<span class="sourceLineNo">171</span> * avoiding port contention if another local HBase instance is already running).<a name="line.171"></a>
<span class="sourceLineNo">172</span> * <p>To preserve test data directories, pass the system property "hbase.testing.preserve.testdir"<a name="line.172"></a>
<span class="sourceLineNo">173</span> * setting it to true.<a name="line.173"></a>
-<span class="sourceLineNo">174</span> * For triggering test.<a name="line.174"></a>
-<span class="sourceLineNo">175</span> */<a name="line.175"></a>
-<span class="sourceLineNo">176</span>@InterfaceAudience.Public<a name="line.176"></a>
-<span class="sourceLineNo">177</span>@SuppressWarnings("deprecation")<a name="line.177"></a>
-<span class="sourceLineNo">178</span>public class HBaseTestingUtility extends HBaseZKTestingUtility {<a name="line.178"></a>
-<span class="sourceLineNo">179</span><a name="line.179"></a>
-<span class="sourceLineNo">180</span> /**<a name="line.180"></a>
-<span class="sourceLineNo">181</span> * System property key to get test directory value. Name is as it is because mini dfs has<a name="line.181"></a>
-<span class="sourceLineNo">182</span> * hard-codings to put test data here. It should NOT be used directly in HBase, as it's a property<a name="line.182"></a>
-<span class="sourceLineNo">183</span> * used in mini dfs.<a name="line.183"></a>
-<span class="sourceLineNo">184</span> * @deprecated can be used only with mini dfs<a name="line.184"></a>
-<span class="sourceLineNo">185</span> */<a name="line.185"></a>
-<span class="sourceLineNo">186</span> @Deprecated<a name="line.186"></a>
-<span class="sourceLineNo">187</span> private static final String TEST_DIRECTORY_KEY = "test.build.data";<a name="line.187"></a>
-<span class="sourceLineNo">188</span><a name="line.188"></a>
-<span class="sourceLineNo">189</span> public static final String REGIONS_PER_SERVER_KEY = "hbase.test.regions-per-server";<a name="line.189"></a>
-<span class="sourceLineNo">190</span> /**<a name="line.190"></a>
-<span class="sourceLineNo">191</span> * The default number of regions per regionserver when creating a pre-split<a name="line.191"></a>
-<span class="sourceLineNo">192</span> * table.<a name="line.192"></a>
-<span class="sourceLineNo">193</span> */<a name="line.193"></a>
-<span class="sourceLineNo">194</span> public static final int DEFAULT_REGIONS_PER_SERVER = 3;<a name="line.194"></a>
+<span class="sourceLineNo">174</span> */<a name="line.174"></a>
+<span class="sourceLineNo">175</span>@InterfaceAudience.Public<a name="line.175"></a>
+<span class="sourceLineNo">176</span>@SuppressWarnings("deprecation")<a name="line.176"></a>
+<span class="sourceLineNo">177</span>public class HBaseTestingUtility extends HBaseZKTestingUtility {<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span> /**<a name="line.179"></a>
+<span class="sourceLineNo">180</span> * System property key to get test directory value. Name is as it is because mini dfs has<a name="line.180"></a>
+<span class="sourceLineNo">181</span> * hard-codings to put test data here. It should NOT be used directly in HBase, as it's a property<a name="line.181"></a>
+<span class="sourceLineNo">182</span> * used in mini dfs.<a name="line.182"></a>
+<span class="sourceLineNo">183</span> * @deprecated can be used only with mini dfs<a name="line.183"></a>
+<span class="sourceLineNo">184</span> */<a name="line.184"></a>
+<span class="sourceLineNo">185</span> @Deprecated<a name="line.185"></a>
+<span class="sourceLineNo">186</span> private static final String TEST_DIRECTORY_KEY = "test.build.data";<a name="line.186"></a>
+<span class="sourceLineNo">187</span><a name="line.187"></a>
+<span class="sourceLineNo">188</span> public static final String REGIONS_PER_SERVER_KEY = "hbase.test.regions-per-server";<a name="line.188"></a>
+<span class="sourceLineNo">189</span> /**<a name="line.189"></a>
+<span class="sourceLineNo">190</span> * The default number of regions per regionserver when creating a pre-split<a name="line.190"></a>
+<span class="sourceLineNo">191</span> * table.<a name="line.191"></a>
+<span class="sourceLineNo">192</span> */<a name="line.192"></a>
+<span class="sourceLineNo">193</span> public static final int DEFAULT_REGIONS_PER_SERVER = 3;<a name="line.193"></a>
+<span class="sourceLineNo">194</span><a name="line.194"></a>
<span class="sourceLineNo">195</span><a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span> public static final String PRESPLIT_TEST_TABLE_KEY = "hbase.test.pre-split-table";<a name="line.197"></a>
-<span class="sourceLineNo">198</span> public static final boolean PRESPLIT_TEST_TABLE = true;<a name="line.198"></a>
-<span class="sourceLineNo">199</span><a name="line.199"></a>
-<span class="sourceLineNo">200</span> private MiniDFSCluster dfsCluster = null;<a name="line.200"></a>
-<span class="sourceLineNo">201</span><a name="line.201"></a>
-<span class="sourceLineNo">202</span> private volatile HBaseCluster hbaseCluster = null;<a name="line.202"></a>
-<span class="sourceLineNo">203</span> private MiniMRCluster mrCluster = null;<a name="line.203"></a>
-<span class="sourceLineNo">204</span><a name="line.204"></a>
-<span class="sourceLineNo">205</span> /** If there is a mini cluster running for this testing utility instance. */<a name="line.205"></a>
-<span class="sourceLineNo">206</span> private volatile boolean miniClusterRunning;<a name="line.206"></a>
-<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span> private String hadoopLogDir;<a name="line.208"></a>
-<span class="sourceLineNo">209</span><a name="line.209"></a>
-<span class="sourceLineNo">210</span> /** Directory on test filesystem where we put the data for this instance of<a name="line.210"></a>
-<span class="sourceLineNo">211</span> * HBaseTestingUtility*/<a name="line.211"></a>
-<span class="sourceLineNo">212</span> private Path dataTestDirOnTestFS = null;<a name="line.212"></a>
-<span class="sourceLineNo">213</span><a name="line.213"></a>
-<span class="sourceLineNo">214</span> /**<a name="line.214"></a>
-<span class="sourceLineNo">215</span> * Shared cluster connection.<a name="line.215"></a>
-<span class="sourceLineNo">216</span> */<a name="line.216"></a>
-<span class="sourceLineNo">217</span> private volatile Connection connection;<a name="line.217"></a>
-<span class="sourceLineNo">218</span><a name="line.218"></a>
-<span class="sourceLineNo">219</span> /** Filesystem URI used for map-reduce mini-cluster setup */<a name="line.219"></a>
-<span class="sourceLineNo">220</span> private static String FS_URI;<a name="line.220"></a>
-<span class="sourceLineNo">221</span><a name="line.221"></a>
-<span class="sourceLineNo">222</span> /** This is for unit tests parameterized with a single boolean. */<a name="line.222"></a>
-<span class="sourceLineNo">223</span> public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();<a name="line.223"></a>
-<span class="sourceLineNo">224</span><a name="line.224"></a>
-<span class="sourceLineNo">225</span> /**<a name="line.225"></a>
-<span class="sourceLineNo">226</span> * Checks to see if a specific port is available.<a name="line.226"></a>
-<span class="sourceLineNo">227</span> *<a name="line.227"></a>
-<span class="sourceLineNo">228</span> * @param port the port number to check for availability<a name="line.228"></a>
-<span class="sourceLineNo">229</span> * @return <tt>true</tt> if the port is available, or <tt>false</tt> if not<a name="line.229"></a>
-<span class="sourceLineNo">230</span> */<a name="line.230"></a>
-<span class="sourceLineNo">231</span> public static boolean available(int port) {<a name="line.231"></a>
-<span class="sourceLineNo">232</span> ServerSocket ss = null;<a name="line.232"></a>
-<span class="sourceLineNo">233</span> DatagramSocket ds = null;<a name="line.233"></a>
-<span class="sourceLineNo">234</span> try {<a name="line.234"></a>
-<span class="sourceLineNo">235</span> ss = new ServerSocket(port);<a name="line.235"></a>
-<span class="sourceLineNo">236</span> ss.setReuseAddress(true);<a name="line.236"></a>
-<span class="sourceLineNo">237</span> ds = new DatagramSocket(port);<a name="line.237"></a>
-<span class="sourceLineNo">238</span> ds.setReuseAddress(true);<a name="line.238"></a>
-<span class="sourceLineNo">239</span> return true;<a name="line.239"></a>
-<span class="sourceLineNo">240</span> } catch (IOException e) {<a name="line.240"></a>
-<span class="sourceLineNo">241</span> // Do nothing<a name="line.241"></a>
-<span class="sourceLineNo">242</span> } finally {<a name="line.242"></a>
-<span class="sourceLineNo">243</span> if (ds != null) {<a name="line.243"></a>
-<span class="sourceLineNo">244</span> ds.close();<a name="line.244"></a>
-<span class="sourceLineNo">245</span> }<a name="line.245"></a>
-<span class="sourceLineNo">246</span><a name="line.246"></a>
-<span class="sourceLineNo">247</span> if (ss != null) {<a name="line.247"></a>
-<span class="sourceLineNo">248</span> try {<a name="line.248"></a>
-<span class="sourceLineNo">249</span> ss.close();<a name="line.249"></a>
-<span class="sourceLineNo">250</span> } catch (IOException e) {<a name="line.250"></a>
-<span class="sourceLineNo">251</span> /* should not be thrown */<a name="line.251"></a>
-<span class="sourceLineNo">252</span> }<a name="line.252"></a>
-<span class="sourceLineNo">253</span> }<a name="line.253"></a>
-<span class="sourceLineNo">254</span> }<a name="line.254"></a>
-<span class="sourceLineNo">255</span><a name="line.255"></a>
-<span class="sourceLineNo">256</span> return false;<a name="line.256"></a>
-<span class="sourceLineNo">257</span> }<a name="line.257"></a>
-<span class="sourceLineNo">258</span><a name="line.258"></a>
-<span class="sourceLineNo">259</span> /**<a name="line.259"></a>
-<span class="sourceLineNo">260</span> * Create all combinations of Bloom filters and compression algorithms for<a name="line.260"></a>
-<span class="sourceLineNo">261</span> * testing.<a name="line.261"></a>
-<span class="sourceLineNo">262</span> */<a name="line.262"></a>
-<span class="sourceLineNo">263</span> private static List<Object[]> bloomAndCompressionCombinations() {<a name="line.263"></a>
-<span class="sourceLineNo">264</span> List<Object[]> configurations = new ArrayList<>();<a name="line.264"></a>
-<span class="sourceLineNo">265</span> for (Compression.Algorithm comprAlgo :<a name="line.265"></a>
-<span class="sourceLineNo">266</span> HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {<a name="line.266"></a>
-<span class="sourceLineNo">267</span> for (BloomType bloomType : BloomType.values()) {<a name="line.267"></a>
-<span class="sourceLineNo">268</span> configurations.add(new Object[] { comprAlgo, bloomType });<a name="line.268"></a>
-<span class="sourceLineNo">269</span> }<a name="line.269"></a>
-<span class="sourceLineNo">270</span> }<a name="line.270"></a>
-<span class="sourceLineNo">271</span> return Collections.unmodifiableList(configurations);<a name="line.271"></a>
-<span class="sourceLineNo">272</span> }<a name="line.272"></a>
-<span class="sourceLineNo">273</span><a name="line.273"></a>
-<span class="sourceLineNo">274</span> /**<a name="line.274"></a>
-<span class="sourceLineNo">275</span> * Create combination of memstoreTS and tags<a name="line.275"></a>
-<span class="sourceLineNo">276</span> */<a name="line.276"></a>
-<span class="sourceLineNo">277</span> private static List<Object[]> memStoreTSAndTagsCombination() {<a name="line.277"></a>
-<span class="sourceLineNo">278</span> List<Object[]> configurations = new ArrayList<>();<a name="line.278"></a>
-<span class="sourceLineNo">279</span> configurations.add(new Object[] { false, false });<a name="line.279"></a>
-<span class="sourceLineNo">280</span> configurations.add(new Object[] { false, true });<a name="line.280"></a>
-<span class="sourceLineNo">281</span> configurations.add(new Object[] { true, false });<a name="line.281"></a>
-<span class="sourceLineNo">282</span> configurations.add(new Object[] { true, true });<a name="line.282"></a>
-<span class="sourceLineNo">283</span> return Collections.unmodifiableList(configurations);<a name="line.283"></a>
-<span class="sourceLineNo">284</span> }<a name="line.284"></a>
-<span class="sourceLineNo">285</span><a name="line.285"></a>
-<span class="sourceLineNo">286</span> public static List<Object[]> memStoreTSTagsAndOffheapCombination() {<a name="line.286"></a>
-<span class="sourceLineNo">287</span> List<Object[]> configurations = new ArrayList<>();<a name="line.287"></a>
-<span class="sourceLineNo">288</span> configurations.add(new Object[] { false, false, true });<a name="line.288"></a>
-<span class="sourceLineNo">289</span> configurations.add(new Object[] { false, false, false });<a name="line.289"></a>
-<span class="sourceLineNo">290</span> configurations.add(new Object[] { false, true, true });<a name="line.290"></a>
-<span class="sourceLineNo">291</span> configurations.add(new Object[] { false, true, false });<a name="line.291"></a>
-<span class="sourceLineNo">292</span> configurations.add(new Object[] { true, false, true });<a name="line.292"></a>
-<span class="sourceLineNo">293</span> configurations.add(new Object[] { true, false, false });<a name="line.293"></a>
-<span class="sourceLineNo">294</span> configurations.add(new Object[] { true, true, true });<a name="line.294"></a>
-<span class="sourceLineNo">295</span> configurations.add(new Object[] { true, true, false });<a name="line.295"></a>
-<span class="sourceLineNo">296</span> return Collections.unmodifiableList(configurations);<a name="line.296"></a>
-<span class="sourceLineNo">297</span> }<a name="line.297"></a>
-<span class="sourceLineNo">298</span><a name="line.298"></a>
-<span class="sourceLineNo">299</span> public static final Collection<Object[]> BLOOM_AND_COMPRESSION_COMBINATIONS =<a name="line.299"></a>
-<span class="sourceLineNo">300</span> bloomAndCompressionCombinations();<a name="line.300"></a>
+<span class="sourceLineNo">196</span> public static final String PRESPLIT_TEST_TABLE_KEY = "hbase.test.pre-split-table";<a name="line.196"></a>
+<span class="sourceLineNo">197</span> public static final boolean PRESPLIT_TEST_TABLE = true;<a name="line.197"></a>
+<span class="sourceLineNo">198</span><a name="line.198"></a>
+<span class="sourceLineNo">199</span> private MiniDFSCluster dfsCluster = null;<a name="line.199"></a>
+<span class="sourceLineNo">200</span><a name="line.200"></a>
+<span class="sourceLineNo">201</span> private volatile HBaseCluster hbaseCluster = null;<a name="line.201"></a>
+<span class="sourceLineNo">202</span> private MiniMRCluster mrCluster = null;<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span> /** If there is a mini cluster running for this testing utility instance. */<a name="line.204"></a>
+<span class="sourceLineNo">205</span> private volatile boolean miniClusterRunning;<a name="line.205"></a>
+<span class="sourceLineNo">206</span><a name="line.206"></a>
+<span class="sourceLineNo">207</span> private String hadoopLogDir;<a name="line.207"></a>
+<span class="sourceLineNo">208</span><a name="line.208"></a>
+<span class="sourceLineNo">209</span> /** Directory on test filesystem where we put the data for this instance of<a name="line.209"></a>
+<span class="sourceLineNo">210</span> * HBaseTestingUtility*/<a name="line.210"></a>
+<span class="sourceLineNo">211</span> private Path dataTestDirOnTestFS = null;<a name="line.211"></a>
+<span class="sourceLineNo">212</span><a name="line.212"></a>
+<span class="sourceLineNo">213</span> /**<a name="line.213"></a>
+<span class="sourceLineNo">214</span> * Shared cluster connection.<a name="line.214"></a>
+<span class="sourceLineNo">215</span> */<a name="line.215"></a>
+<span class="sourceLineNo">216</span> private volatile Connection connection;<a name="line.216"></a>
+<span class="sourceLineNo">217</span><a name="line.217"></a>
+<span class="sourceLineNo">218</span> /** Filesystem URI used for map-reduce mini-cluster setup */<a name="line.218"></a>
+<span class="sourceLineNo">219</span> private static String FS_URI;<a name="line.219"></a>
+<span class="sourceLineNo">220</span><a name="line.220"></a>
+<span class="sourceLineNo">221</span> /** This is for unit tests parameterized with a single boolean. */<a name="line.221"></a>
+<span class="sourceLineNo">222</span> public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();<a name="line.222"></a>
+<span class="sourceLineNo">223</span><a name="line.223"></a>
+<span class="sourceLineNo">224</span> /**<a name="line.224"></a>
+<span class="sourceLineNo">225</span> * Checks to see if a specific port is available.<a name="line.225"></a>
+<span class="sourceLineNo">226</span> *<a name="line.226"></a>
+<span class="sourceLineNo">227</span> * @param port the port number to check for availability<a name="line.227"></a>
+<span class="sourceLineNo">228</span> * @return <tt>true</tt> if the port is available, or <tt>false</tt> if not<a name="line.228"></a>
+<span class="sourceLineNo">229</span> */<a name="line.229"></a>
+<span class="sourceLineNo">230</span> public static boolean available(int port) {<a name="line.230"></a>
+<span class="sourceLineNo">231</span> ServerSocket ss = null;<a name="line.231"></a>
+<span class="sourceLineNo">232</span> DatagramSocket ds = null;<a name="line.232"></a>
+<span class="sourceLineNo">233</span> try {<a name="line.233"></a>
+<span class="sourceLineNo">234</span> ss = new ServerSocket(port);<a name="line.234"></a>
+<span class="sourceLineNo">235</span> ss.setReuseAddress(true);<a name="line.235"></a>
+<span class="sourceLineNo">236</span> ds = new DatagramSocket(port);<a name="line.236"></a>
+<span class="sourceLineNo">237</span> ds.setReuseAddress(true);<a name="line.237"></a>
+<span class="sourceLineNo">238</span> return true;<a name="line.238"></a>
+<span class="sourceLineNo">239</span> } catch (IOException e) {<a name="line.239"></a>
+<span class="sourceLineNo">240</span> // Do nothing<a name="line.240"></a>
+<span class="sourceLineNo">241</span> } finally {<a name="line.241"></a>
+<span class="sourceLineNo">242</span> if (ds != null) {<a name="line.242"></a>
+<span class="sourceLineNo">243</span> ds.close();<a name="line.243"></a>
+<span class="sourceLineNo">244</span> }<a name="line.244"></a>
+<span class="sourceLineNo">245</span><a name="line.245"></a>
+<span class="sourceLineNo">246</span> if (ss != null) {<a name="line.246"></a>
+<span class="sourceLineNo">247</span> try {<a name="line.247"></a>
+<span class="sourceLineNo">248</span> ss.close();<a name="line.248"></a>
+<span class="sourceLineNo">249</span> } catch (IOException e) {<a name="line.249"></a>
+<span class="sourceLineNo">250</span> /* should not be thrown */<a name="line.250"></a>
+<span class="sourceLineNo">251</span> }<a name="line.251"></a>
+<span class="sourceLineNo">252</span> }<a name="line.252"></a>
+<span class="sourceLineNo">253</span> }<a name="line.253"></a>
+<span class="sourceLineNo">254</span><a name="line.254"></a>
+<span class="sourceLineNo">255</span> return false;<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> /**<a name="line.258"></a>
+<span class="sourceLineNo">259</span> * Create all combinations of Bloom filters and compression algorithms for<a name="line.259"></a>
+<span class="sourceLineNo">260</span> * testing.<a name="line.260"></a>
+<span class="sourceLineNo">261</span> */<a name="line.261"></a>
+<span class="sourceLineNo">262</span> private static List<Object[]> bloomAndCompressionCombinations() {<a name="line.262"></a>
+<span class="sourceLineNo">263</span> List<Object[]> configurations = new ArrayList<>();<a name="line.263"></a>
+<span class="sourceLineNo">264</span> for (Compression.Algorithm comprAlgo :<a name="line.264"></a>
+<span class="sourceLineNo">265</span> HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {<a name="line.265"></a>
+<span class="sourceLineNo">266</span> for (BloomType bloomType : BloomType.values()) {<a name="line.266"></a>
+<span class="sourceLineNo">267</span> configurations.add(new Object[] { comprAlgo, bloomType });<a name="line.267"></a>
+<span class="sourceLineNo">268</span> }<a name="line.268"></a>
+<span class="sourceLineNo">269</span> }<a name="line.269"></a>
+<span class="sourceLineNo">270</span> return Collections.unmodifiableList(configurations);<a name="line.270"></a>
+<span class="sourceLineNo">271</span> }<a name="line.271"></a>
+<span class="sourceLineNo">272</span><a name="line.272"></a>
+<span class="sourceLineNo">273</span> /**<a name="line.273"></a>
+<span class="sourceLineNo">274</span> * Create combination of memstoreTS and tags<a name="line.274"></a>
+<span class="sourceLineNo">275</span> */<a name="line.275"></a>
+<span class="sourceLineNo">276</span> private static List<Object[]> memStoreTSAndTagsCombination() {<a name="line.276"></a>
+<span class="sourceLineNo">277</span> List<Object[]> configurations = new ArrayList<>();<a name="line.277"></a>
+<span class="sourceLineNo">278</span> configurations.add(new Object[] { false, false });<a name="line.278"></a>
+<span class="sourceLineNo">279</span> configurations.add(new Object[] { false, true });<a name="line.279"></a>
+<span class="sourceLineNo">280</span> configurations.add(new Object[] { true, false });<a name="line.280"></a>
+<span class="sourceLineNo">281</span> configurations.add(new Object[] { true, true });<a name="line.281"></a>
+<span class="sourceLineNo">282</span> return Collections.unmodifiableList(configurations);<a name="line.282"></a>
+<span class="sourceLineNo">283</span> }<a name="line.283"></a>
+<span class="sourceLineNo">284</span><a name="line.284"></a>
+<span class="sourceLineNo">285</span> public static List<Object[]> memStoreTSTagsAndOffheapCombination() {<a name="line.285"></a>
+<span class="sourceLineNo">286</span> List<Object[]> configurations = new ArrayList<>();<a name="line.286"></a>
+<span class="sourceLineNo">287</span> configurations.add(new Object[] { false, false, true });<a name="line.287"></a>
+<span class="sourceLineNo">288</span> configurations.add(new Object[] { false, false, false });<a name="line.288"></a>
+<span class="sourceLineNo">289</span> configurations.add(new Object[] { false, true, true });<a name="line.289"></a>
+<span class="sourceLineNo">290</span> configurations.add(new Object[] { false, true, false });<a name="line.290"></a>
+<span class="sourceLineNo">291</span> configurations.add(new Object[] { true, false, true });<a name="line.291"></a>
+<span class="sourceLineNo">292</span> configurations.add(new Object[] { true, false, false });<a name="line.292"></a>
+<span class="sourceLineNo">293</span> configurations.add(new Object[] { true, true, true });<a name="line.293"></a>
+<span class="sourceLineNo">294</span> configurations.add(new Object[] { true, true, false });<a name="line.294"></a>
+<span class="sourceLineNo">295</span> return Collections.unmodifiableList(configurations);<a name="line.295"></a>
+<span class="sourceLineNo">296</span> }<a name="line.296"></a>
+<span class="sourceLineNo">297</span><a name="line.297"></a>
+<span class="sourceLineNo">298</span> public static final Collection<Object[]> BLOOM_AND_COMPRESSION_COMBINATIONS =<a name="line.298"></a>
+<span class="sourceLineNo">299</span> bloomAndCompressionCombinations();<a name="line.299"></a>
+<span class="sourceLineNo">300</span><a name="line.300"></a>
<span class="sourceLineNo">301</span><a name="line.301"></a>
-<span class="sourceLineNo">302</span><a name="line.302"></a>
-<span class="sourceLineNo">303</span> /**<a name="line.303"></a>
-<span class="sourceLineNo">304</span> * <p>Create an HBaseTestingUtility using a default configuration.<a name="line.304"></a>
-<span class="sourceLineNo">305</span> *<a name="line.305"></a>
-<span class="sourceLineNo">306</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.306"></a>
-<span class="sourceLineNo">307</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.307"></a>
-<span class="sourceLineNo">308</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.308"></a>
-<span class="sourceLineNo">309</span> *<a name="line.309"></a>
-<span class="sourceLineNo">310</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.310"></a>
-<span class="sourceLineNo">311</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.311"></a>
-<span class="sourceLineNo">312</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.312"></a>
-<span class="sourceLineNo">313</span> * at which point they will switch to using mini DFS for storage.<a name="line.313"></a>
-<span class="sourceLineNo">314</span> */<a name="line.314"></a>
-<span class="sourceLineNo">315</span> public HBaseTestingUtility() {<a name="line.315"></a>
-<span class="sourceLineNo">316</span> this(HBaseConfiguration.create());<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> * <p>Create an HBaseTestingUtility using a given configuration.<a name="line.320"></a>
-<span class="sourceLineNo">321</span> *<a name="line.321"></a>
-<span class="sourceLineNo">322</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.322"></a>
-<span class="sourceLineNo">323</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.323"></a>
-<span class="sourceLineNo">324</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.324"></a>
-<span class="sourceLineNo">325</span> *<a name="line.325"></a>
-<span class="sourceLineNo">326</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.326"></a>
-<span class="sourceLineNo">327</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.327"></a>
-<span class="sourceLineNo">328</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.328"></a>
-<span class="sourceLineNo">329</span> * at which point they will switch to using mini DFS for storage.<a name="line.329"></a>
-<span class="sourceLineNo">330</span> *<a name="line.330"></a>
-<span class="sourceLineNo">331</span> * @param conf The configuration to use for further operations<a name="line.331"></a>
-<span class="sourceLineNo">332</span> */<a name="line.332"></a>
-<span class="sourceLineNo">333</span> public HBaseTestingUtility(@Nullable Configuration conf) {<a name="line.333"></a>
-<span class="sourceLineNo">334</span> super(conf);<a name="line.334"></a>
-<span class="sourceLineNo">335</span><a name="line.335"></a>
-<span class="sourceLineNo">336</span> // a hbase checksum verification failure will cause unit tests to fail<a name="line.336"></a>
-<span class="sourceLineNo">337</span> ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.337"></a>
-<span class="sourceLineNo">338</span><a name="line.338"></a>
-<span class="sourceLineNo">339</span> // Save this for when setting default file:// breaks things<a name="line.339"></a>
-<span class="sourceLineNo">340</span> if (this.conf.get("fs.defaultFS") != null) {<a name="line.340"></a>
-<span class="sourceLineNo">341</span> this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.341"></a>
-<span class="sourceLineNo">342</span> }<a name="line.342"></a>
-<span class="sourceLineNo">343</span> if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.343"></a>
-<span class="sourceLineNo">344</span> this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.344"></a>
-<span class="sourceLineNo">345</span> }<a name="line.345"></a>
-<span class="sourceLineNo">346</span> // Every cluster is a local cluster until we start DFS<a name="line.346"></a>
-<span class="sourceLineNo">347</span> // Note that conf could be null, but this.conf will not be<a name="line.347"></a>
-<span class="sourceLineNo">348</span> String dataTestDir = getDataTestDir().toString();<a name="line.348"></a>
-<span class="sourceLineNo">349</span> this.conf.set("fs.defaultFS","file:///");<a name="line.349"></a>
-<span class="sourceLineNo">350</span> this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.350"></a>
-<span class="sourceLineNo">351</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.351"></a>
-<span class="sourceLineNo">352</span> this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.352"></a>
-<span class="sourceLineNo">353</span> // If the value for random ports isn't set set it to true, thus making<a name="line.353"></a>
-<span class="sourceLineNo">354</span> // tests opt-out for random port assignment<a name="line.354"></a>
-<span class="sourceLineNo">355</span> this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.355"></a>
-<span class="sourceLineNo">356</span> this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.356"></a>
-<span class="sourceLineNo">357</span> }<a name="line.357"></a>
-<span class="sourceLineNo">358</span><a name="line.358"></a>
-<span class="sourceLineNo">359</span> /**<a name="line.359"></a>
-<span class="sourceLineNo">360</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.360"></a>
-<span class="sourceLineNo">361</span> * @return a normal HBaseTestingUtility<a name="line.361"></a>
-<span class="sourceLineNo">362</span> */<a name="line.362"></a>
-<span class="sourceLineNo">363</span> @Deprecated<a name="line.363"></a>
-<span class="sourceLineNo">364</span> public static HBaseTestingUtility createLocalHTU() {<a name="line.364"></a>
-<span class="sourceLineNo">365</span> return new HBaseTestingUtility();<a name="line.365"></a>
-<span class="sourceLineNo">366</span> }<a name="line.366"></a>
-<span class="sourceLineNo">367</span><a name="line.367"></a>
-<span class="sourceLineNo">368</span> /**<a name="line.368"></a>
-<span class="sourceLineNo">369</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.369"></a>
-<span class="sourceLineNo">370</span> * @return a normal HBaseTestingUtility<a name="line.370"></a>
-<span class="sourceLineNo">371</span> */<a name="line.371"></a>
-<span class="sourceLineNo">372</span> @Deprecated<a name="line.372"></a>
-<span class="sourceLineNo">373</span> public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.373"></a>
-<span class="sourceLineNo">374</span> return new HBaseTestingUtility(c);<a name="line.374"></a>
-<span class="sourceLineNo">375</span> }<a name="line.375"></a>
-<span class="sourceLineNo">376</span><a name="line.376"></a>
-<span class="sourceLineNo">377</span> /**<a name="line.377"></a>
-<span class="sourceLineNo">378</span> * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.378"></a>
-<span class="sourceLineNo">379</span> */<a name="line.379"></a>
-<span class="sourceLineNo">380</span> public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.380"></a>
-<span class="sourceLineNo">381</span> closeRegionAndWAL((HRegion)r);<a name="line.381"></a>
-<span class="sourceLineNo">382</span> }<a name="line.382"></a>
-<span class="sourceLineNo">383</span><a name="line.383"></a>
-<span class="sourceLineNo">384</span> /**<a name="line.384"></a>
-<span class="sourceLineNo">385</span> * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.385"></a>
-<span class="sourceLineNo">386</span> */<a name="line.386"></a>
-<span class="sourceLineNo">387</span> public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.387"></a>
-<span class="sourceLineNo">388</span> if (r == null) return;<a name="line.388"></a>
-<span class="sourceLineNo">389</span> r.close();<a name="line.389"></a>
-<span class="sourceLineNo">390</span> if (r.getWAL() == null) return;<a name="line.390"></a>
-<span class="sourceLineNo">391</span> r.getWAL().close();<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> /**<a name="line.394"></a>
-<span class="sourceLineNo">395</span> * Returns this classes's instance of {@link Configuration}. Be careful how<a name="line.395"></a>
-<span class="sourceLineNo">396</span> * you use the returned Configuration since {@link Connection} instances<a name="line.396"></a>
-<span class="sourceLineNo">397</span> * can be shared. The Map of Connections is keyed by the Configuration. If<a name="line.397"></a>
-<span class="sourceLineNo">398</span> * say, a Connection was being used against a cluster that had been shutdown,<a name="line.398"></a>
-<span class="sourceLineNo">399</span> * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.399"></a>
-<span class="sourceLineNo">400</span> * be wholesome. Rather than use the return direct, its usually best to<a name="line.400"></a>
-<span class="sourceLineNo">401</span> * make a copy and use that. Do<a name="line.401"></a>
-<span class="sourceLineNo">402</span> * <code>Configuration c = new Configuration(INSTANCE.getConfiguration());</code><a name="line.402"></a>
-<span class="sourceLineNo">403</span> * @return Instance of Configuration.<a name="line.403"></a>
-<span class="sourceLineNo">404</span> */<a name="line.404"></a>
-<span class="sourceLineNo">405</span> @Override<a name="line.405"></a>
-<span class="sourceLineNo">406</span> public Configuration getConfiguration() {<a name="line.406"></a>
-<span class="sourceLineNo">407</span> return super.getConfiguration();<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> public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.410"></a>
-<span class="sourceLineNo">411</span> this.hbaseCluster = hbaseCluster;<a name="line.411"></a>
-<span class="sourceLineNo">412</span> }<a name="line.412"></a>
-<span class="sourceLineNo">413</span><a name="line.413"></a>
-<span class="sourceLineNo">414</span> /**<a name="line.414"></a>
-<span class="sourceLineNo">415</span> * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.415"></a>
-<span class="sourceLineNo">416</span> * Give it a random name so can have many concurrent tests running if<a name="line.416"></a>
-<span class="sourceLineNo">417</span> * we need to. It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.417"></a>
-<span class="sourceLineNo">418</span> * System property, as it's what minidfscluster bases<a name="line.418"></a>
-<span class="sourceLineNo">419</span> * it data dir on. Moding a System property is not the way to do concurrent<a name="line.419"></a>
-<span class="sourceLineNo">420</span> * instances -- another instance could grab the temporary<a name="line.420"></a>
-<span class="sourceLineNo">421</span> * value unintentionally -- but not anything can do about it at moment;<a name="line.421"></a>
-<span class="sourceLineNo">422</span> * single instance only is how the minidfscluster works.<a name="line.422"></a>
-<span class="sourceLineNo">423</span> *<a name="line.423"></a>
-<span class="sourceLineNo">424</span> * We also create the underlying directory for<a name="line.424"></a>
-<span class="sourceLineNo">425</span> * hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.425"></a>
-<span class="sourceLineNo">426</span> * in the conf, and as a system property for hadoop.tmp.dir<a name="line.426"></a>
-<span class="sourceLineNo">427</span> *<a name="line.427"></a>
-<span class="sourceLineNo">428</span> * @return The calculated data test build directory, if newly-created.<a name="line.428"></a>
-<span class="sourceLineNo">429</span> */<a name="line.429"></a>
-<span class="sourceLineNo">430</span> @Override<a name="line.430"></a>
-<span class="sourceLineNo">431</span> protected Path setupDataTestDir() {<a name="line.431"></a>
-<span class="sourceLineNo">432</span> Path testPath = super.setupDataTestDir();<a name="line.432"></a>
-<span class="sourceLineNo">433</span> if (null == testPath) {<a name="line.433"></a>
-<span class="sourceLineNo">434</span> return null;<a name="line.434"></a>
-<span class="sourceLineNo">435</span> }<a name="line.435"></a>
-<span class="sourceLineNo">436</span><a name="line.436"></a>
-<span class="sourceLineNo">437</span> createSubDirAndSystemProperty(<a name="line.437"></a>
-<span class="sourceLineNo">438</span> "hadoop.log.dir",<a name="line.438"></a>
-<span class="sourceLineNo">439</span> testPath, "hadoop-log-dir");<a name="line.439"></a>
-<span class="sourceLineNo">440</span><a name="line.440"></a>
-<span class="sourceLineNo">441</span> // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.441"></a>
-<span class="sourceLineNo">442</span> // we want our own value to ensure uniqueness on the same machine<a name="line.442"></a>
-<span class="sourceLineNo">443</span> createSubDirAndSystemProperty(<a name="line.443"></a>
-<span class="sourceLineNo">444</span> "hadoop.tmp.dir",<a name="line.444"></a>
-<span class="sourceLineNo">445</span> testPath, "hadoop-tmp-dir");<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span> // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.447"></a>
-<span class="sourceLineNo">448</span> createSubDir(<a name="line.448"></a>
-<span class="sourceLineNo">449</span> "mapreduce.cluster.local.dir",<a name="line.449"></a>
-<span class="sourceLineNo">450</span> testPath, "mapred-local-dir");<a name="line.450"></a>
-<span class="sourceLineNo">451</span><a name="line.451"></a>
-<span class="sourceLineNo">452</span> return testPath;<a name="line.452"></a>
-<span class="sourceLineNo">453</span> }<a name="line.453"></a>
-<span class="sourceLineNo">454</span><a name="line.454"></a>
-<span class="sourceLineNo">455</span> private void createSubDirAndSystemProperty(<a name="line.455"></a>
-<span class="sourceLineNo">456</span> String propertyName, Path parent, String subDirName){<a name="line.456"></a>
-<span class="sourceLineNo">457</span><a name="line.457"></a>
-<span class="sourceLineNo">458</span> String sysValue = System.getProperty(propertyName);<a name="line.458"></a>
-<span class="sourceLineNo">459</span><a name="line.459"></a>
-<span class="sourceLineNo">460</span> if (sysValue != null) {<a name="line.460"></a>
-<span class="sourceLineNo">461</span> // There is already a value set. So we do nothing but hope<a name="line.461"></a>
-<span class="sourceLineNo">462</span> // that there will be no conflicts<a name="line.462"></a>
-<span class="sourceLineNo">463</span> LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.463"></a>
-<span class="sourceLineNo">464</span> sysValue + " so I do NOT create it in " + parent);<a name="line.464"></a>
-<span class="sourceLineNo">465</span> String confValue = conf.get(propertyName);<a name="line.465"></a>
-<span class="sourceLineNo">466</span> if (confValue != null && !confValue.endsWith(sysValue)){<a name="line.466"></a>
-<span class="sourceLineNo">467</span> LOG.warn(<a name="line.467"></a>
-<span class="sourceLineNo">468</span> propertyName + " property value differs in configuration and system: "+<a name="line.468"></a>
-<span class="sourceLineNo">469</span> "Configuration="+confValue+" while System="+sysValue+<a name="line.469"></a>
-<span class="sourceLineNo">470</span> " Erasing configuration value by system value."<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> conf.set(propertyName, sysValue);<a name="line.473"></a>
-<span class="sourceLineNo">474</span> } else {<a name="line.474"></a>
-<span class="sourceLineNo">475</span> // Ok, it's not set, so we create it as a subdirectory<a name="line.475"></a>
-<span class="sourceLineNo">476</span> createSubDir(propertyName, parent, subDirName);<a name="line.476"></a>
-<span class="sourceLineNo">477</span> System.setProperty(propertyName, conf.get(propertyName));<a name="line.477"></a>
-<span class="sourceLineNo">478</span> }<a name="line.478"></a>
-<span class="sourceLineNo">479</span> }<a name="line.479"></a>
-<span class="sourceLineNo">480</span><a name="line.480"></a>
-<span class="sourceLineNo">481</span> /**<a name="line.481"></a>
-<span class="sourceLineNo">482</span> * @return Where to write test data on the test filesystem; Returns working directory<a name="line.482"></a>
-<span class="sourceLineNo">483</span> * for the test filesystem by default<a name="line.483"></a>
-<span class="sourceLineNo">484</span> * @see #setupDataTestDirOnTestFS()<a name="line.484"></a>
-<span class="sourceLineNo">485</span> * @see #getTestFileSystem()<a name="line.485"></a>
-<span class="sourceLineNo">486</span> */<a name="line.486"></a>
-<span class="sourceLineNo">487</span> private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.487"></a>
-<span class="sourceLineNo">488</span> FileSystem fs = getTestFileSystem();<a name="line.488"></a>
-<span class="sourceLineNo">489</span> return new Path(fs.getWorkingDirectory(), "test-data");<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> /**<a name="line.492"></a>
-<span class="sourceLineNo">493</span> * @return META table descriptor<a name="line.493"></a>
-<span class="sourceLineNo">494</span> * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.494"></a>
-<span class="sourceLineNo">495</span> * use {@link #getMetaTableDescriptorBuilder()}<a name="line.495"></a>
-<span class="sourceLineNo">496</span> */<a name="line.496"></a>
-<span class="sourceLineNo">497</span> @Deprecated<a name="line.497"></a>
-<span class="sourceLineNo">498</span> public HTableDescriptor getMetaTableDescriptor() {<a name="line.498"></a>
-<span class="sourceLineNo">499</span> return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<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> /**<a name="line.502"></a>
-<span class="sourceLineNo">503</span> * @return META table descriptor<a name="line.503"></a>
-<span class="sourceLineNo">504</span> */<a name="line.504"></a>
-<span class="sourceLineNo">505</span> public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.505"></a>
-<span class="sourceLineNo">506</span> try {<a name="line.506"></a>
-<span class="sourceLineNo">507</span> return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.507"></a>
-<span class="sourceLineNo">508</span> } catch (IOException e) {<a name="line.508"></a>
-<span class="sourceLineNo">509</span> throw new RuntimeException("Unable to create META table descriptor", e);<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><a name="line.512"></a>
-<span class="sourceLineNo">513</span> /**<a name="line.513"></a>
-<span class="sourceLineNo">514</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.514"></a>
-<span class="sourceLineNo">515</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.515"></a>
-<span class="sourceLineNo">516</span> * if the test relies on it.<a name="line.516"></a>
-<span class="sourceLineNo">517</span> * @return a unique path in the test filesystem<a name="line.517"></a>
-<span class="sourceLineNo">518</span> */<a name="line.518"></a>
-<span class="sourceLineNo">519</span> public Path getDataTestDirOnTestFS() throws IOException {<a name="line.519"></a>
-<span class="sourceLineNo">520</span> if (dataTestDirOnTestFS == null) {<a name="line.520"></a>
-<span class="sourceLineNo">521</span> setupDataTestDirOnTestFS();<a name="line.521"></a>
-<span class="sourceLineNo">522</span> }<a name="line.522"></a>
-<span class="sourceLineNo">523</span><a name="line.523"></a>
-<span class="sourceLineNo">524</span> return dataTestDirOnTestFS;<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> /**<a name="line.527"></a>
-<span class="sourceLineNo">528</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.528"></a>
-<span class="sourceLineNo">529</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.529"></a>
-<span class="sourceLineNo">530</span> * if the test relies on it.<a name="line.530"></a>
-<span class="sourceLineNo">531</span> * @return a unique path in the test filesystem<a name="line.531"></a>
-<span class="sourceLineNo">532</span> * @param subdirName name of the subdir to create under the base test dir<a name="line.532"></a>
-<span class="sourceLineNo">533</span> */<a name="line.533"></a>
-<span class="sourceLineNo">534</span> public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.534"></a>
-<span class="sourceLineNo">535</span> return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.535"></a>
-<span class="sourceLineNo">536</span> }<a name="line.536"></a>
-<span class="sourceLineNo">537</span><a name="line.537"></a>
-<span class="sourceLineNo">538</span> /**<a name="line.538"></a>
-<span class="sourceLineNo">539</span> * Sets up a path in test filesystem to be used by tests.<a name="line.539"></a>
-<span class="sourceLineNo">540</span> * Creates a new directory if not already setup.<a name="line.540"></a>
-<span class="sourceLineNo">541</span> */<a name="line.541"></a>
-<span class="sourceLineNo">542</span> private void setupDataTestDirOnTestFS() throws IOException {<a name="line.542"></a>
-<span class="sourceLineNo">543</span> if (dataTestDirOnTestFS != null) {<a name="line.543"></a>
-<span class="sourceLineNo">544</span> LOG.warn("Data test on test fs dir already setup in "<a name="line.544"></a>
-<span class="sourceLineNo">545</span> + dataTestDirOnTestFS.toString());<a name="line.545"></a>
-<span class="sourceLineNo">546</span> return;<a name="line.546"></a>
-<span class="sourceLineNo">547</span> }<a name="line.547"></a>
-<span class="sourceLineNo">548</span> dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.548"></a>
-<span class="sourceLineNo">549</span> }<a name="line.549"></a>
-<span class="sourceLineNo">550</span><a name="line.550"></a>
-<span class="sourceLineNo">551</span> /**<a name="line.551"></a>
-<span class="sourceLineNo">552</span> * Sets up a new path in test filesystem to be used by tests.<a name="line.552"></a>
-<span class="sourceLineNo">553</span> */<a name="line.553"></a>
-<span class="sourceLineNo">554</span> private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.554"></a>
-<span class="sourceLineNo">555</span> //The file system can be either local, mini dfs, or if the configuration<a name="line.555"></a>
-<span class="sourceLineNo">556</span> //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.556"></a>
-<span class="sourceLineNo">557</span> //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.557"></a>
-<span class="sourceLineNo">558</span> //the working directory, and create a unique sub dir there<a name="line.558"></a>
-<span class="sourceLineNo">559</span> FileSystem fs = getTestFileSystem();<a name="line.559"></a>
-<span class="sourceLineNo">560</span> Path newDataTestDir;<a name="line.560"></a>
-<span class="sourceLineNo">561</span> String randomStr = getRandomUUID().toString();<a name="line.561"></a>
-<span class="sourceLineNo">562</span> if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.562"></a>
-<span class="sourceLineNo">563</span> newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.563"></a>
-<span class="sourceLineNo">564</span> File dataTestDir = new File(newDataTestDir.toString());<a name="line.564"></a>
-<span class="sourceLineNo">565</span> if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.565"></a>
-<span class="sourceLineNo">566</span> } else {<a name="line.566"></a>
-<span class="sourceLineNo">567</span> Path base = getBaseTestDirOnTestFS();<a name="line.567"></a>
-<span class="sourceLineNo">568</span> newDataTestDir = new Path(base, randomStr);<a name="line.568"></a>
-<span class="sourceLineNo">569</span> if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.569"></a>
-<span class="sourceLineNo">570</span> }<a name="line.570"></a>
-<span class="sourceLineNo">571</span> return newDataTestDir;<a name="line.571"></a>
-<span class="sourceLineNo">572</span> }<a name="line.572"></a>
-<span class="sourceLineNo">573</span><a name="line.573"></a>
-<span class="sourceLineNo">574</span> /**<a name="line.574"></a>
-<span class="sourceLineNo">575</span> * Cleans the test data directory on the test filesystem.<a name="line.575"></a>
-<span class="sourceLineNo">576</span> * @return True if we removed the test dirs<a name="line.576"></a>
-<span class="sourceLineNo">577</span> * @throws IOException<a name="line.577"></a>
-<span class="sourceLineNo">578</span> */<a name="line.578"></a>
-<span class="sourceLineNo">579</span> public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.579"></a>
-<span class="sourceLineNo">580</span> boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.580"></a>
-<span class="sourceLineNo">581</span> if (ret)<a name="line.581"></a>
-<span class="sourceLineNo">582</span> dataTestDirOnTestFS = null;<a name="line.582"></a>
-<span class="sourceLineNo">583</span> return ret;<a name="line.583"></a>
-<span class="sourceLineNo">584</span> }<a name="line.584"></a>
-<span class="sourceLineNo">585</span><a name="line.585"></a>
-<span class="sourceLineNo">586</span> /**<a name="line.586"></a>
-<span class="sourceLineNo">587</span> * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.587"></a>
-<span class="sourceLineNo">588</span> * @return True if we removed child<a name="line.588"></a>
-<span class="sourceLineNo">589</span> * @throws IOException<a name="line.589"></a>
-<span class="sourceLineNo">590</span> */<a name="line.590"></a>
-<span class="sourceLineNo">591</span> public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.591"></a>
-<span class="sourceLineNo">592</span> Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.592"></a>
-<span class="sourceLineNo">593</span> return getTestFileSystem().delete(cpath, true);<a name="line.593"></a>
-<span class="sourceLineNo">594</span> }<a name="line.594"></a>
-<span class="sourceLineNo">595</span><a name="line.595"></a>
-<span class="sourceLineNo">596</span> /**<a name="line.596"></a>
-<span class="sourceLineNo">597</span> * Start a minidfscluster.<a name="line.597"></a>
-<span class="sourceLineNo">598</span> * @param servers How many DNs to start.<a name="line.598"></a>
-<span class="sourceLineNo">599</span> * @throws Exception<a name="line.599"></a>
-<span class="sourceLineNo">600</span> * @see #shutdownMiniDFSCluster()<a name="line.600"></a>
-<span class="sourceLineNo">601</span> * @return The mini dfs cluster created.<a name="line.601"></a>
-<span class="sourceLineNo">602</span> */<a name="line.602"></a>
-<span class="sourceLineNo">603</span> public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.603"></a>
-<span class="sourceLineNo">604</span> return startMiniDFSCluster(servers, null);<a name="line.604"></a>
-<span class="sourceLineNo">605</span> }<a name="line.605"></a>
-<span class="sourceLineNo">606</span><a name="line.606"></a>
-<span class="sourceLineNo">607</span> /**<a name="line.607"></a>
-<span class="sourceLineNo">608</span> * Start a minidfscluster.<a name="line.608"></a>
-<span class="sourceLineNo">609</span> * This is useful if you want to run datanode on distinct hosts for things<a name="line.609"></a>
-<span class="sourceLineNo">610</span> * like HDFS block location verification.<a name="line.610"></a>
-<span class="sourceLineNo">611</span> * If you start MiniDFSCluster without host names, all instances of the<a name="line.611"></a>
-<span class="sourceLineNo">612</span> * datanodes will have the same host name.<a name="line.612"></a>
-<span class="sourceLineNo">613</span> * @param hosts hostnames DNs to run on.<a name="line.613"></a>
-<span class="sourceLineNo">614</span> * @throws Exception<a name="line.614"></a>
-<span class="sourceLineNo">615</span> * @see #shutdownMiniDFSCluster()<a name="line.615"></a>
-<span class="sourceLineNo">616</span> * @return The mini dfs cluster created.<a name="line.616"></a>
-<span class="sourceLineNo">617</span> */<a name="line.617"></a>
-<span class="sourceLineNo">618</span> public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.618"></a>
-<span class="sourceLineNo">619</span> throws Exception {<a name="line.619"></a>
-<span class="sourceLineNo">620</span> if ( hosts != null && hosts.length != 0) {<a name="line.620"></a>
-<span class="sourceLineNo">621</span> return startMiniDFSCluster(hosts.length, hosts);<a name="line.621"></a>
-<span class="sourceLineNo">622</span> } else {<a name="line.622"></a>
-<span class="sourceLineNo">623</span> return startMiniDFSCluster(1, null);<a name="line.623"></a>
-<span class="sourceLineNo">624</span> }<a name="line.624"></a>
-<span class="sourceLineNo">625</span> }<a name="line.625"></a>
-<span class="sourceLineNo">626</span><a name="line.626"></a>
-<span class="sourceLineNo">627</span> /**<a name="line.627"></a>
-<span class="sourceLineNo">628</span> * Start a minidfscluster.<a name="line.628"></a>
-<span class="sourceLineNo">629</span> * Can only create one.<a name="line.629"></a>
-<span class="sourceLineNo">630</span> * @param servers How many DNs to start.<a name="line.630"></a>
-<span class="sourceLineNo">631</span> * @param hosts hostnames DNs to run on.<a name="line.631"></a>
-<span class="sourceLineNo">632</span> * @throws Exception<a name="line.632"></a>
-<span class="sourceLineNo">633</span> * @see #shutdownMiniDFSCluster()<a name="line.633"></a>
-<span class="sourceLineNo">634</span> * @return The mini dfs cluster created.<a name="line.634"></a>
-<span class="sourceLineNo">635</span> */<a name="line.635"></a>
-<span class="sourceLineNo">636</span> public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.636"></a>
-<span class="sourceLineNo">637</span> throws Exception {<a name="line.637"></a>
-<span class="sourceLineNo">638</span> return startMiniDFSCluster(servers, null, hosts);<a name="line.638"></a>
-<span class="sourceLineNo">639</span> }<a name="line.639"></a>
-<span class="sourceLineNo">640</span><a name="line.640"></a>
-<span class="sourceLineNo">641</span> private void setFs() throws IOException {<a name="line.641"></a>
-<span class="sourceLineNo">642</span> if(this.dfsCluster == null){<a name="line.642"></a>
-<span class="sourceLineNo">643</span> LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.643"></a>
-<span class="sourceLineNo">644</span> return;<a name="line.644"></a>
-<span class="sourceLineNo">645</span> }<a name="line.645"></a>
-<span class="sourceLineNo">646</span> FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.646"></a>
-<span class="sourceLineNo">647</span> FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.647"></a>
-<span class="sourceLineNo">648</span><a name="line.648"></a>
-<span class="sourceLineNo">649</span> // re-enable this check with dfs<a name="line.649"></a>
-<span class="sourceLineNo">650</span> conf.unset(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE);<a name="line.650"></a>
-<span class="sourceLineNo">651</span> }<a name="line.651"></a>
-<span class="sourceLineNo">652</span><a name="line.652"></a>
-<span class="sourceLineNo">653</span> public MiniDFSCluster startMiniDFSCluster(int servers, final String racks[], String hosts[])<a name="line.653"></a>
-<span class="sourceLineNo">654</span> throws Exception {<a name="line.654"></a>
-<span class="sourceLineNo">655</span> createDirsAndSetProperties();<a name="line.655"></a>
-<span class="sourceLineNo">656</span> EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);<a name="line.656"></a>
-<span class="sourceLineNo">657</span><a name="line.657"></a>
-<span class="sourceLineNo">658</span> // Error level to skip some warnings specific to the minicluster. See HBASE-4709<a name="line.658"></a>
-<span class="sourceLineNo">659</span> org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).<a name="line.659"></a>
-<span class="sourceLineNo">660</span> setLevel(org.apache.log4j.Level.ERROR);<a name="line.660"></a>
-<span class="sourceLineNo">661</span> org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.impl.MetricsSystemImpl.class).<a name="line.661"></a>
-<span class="sourceLineNo">662</span> setLevel(org.apache.log4j.Level.ERROR);<a name="line.662"></a>
-<span class="sourceLineNo">663</span><a name="line.663"></a>
-<span class="sourceLineNo">664</span> TraceUtil.initTracer(conf);<a name="line.664"></a>
-<span class="sourceLineNo">665</span><a name="line.665"></a>
-<span class="sourceLineNo">666</span> this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,<a name="line.666"></a>
-<span class="sourceLineNo">667</span> true, null, racks, hosts, null);<a name="line.667"></a>
-<span class="sourceLineNo">668</span><a name="line.668"></a>
-<span class="sourceLineNo">669</span> // Set this just-started cluster as our filesystem.<a name="line.669"></a>
-<span class="sourceLineNo">670</span> setFs();<a name="line.670"></a>
-<span class="sourceLineNo">671</span><a name="line.671"></a>
-<span class="sourceLineNo">672</span> // Wait for the cluster to be totally up<a name="line.672"></a>
-<span class="sourceLineNo">673</span> this.dfsCluster.waitClusterUp();<a name="line.673"></a>
-<span class="sourceLineNo">674</span><a name="line.674"></a>
-<span class="sourceLineNo">675</span> //reset the test directory for test file system<a name="line.675"></a>
-<span class="sourceLineNo">676</span> dataTestDirOnTestFS = null;<a name="line.676"></a>
-<span class="sourceLineNo">677</span> String dataTestDir = getDataTestDir().toString();<a name="line.677"></a>
-<span class="sourceLineNo">678</span> conf.set(HConstants.HBASE_DIR, dataTestDir);<a name="line.678"></a>
-<span class="sourceLineNo">679</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.679"></a>
-<span class="sourceLineNo">680</span><a name="line.680"></a>
-<span class="sourceLineNo">681</span> return this.dfsCluster;<a name="line.681"></a>
-<span class="sourceLineNo">682</span> }<a name="line.682"></a>
-<span class="sourceLineNo">683</span><a name="line.683"></a>
-<span class="sourceLineNo">684</span> public MiniDFSCluster startMiniDFSClusterForTestWAL(int namenodePort) throws IOException {<a name="line.684"></a>
-<span class="sourceLineNo">685</span> createDirsAndSetProperties();<a name="line.685"></a>
-<span class="sourceLineNo">686</span> dfsCluster = new MiniDFSCluster(namenodePort, conf, 5, false, true, true, null,<a name="line.686"></a>
-<span class="sourceLineNo">687</span> null, null, null);<a name="line.687"></a>
-<span class="sourceLineNo">688</span> return dfsCluster;<a name="line.688"></a>
-<span class="sourceLineNo">689</span> }<a name="line.689"></a>
-<span class="sourceLineNo">690</span><a name="line.690"></a>
-<span class="sourceLineNo">691</span> /** This is used before starting HDFS and map-reduce mini-clusters */<a name="line.691"></a>
-<span class="sourceLineNo">692</span> private void createDirsAndSetProperties() throws IOException {<a name="line.692"></a>
-<span class="sourceLineNo">693</span> setupClusterTestDir();<a name="line.693"></a>
-<span class="sourceLineNo">694</span> conf.set(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.694"></a>
-<span class="sourceLineNo">695</span> System.setProperty(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.695"></a>
-<span class="sourceLineNo">696</span> createDirAndSetProperty("cache_data", "test.cache.data");<a name="line.696"></a>
-<span class="sourceLineNo">697</span> createDirAndSetProperty("hadoop_tmp", "hadoop.tmp.dir");<a name="line.697"></a>
-<span class="sourceLineNo">698</span> hadoopLogDir = createDirAndSetProperty("hadoop_logs", "hadoop.log.dir");<a name="line.698"></a>
-<span class="sourceLineNo">699</span> createDirAndSetProperty("mapred_local", "mapreduce.cluster.local.dir");<a name="line.699"></a>
-<span class="sourceLineNo">700</span> createDirAndSetProperty("mapred_temp", "mapreduce.cluster.temp.dir");<a name="line.700"></a>
-<span class="sourceLineNo">701</span> enableShortCircuit();<a name="line.701"></a>
-<span class="sourceLineNo">702</span><a name="line.702"></a>
-<span class="sourceLineNo">703</span> Path root = getDataTestDirOnTestFS("hadoop");<a name="line.703"></a>
-<span class="sourceLineNo">704</span> conf.set(MapreduceTestingShim.getMROutputDirProp(),<a name="line.704"></a>
-<span class="sourceLineNo">705</span> new Path(root, "mapred-output-dir").toString());<a name="line.705"></a>
-<span class="sourceLineNo">706</span> conf.set("mapreduce.jobtracker.system.dir", new Path(root, "mapred-system-dir").toString());<a name="line.706"></a>
-<span class="sourceLineNo">707</span> conf.set("mapreduce.jobtracker.staging.root.dir",<a name="line.707"></a>
-<span class="sourceLineNo">708</span> new Path(root, "mapreduce-jobtracker-staging-root-dir").toString());<a name="line.708"></a>
-<span class="sourceLineNo">709</span> conf.set("mapreduce.job.working.dir", new Path(root, "mapred-working-dir").toString());<a name="line.709"></a>
-<span class="sourceLineNo">710</span> conf.set("yarn.app.mapreduce.am.staging-dir",<a name="line.710"></a>
-<span class="sourceLineNo">711</span> new Path(root, "mapreduce-am-staging-root-dir").toString());<a name="line.711"></a>
-<span class="sourceLineNo">712</span> }<a name="line.712"></a>
+<span class="sourceLineNo">302</span> /**<a name="line.302"></a>
+<span class="sourceLineNo">303</span> * <p>Create an HBaseTestingUtility using a default configuration.<a name="line.303"></a>
+<span class="sourceLineNo">304</span> *<a name="line.304"></a>
+<span class="sourceLineNo">305</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.305"></a>
+<span class="sourceLineNo">306</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.306"></a>
+<span class="sourceLineNo">307</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.307"></a>
+<span class="sourceLineNo">308</span> *<a name="line.308"></a>
+<span class="sourceLineNo">309</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.309"></a>
+<span class="sourceLineNo">310</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.310"></a>
+<span class="sourceLineNo">311</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.311"></a>
+<span class="sourceLineNo">312</span> * at which point they will switch to using mini DFS for storage.<a name="line.312"></a>
+<span class="sourceLineNo">313</span> */<a name="line.313"></a>
+<span class="sourceLineNo">314</span> public HBaseTestingUtility() {<a name="line.314"></a>
+<span class="sourceLineNo">315</span> this(HBaseConfiguration.create());<a name="line.315"></a>
+<span class="sourceLineNo">316</span> }<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> * <p>Create an HBaseTestingUtility using a given configuration.<a name="line.319"></a>
+<span class="sourceLineNo">320</span> *<a name="line.320"></a>
+<span class="sourceLineNo">321</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.321"></a>
+<span class="sourceLineNo">322</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.322"></a>
+<span class="sourceLineNo">323</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.323"></a>
+<span class="sourceLineNo">324</span> *<a name="line.324"></a>
+<span class="sourceLineNo">325</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.325"></a>
+<span class="sourceLineNo">326</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.326"></a>
+<span class="sourceLineNo">327</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.327"></a>
+<span class="sourceLineNo">328</span> * at which point they will switch to using mini DFS for storage.<a name="line.328"></a>
+<span class="sourceLineNo">329</span> *<a name="line.329"></a>
+<span class="sourceLineNo">330</span> * @param conf The configuration to use for further operations<a name="line.330"></a>
+<span class="sourceLineNo">331</span> */<a name="line.331"></a>
+<span class="sourceLineNo">332</span> public HBaseTestingUtility(@Nullable Configuration conf) {<a name="line.332"></a>
+<span class="sourceLineNo">333</span> super(conf);<a name="line.333"></a>
+<span class="sourceLineNo">334</span><a name="line.334"></a>
+<span class="sourceLineNo">335</span> // a hbase checksum verification failure will cause unit tests to fail<a name="line.335"></a>
+<span class="sourceLineNo">336</span> ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.336"></a>
+<span class="sourceLineNo">337</span><a name="line.337"></a>
+<span class="sourceLineNo">338</span> // Save this for when setting default file:// breaks things<a name="line.338"></a>
+<span class="sourceLineNo">339</span> if (this.conf.get("fs.defaultFS") != null) {<a name="line.339"></a>
+<span class="sourceLineNo">340</span> this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.340"></a>
+<span class="sourceLineNo">341</span> }<a name="line.341"></a>
+<span class="sourceLineNo">342</span> if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.342"></a>
+<span class="sourceLineNo">343</span> this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.343"></a>
+<span class="sourceLineNo">344</span> }<a name="line.344"></a>
+<span class="sourceLineNo">345</span> // Every cluster is a local cluster until we start DFS<a name="line.345"></a>
+<span class="sourceLineNo">346</span> // Note that conf could be null, but this.conf will not be<a name="line.346"></a>
+<span class="sourceLineNo">347</span> String dataTestDir = getDataTestDir().toString();<a name="line.347"></a>
+<span class="sourceLineNo">348</span> this.conf.set("fs.defaultFS","file:///");<a name="line.348"></a>
+<span class="sourceLineNo">349</span> this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.349"></a>
+<span class="sourceLineNo">350</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.350"></a>
+<span class="sourceLineNo">351</span> this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.351"></a>
+<span class="sourceLineNo">352</span> // If the value for random ports isn't set set it to true, thus making<a name="line.352"></a>
+<span class="sourceLineNo">353</span> // tests opt-out for random port assignment<a name="line.353"></a>
+<span class="sourceLineNo">354</span> this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.354"></a>
+<span class="sourceLineNo">355</span> this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.355"></a>
+<span class="sourceLineNo">356</span> }<a name="line.356"></a>
+<span class="sourceLineNo">357</span><a name="line.357"></a>
+<span class="sourceLineNo">358</span> /**<a name="line.358"></a>
+<span class="sourceLineNo">359</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.359"></a>
+<span class="sourceLineNo">360</span> * @return a normal HBaseTestingUtility<a name="line.360"></a>
+<span class="sourceLineNo">361</span> */<a name="line.361"></a>
+<span class="sourceLineNo">362</span> @Deprecated<a name="line.362"></a>
+<span class="sourceLineNo">363</span> public static HBaseTestingUtility createLocalHTU() {<a name="line.363"></a>
+<span class="sourceLineNo">364</span> return new HBaseTestingUtility();<a name="line.364"></a>
+<span class="sourceLineNo">365</span> }<a name="line.365"></a>
+<span class="sourceLineNo">366</span><a name="line.366"></a>
+<span class="sourceLineNo">367</span> /**<a name="line.367"></a>
+<span class="sourceLineNo">368</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.368"></a>
+<span class="sourceLineNo">369</span> * @return a normal HBaseTestingUtility<a name="line.369"></a>
+<span class="sourceLineNo">370</span> */<a name="line.370"></a>
+<span class="sourceLineNo">371</span> @Deprecated<a name="line.371"></a>
+<span class="sourceLineNo">372</span> public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.372"></a>
+<span class="sourceLineNo">373</span> return new HBaseTestingUtility(c);<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> /**<a name="line.376"></a>
+<span class="sourceLineNo">377</span> * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.377"></a>
+<span class="sourceLineNo">378</span> */<a name="line.378"></a>
+<span class="sourceLineNo">379</span> public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.379"></a>
+<span class="sourceLineNo">380</span> closeRegionAndWAL((HRegion)r);<a name="line.380"></a>
+<span class="sourceLineNo">381</span> }<a name="line.381"></a>
+<span class="sourceLineNo">382</span><a name="line.382"></a>
+<span class="sourceLineNo">383</span> /**<a name="line.383"></a>
+<span class="sourceLineNo">384</span> * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.384"></a>
+<span class="sourceLineNo">385</span> */<a name="line.385"></a>
+<span class="sourceLineNo">386</span> public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.386"></a>
+<span class="sourceLineNo">387</span> if (r == null) return;<a name="line.387"></a>
+<span class="sourceLineNo">388</span> r.close();<a name="line.388"></a>
+<span class="sourceLineNo">389</span> if (r.getWAL() == null) return;<a name="line.389"></a>
+<span class="sourceLineNo">390</span> r.getWAL().close();<a name="line.390"></a>
+<span class="sourceLineNo">391</span> }<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> * Returns this classes's instance of {@link Configuration}. Be careful how<a name="line.394"></a>
+<span class="sourceLineNo">395</span> * you use the returned Configuration since {@link Connection} instances<a name="line.395"></a>
+<span class="sourceLineNo">396</span> * can be shared. The Map of Connections is keyed by the Configuration. If<a name="line.396"></a>
+<span class="sourceLineNo">397</span> * say, a Connection was being used against a cluster that had been shutdown,<a name="line.397"></a>
+<span class="sourceLineNo">398</span> * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.398"></a>
+<span class="sourceLineNo">399</span> * be wholesome. Rather than use the return direct, its usually best to<a name="line.399"></a>
+<span class="sourceLineNo">400</span> * make a copy and use that. Do<a name="line.400"></a>
+<span class="sourceLineNo">401</span> * <code>Configuration c = new Configuration(INSTANCE.getConfiguration());</code><a name="line.401"></a>
+<span class="sourceLineNo">402</span> * @return Instance of Configuration.<a name="line.402"></a>
+<span class="sourceLineNo">403</span> */<a name="line.403"></a>
+<span class="sourceLineNo">404</span> @Override<a name="line.404"></a>
+<span class="sourceLineNo">405</span> public Configuration getConfiguration() {<a name="line.405"></a>
+<span class="sourceLineNo">406</span> return super.getConfiguration();<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> public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.409"></a>
+<span class="sourceLineNo">410</span> this.hbaseCluster = hbaseCluster;<a name="line.410"></a>
+<span class="sourceLineNo">411</span> }<a name="line.411"></a>
+<span class="sourceLineNo">412</span><a name="line.412"></a>
+<span class="sourceLineNo">413</span> /**<a name="line.413"></a>
+<span class="sourceLineNo">414</span> * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.414"></a>
+<span class="sourceLineNo">415</span> * Give it a random name so can have many concurrent tests running if<a name="line.415"></a>
+<span class="sourceLineNo">416</span> * we need to. It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.416"></a>
+<span class="sourceLineNo">417</span> * System property, as it's what minidfscluster bases<a name="line.417"></a>
+<span class="sourceLineNo">418</span> * it data dir on. Moding a System property is not the way to do concurrent<a name="line.418"></a>
+<span class="sourceLineNo">419</span> * instances -- another instance could grab the temporary<a name="line.419"></a>
+<span class="sourceLineNo">420</span> * value unintentionally -- but not anything can do about it at moment;<a name="line.420"></a>
+<span class="sourceLineNo">421</span> * single instance only is how the minidfscluster works.<a name="line.421"></a>
+<span class="sourceLineNo">422</span> *<a name="line.422"></a>
+<span class="sourceLineNo">423</span> * We also create the underlying directory for<a name="line.423"></a>
+<span class="sourceLineNo">424</span> * hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.424"></a>
+<span class="sourceLineNo">425</span> * in the conf, and as a system property for hadoop.tmp.dir<a name="line.425"></a>
+<span class="sourceLineNo">426</span> *<a name="line.426"></a>
+<span class="sourceLineNo">427</span> * @return The calculated data test build directory, if newly-created.<a name="line.427"></a>
+<span class="sourceLineNo">428</span> */<a name="line.428"></a>
+<span class="sourceLineNo">429</span> @Override<a name="line.429"></a>
+<span class="sourceLineNo">430</span> protected Path setupDataTestDir() {<a name="line.430"></a>
+<span class="sourceLineNo">431</span> Path testPath = super.setupDataTestDir();<a name="line.431"></a>
+<span class="sourceLineNo">432</span> if (null == testPath) {<a name="line.432"></a>
+<span class="sourceLineNo">433</span> return null;<a name="line.433"></a>
+<span class="sourceLineNo">434</span> }<a name="line.434"></a>
+<span class="sourceLineNo">435</span><a name="line.435"></a>
+<span class="sourceLineNo">436</span> createSubDirAndSystemProperty(<a name="line.436"></a>
+<span class="sourceLineNo">437</span> "hadoop.log.dir",<a name="line.437"></a>
+<span class="sourceLineNo">438</span> testPath, "hadoop-log-dir");<a name="line.438"></a>
+<span class="sourceLineNo">439</span><a name="line.439"></a>
+<span class="sourceLineNo">440</span> // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.440"></a>
+<span class="sourceLineNo">441</span> // we want our own value to ensure uniqueness on the same machine<a name="line.441"></a>
+<span class="sourceLineNo">442</span> createSubDirAndSystemProperty(<a name="line.442"></a>
+<span class="sourceLineNo">443</span> "hadoop.tmp.dir",<a name="line.443"></a>
+<span class="sourceLineNo">444</span> testPath, "hadoop-tmp-dir");<a name="line.444"></a>
+<span class="sourceLineNo">445</span><a name="line.445"></a>
+<span class="sourceLineNo">446</span> // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.446"></a>
+<span class="sourceLineNo">447</span> createSubDir(<a name="line.447"></a>
+<span class="sourceLineNo">448</span> "mapreduce.cluster.local.dir",<a name="line.448"></a>
+<span class="sourceLineNo">449</span> testPath, "mapred-local-dir");<a name="line.449"></a>
+<span class="sourceLineNo">450</span><a name="line.450"></a>
+<span class="sourceLineNo">451</span> return testPath;<a name="line.451"></a>
+<span class="sourceLineNo">452</span> }<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span> private void createSubDirAndSystemProperty(<a name="line.454"></a>
+<span class="sourceLineNo">455</span> String propertyName, Path parent, String subDirName){<a name="line.455"></a>
+<span class="sourceLineNo">456</span><a name="line.456"></a>
+<span class="sourceLineNo">457</span> String sysValue = System.getProperty(propertyName);<a name="line.457"></a>
+<span class="sourceLineNo">458</span><a name="line.458"></a>
+<span class="sourceLineNo">459</span> if (sysValue != null) {<a name="line.459"></a>
+<span class="sourceLineNo">460</span> // There is already a value set. So we do nothing but hope<a name="line.460"></a>
+<span class="sourceLineNo">461</span> // that there will be no conflicts<a name="line.461"></a>
+<span class="sourceLineNo">462</span> LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.462"></a>
+<span class="sourceLineNo">463</span> sysValue + " so I do NOT create it in " + parent);<a name="line.463"></a>
+<span class="sourceLineNo">464</span> String confValue = conf.get(propertyName);<a name="line.464"></a>
+<span class="sourceLineNo">465</span> if (confValue != null && !confValue.endsWith(sysValue)){<a name="line.465"></a>
+<span class="sourceLineNo">466</span> LOG.warn(<a name="line.466"></a>
+<span class="sourceLineNo">467</span> propertyName + " property value differs in configuration and system: "+<a name="line.467"></a>
+<span class="sourceLineNo">468</span> "Configuration="+confValue+" while System="+sysValue+<a name="line.468"></a>
+<span class="sourceLineNo">469</span> " Erasing configuration value by system value."<a name="line.469"></a>
+<span class="sourceLineNo">470</span> );<a name="line.470"></a>
+<span class="sourceLineNo">471</span> }<a name="line.471"></a>
+<span class="sourceLineNo">472</span> conf.set(propertyName, sysValue);<a name="line.472"></a>
+<span class="sourceLineNo">473</span> } else {<a name="line.473"></a>
+<span class="sourceLineNo">474</span> // Ok, it's not set, so we create it as a subdirectory<a name="line.474"></a>
+<span class="sourceLineNo">475</span> createSubDir(propertyName, parent, subDirName);<a name="line.475"></a>
+<span class="sourceLineNo">476</span> System.setProperty(propertyName, conf.get(propertyName));<a name="line.476"></a>
+<span class="sourceLineNo">477</span> }<a name="line.477"></a>
+<span class="sourceLineNo">478</span> }<a name="line.478"></a>
+<span class="sourceLineNo">479</span><a name="line.479"></a>
+<span class="sourceLineNo">480</span> /**<a name="line.480"></a>
+<span class="sourceLineNo">481</span> * @return Where to write test data on the test filesystem; Returns working directory<a name="line.481"></a>
+<span class="sourceLineNo">482</span> * for the test filesystem by default<a name="line.482"></a>
+<span class="sourceLineNo">483</span> * @see #setupDataTestDirOnTestFS()<a name="line.483"></a>
+<span class="sourceLineNo">484</span> * @see #getTestFileSystem()<a name="line.484"></a>
+<span class="sourceLineNo">485</span> */<a name="line.485"></a>
+<span class="sourceLineNo">486</span> private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.486"></a>
+<span class="sourceLineNo">487</span> FileSystem fs = getTestFileSystem();<a name="line.487"></a>
+<span class="sourceLineNo">488</span> return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.488"></a>
+<span class="sourceLineNo">489</span> }<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> * @return META table descriptor<a name="line.492"></a>
+<span class="sourceLineNo">493</span> * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.493"></a>
+<span class="sourceLineNo">494</span> * use {@link #getMetaTableDescriptorBuilder()}<a name="line.494"></a>
+<span class="sourceLineNo">495</span> */<a name="line.495"></a>
+<span class="sourceLineNo">496</span> @Deprecated<a name="line.496"></a>
+<span class="sourceLineNo">497</span> public HTableDescriptor getMetaTableDescriptor() {<a name="line.497"></a>
+<span class="sourceLineNo">498</span> return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.498"></a>
+<span class="sourceLineNo">499</span> }<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> * @return META table descriptor<a name="line.502"></a>
+<span class="sourceLineNo">503</span> */<a name="line.503"></a>
+<span class="sourceLineNo">504</span> public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.504"></a>
+<span class="sourceLineNo">505</span> try {<a name="line.505"></a>
+<span class="sourceLineNo">506</span> return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.506"></a>
+<span class="sourceLineNo">507</span> } catch (IOException e) {<a name="line.507"></a>
+<span class="sourceLineNo">508</span> throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.508"></a>
+<span class="sourceLineNo">509</span> }<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> /**<a name="line.512"></a>
+<span class="sourceLineNo">513</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.513"></a>
+<span class="sourceLineNo">514</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.514"></a>
+<span class="sourceLineNo">515</span> * if the test relies on it.<a name="line.515"></a>
+<span class="sourceLineNo">516</span> * @return a unique path in the test filesystem<a name="line.516"></a>
+<span class="sourceLineNo">517</span> */<a name="line.517"></a>
+<span class="sourceLineNo">518</span> public Path getDataTestDirOnTestFS() throws IOException {<a name="line.518"></a>
+<span class="sourceLineNo">519</span> if (dataTestDirOnTestFS == null) {<a name="line.519"></a>
+<span class="sourceLineNo">520</span> setupDataTestDirOnTestFS();<a name="line.520"></a>
+<span class="sourceLineNo">521</span> }<a name="line.521"></a>
+<span class="sourceLineNo">522</span><a name="line.522"></a>
+<span class="sourceLineNo">523</span> return dataTestDirOnTestFS;<a name="line.523"></a>
+<span class="sourceLineNo">524</span> }<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> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.527"></a>
+<span class="sourceLineNo">528</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.528"></a>
+<span class="sourceLineNo">529</span> * if the test relies on it.<a name="line.529"></a>
+<span class="sourceLineNo">530</span> * @return a unique path in the test filesystem<a name="line.530"></a>
+<span class="sourceLineNo">531</span> * @param subdirName name of the subdir to create under the base test dir<a name="line.531"></a>
+<span class="sourceLineNo">532</span> */<a name="line.532"></a>
+<span class="sourceLineNo">533</span> public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.533"></a>
+<span class="sourceLineNo">534</span> return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.534"></a>
+<span class="sourceLineNo">535</span> }<a name="line.535"></a>
+<span class="sourceLineNo">536</span><a name="line.53
<TRUNCATED>
[05/10] hbase-site git commit: Published site at
e8df847d4ed16b8432221d28bcfc00e1621df586.
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
index 49c6237..9f9d0e1 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
@@ -124,7 +124,7 @@ var activeTableTab = "activeTableTab";
<hr>
<br>
<pre>@InterfaceAudience.Public
-public class <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.178">HBaseTestingUtility</a>
+public class <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.177">HBaseTestingUtility</a>
extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseZKTestingUtility</a></pre>
<div class="block">Facility for testing HBase. Replacement for
old HBaseTestCase and HBaseClusterTestCase functionality.
@@ -140,8 +140,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
region-server-port are overridden such that a random port will be assigned (thus
avoiding port contention if another local HBase instance is already running).
<p>To preserve test data directories, pass the system property "hbase.testing.preserve.testdir"
- setting it to true.
- For triggering test.</div>
+ setting it to true.</div>
</li>
</ul>
</div>
@@ -2019,7 +2018,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<li class="blockList">
<h4>TEST_DIRECTORY_KEY</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-private static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.187">TEST_DIRECTORY_KEY</a></pre>
+private static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.186">TEST_DIRECTORY_KEY</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">can be used only with mini dfs</span></div>
<div class="block">System property key to get test directory value. Name is as it is because mini dfs has
hard-codings to put test data here. It should NOT be used directly in HBase, as it's a property
@@ -2036,7 +2035,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>REGIONS_PER_SERVER_KEY</h4>
-<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.189">REGIONS_PER_SERVER_KEY</a></pre>
+<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.188">REGIONS_PER_SERVER_KEY</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.REGIONS_PER_SERVER_KEY">Constant Field Values</a></dd>
@@ -2049,7 +2048,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_REGIONS_PER_SERVER</h4>
-<pre>public static final int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.194">DEFAULT_REGIONS_PER_SERVER</a></pre>
+<pre>public static final int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.193">DEFAULT_REGIONS_PER_SERVER</a></pre>
<div class="block">The default number of regions per regionserver when creating a pre-split
table.</div>
<dl>
@@ -2064,7 +2063,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>PRESPLIT_TEST_TABLE_KEY</h4>
-<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.197">PRESPLIT_TEST_TABLE_KEY</a></pre>
+<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.196">PRESPLIT_TEST_TABLE_KEY</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.PRESPLIT_TEST_TABLE_KEY">Constant Field Values</a></dd>
@@ -2077,7 +2076,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>PRESPLIT_TEST_TABLE</h4>
-<pre>public static final boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.198">PRESPLIT_TEST_TABLE</a></pre>
+<pre>public static final boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.197">PRESPLIT_TEST_TABLE</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.PRESPLIT_TEST_TABLE">Constant Field Values</a></dd>
@@ -2090,7 +2089,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>dfsCluster</h4>
-<pre>private org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.200">dfsCluster</a></pre>
+<pre>private org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.199">dfsCluster</a></pre>
</li>
</ul>
<a name="hbaseCluster">
@@ -2099,7 +2098,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>hbaseCluster</h4>
-<pre>private volatile <a href="../../../../org/apache/hadoop/hbase/HBaseCluster.html" title="class in org.apache.hadoop.hbase">HBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.202">hbaseCluster</a></pre>
+<pre>private volatile <a href="../../../../org/apache/hadoop/hbase/HBaseCluster.html" title="class in org.apache.hadoop.hbase">HBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.201">hbaseCluster</a></pre>
</li>
</ul>
<a name="mrCluster">
@@ -2108,7 +2107,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>mrCluster</h4>
-<pre>private org.apache.hadoop.mapred.MiniMRCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.203">mrCluster</a></pre>
+<pre>private org.apache.hadoop.mapred.MiniMRCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.202">mrCluster</a></pre>
</li>
</ul>
<a name="miniClusterRunning">
@@ -2117,7 +2116,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>miniClusterRunning</h4>
-<pre>private volatile boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.206">miniClusterRunning</a></pre>
+<pre>private volatile boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.205">miniClusterRunning</a></pre>
<div class="block">If there is a mini cluster running for this testing utility instance.</div>
</li>
</ul>
@@ -2127,7 +2126,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>hadoopLogDir</h4>
-<pre>private <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.208">hadoopLogDir</a></pre>
+<pre>private <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.207">hadoopLogDir</a></pre>
</li>
</ul>
<a name="dataTestDirOnTestFS">
@@ -2136,7 +2135,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>dataTestDirOnTestFS</h4>
-<pre>private org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.212">dataTestDirOnTestFS</a></pre>
+<pre>private org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.211">dataTestDirOnTestFS</a></pre>
<div class="block">Directory on test filesystem where we put the data for this instance of
HBaseTestingUtility</div>
</li>
@@ -2147,7 +2146,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>connection</h4>
-<pre>private volatile org.apache.hadoop.hbase.client.Connection <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.217">connection</a></pre>
+<pre>private volatile org.apache.hadoop.hbase.client.Connection <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.216">connection</a></pre>
<div class="block">Shared cluster connection.</div>
</li>
</ul>
@@ -2157,7 +2156,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>FS_URI</h4>
-<pre>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.220">FS_URI</a></pre>
+<pre>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.219">FS_URI</a></pre>
<div class="block">Filesystem URI used for map-reduce mini-cluster setup</div>
</li>
</ul>
@@ -2167,7 +2166,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>MEMSTORETS_TAGS_PARAMETRIZED</h4>
-<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.223">MEMSTORETS_TAGS_PARAMETRIZED</a></pre>
+<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.222">MEMSTORETS_TAGS_PARAMETRIZED</a></pre>
<div class="block">This is for unit tests parameterized with a single boolean.</div>
</li>
</ul>
@@ -2177,7 +2176,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>BLOOM_AND_COMPRESSION_COMBINATIONS</h4>
-<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.299">BLOOM_AND_COMPRESSION_COMBINATIONS</a></pre>
+<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.298">BLOOM_AND_COMPRESSION_COMBINATIONS</a></pre>
</li>
</ul>
<a name="fam1">
@@ -2186,7 +2185,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>fam1</h4>
-<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1827">fam1</a></pre>
+<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1826">fam1</a></pre>
</li>
</ul>
<a name="fam2">
@@ -2195,7 +2194,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>fam2</h4>
-<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1828">fam2</a></pre>
+<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1827">fam2</a></pre>
</li>
</ul>
<a name="fam3">
@@ -2204,7 +2203,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>fam3</h4>
-<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1829">fam3</a></pre>
+<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1828">fam3</a></pre>
</li>
</ul>
<a name="COLUMNS">
@@ -2213,7 +2212,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>COLUMNS</h4>
-<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1830">COLUMNS</a></pre>
+<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1829">COLUMNS</a></pre>
</li>
</ul>
<a name="MAXVERSIONS">
@@ -2222,7 +2221,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>MAXVERSIONS</h4>
-<pre>private static final int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1831">MAXVERSIONS</a></pre>
+<pre>private static final int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1830">MAXVERSIONS</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.MAXVERSIONS">Constant Field Values</a></dd>
@@ -2235,7 +2234,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>FIRST_CHAR</h4>
-<pre>public static final char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1833">FIRST_CHAR</a></pre>
+<pre>public static final char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1832">FIRST_CHAR</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.FIRST_CHAR">Constant Field Values</a></dd>
@@ -2248,7 +2247,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>LAST_CHAR</h4>
-<pre>public static final char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1834">LAST_CHAR</a></pre>
+<pre>public static final char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1833">LAST_CHAR</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.LAST_CHAR">Constant Field Values</a></dd>
@@ -2261,7 +2260,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>START_KEY_BYTES</h4>
-<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1835">START_KEY_BYTES</a></pre>
+<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1834">START_KEY_BYTES</a></pre>
</li>
</ul>
<a name="START_KEY">
@@ -2270,7 +2269,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>START_KEY</h4>
-<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1836">START_KEY</a></pre>
+<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1835">START_KEY</a></pre>
</li>
</ul>
<a name="ROWS">
@@ -2279,7 +2278,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>ROWS</h4>
-<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2389">ROWS</a></pre>
+<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2388">ROWS</a></pre>
<div class="block">All the row values for the data loaded by <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#loadTable-org.apache.hadoop.hbase.client.Table-byte:A-"><code>loadTable(Table, byte[])</code></a></div>
</li>
</ul>
@@ -2289,7 +2288,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>KEYS</h4>
-<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2404">KEYS</a></pre>
+<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2403">KEYS</a></pre>
</li>
</ul>
<a name="KEYS_FOR_HBA_CREATE_TABLE">
@@ -2298,7 +2297,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>KEYS_FOR_HBA_CREATE_TABLE</h4>
-<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2416">KEYS_FOR_HBA_CREATE_TABLE</a></pre>
+<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2415">KEYS_FOR_HBA_CREATE_TABLE</a></pre>
</li>
</ul>
<a name="hbaseAdmin">
@@ -2307,7 +2306,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>hbaseAdmin</h4>
-<pre>private org.apache.hadoop.hbase.client.HBaseAdmin <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2968">hbaseAdmin</a></pre>
+<pre>private org.apache.hadoop.hbase.client.HBaseAdmin <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2967">hbaseAdmin</a></pre>
</li>
</ul>
<a name="random">
@@ -2316,7 +2315,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>random</h4>
-<pre>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.3713">random</a></pre>
+<pre>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Random.html?is-external=true" title="class or interface in java.util">Random</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.3712">random</a></pre>
</li>
</ul>
<a name="portAllocator">
@@ -2325,7 +2324,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockListLast">
<li class="blockList">
<h4>portAllocator</h4>
-<pre>private static final <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility.PortAllocator</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.3715">portAllocator</a></pre>
+<pre>private static final <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility.PortAllocator</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.3714">portAllocator</a></pre>
</li>
</ul>
</li>
@@ -2342,7 +2341,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>HBaseTestingUtility</h4>
-<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.315">HBaseTestingUtility</a>()</pre>
+<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.314">HBaseTestingUtility</a>()</pre>
<div class="block"><p>Create an HBaseTestingUtility using a default configuration.
<p>Initially, all tmp files are written to a local test data directory.
@@ -2361,7 +2360,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockListLast">
<li class="blockList">
<h4>HBaseTestingUtility</h4>
-<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.333">HBaseTestingUtility</a>(@Nullable
+<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.332">HBaseTestingUtility</a>(@Nullable
org.apache.hadoop.conf.Configuration conf)</pre>
<div class="block"><p>Create an HBaseTestingUtility using a given configuration.
@@ -2393,7 +2392,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>available</h4>
-<pre>public static boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.231">available</a>(int port)</pre>
+<pre>public static boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.230">available</a>(int port)</pre>
<div class="block">Checks to see if a specific port is available.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
@@ -2409,7 +2408,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>bloomAndCompressionCombinations</h4>
-<pre>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.263">bloomAndCompressionCombinations</a>()</pre>
+<pre>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.262">bloomAndCompressionCombinations</a>()</pre>
<div class="block">Create all combinations of Bloom filters and compression algorithms for
testing.</div>
</li>
@@ -2420,7 +2419,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>memStoreTSAndTagsCombination</h4>
-<pre>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.277">memStoreTSAndTagsCombination</a>()</pre>
+<pre>private static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.276">memStoreTSAndTagsCombination</a>()</pre>
<div class="block">Create combination of memstoreTS and tags</div>
</li>
</ul>
@@ -2430,7 +2429,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<ul class="blockList">
<li class="blockList">
<h4>memStoreTSTagsAndOffheapCombination</h4>
-<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.286">memStoreTSTagsAndOffheapCombination</a>()</pre>
+<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.285">memStoreTSTagsAndOffheapCombination</a>()</pre>
</li>
</ul>
<a name="createLocalHTU--">
@@ -2440,7 +2439,7 @@ private static final <a href="https://docs.oracle.com/javase/8/docs/api/jav
<li class="blockList">
<h4>createLocalHTU</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.364">createLocalHTU</a>()</pre>
+public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.363">createLocalHTU</a>()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#HBaseTestingUtility--"><code>HBaseTestingUtility()</code></a> instead</span></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -2455,7 +2454,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<li class="blockList">
<h4>createLocalHTU</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.373">createLocalHTU</a>(org.apache.hadoop.conf.Configuration c)</pre>
+public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.372">createLocalHTU</a>(org.apache.hadoop.conf.Configuration c)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#HBaseTestingUtility-org.apache.hadoop.conf.Configuration-"><code>HBaseTestingUtility(Configuration)</code></a> instead</span></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -2469,7 +2468,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>closeRegionAndWAL</h4>
-<pre>public static void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.380">closeRegionAndWAL</a>(org.apache.hadoop.hbase.regionserver.Region r)
+<pre>public static void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.379">closeRegionAndWAL</a>(org.apache.hadoop.hbase.regionserver.Region r)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Close both the region <code>r</code> and it's underlying WAL. For use in tests.</div>
<dl>
@@ -2484,7 +2483,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>closeRegionAndWAL</h4>
-<pre>public static void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.387">closeRegionAndWAL</a>(org.apache.hadoop.hbase.regionserver.HRegion r)
+<pre>public static void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.386">closeRegionAndWAL</a>(org.apache.hadoop.hbase.regionserver.HRegion r)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Close both the HRegion <code>r</code> and it's underlying WAL. For use in tests.</div>
<dl>
@@ -2499,7 +2498,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>getConfiguration</h4>
-<pre>public org.apache.hadoop.conf.Configuration <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.406">getConfiguration</a>()</pre>
+<pre>public org.apache.hadoop.conf.Configuration <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.405">getConfiguration</a>()</pre>
<div class="block">Returns this classes's instance of <code>Configuration</code>. Be careful how
you use the returned Configuration since <code>Connection</code> instances
can be shared. The Map of Connections is keyed by the Configuration. If
@@ -2522,7 +2521,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>setHBaseCluster</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.410">setHBaseCluster</a>(<a href="../../../../org/apache/hadoop/hbase/HBaseCluster.html" title="class in org.apache.hadoop.hbase">HBaseCluster</a> hbaseCluster)</pre>
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.409">setHBaseCluster</a>(<a href="../../../../org/apache/hadoop/hbase/HBaseCluster.html" title="class in org.apache.hadoop.hbase">HBaseCluster</a> hbaseCluster)</pre>
</li>
</ul>
<a name="setupDataTestDir--">
@@ -2531,7 +2530,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>setupDataTestDir</h4>
-<pre>protected org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.431">setupDataTestDir</a>()</pre>
+<pre>protected org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.430">setupDataTestDir</a>()</pre>
<div class="block">Home our data in a dir under <a href="../../../../org/apache/hadoop/hbase/HBaseCommonTestingUtility.html#DEFAULT_BASE_TEST_DIRECTORY"><code>HBaseCommonTestingUtility.DEFAULT_BASE_TEST_DIRECTORY</code></a>.
Give it a random name so can have many concurrent tests running if
we need to. It needs to amend the <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#TEST_DIRECTORY_KEY"><code>TEST_DIRECTORY_KEY</code></a>
@@ -2558,7 +2557,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>createSubDirAndSystemProperty</h4>
-<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.455">createSubDirAndSystemProperty</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName,
+<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.454">createSubDirAndSystemProperty</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName,
org.apache.hadoop.fs.Path parent,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> subDirName)</pre>
</li>
@@ -2569,7 +2568,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>getBaseTestDirOnTestFS</h4>
-<pre>private org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.487">getBaseTestDirOnTestFS</a>()
+<pre>private org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.486">getBaseTestDirOnTestFS</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -2590,7 +2589,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<li class="blockList">
<h4>getMetaTableDescriptor</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.498">getMetaTableDescriptor</a>()</pre>
+public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.497">getMetaTableDescriptor</a>()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">since 2.0 version and will be removed in 3.0 version.
use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#getMetaTableDescriptorBuilder--"><code>getMetaTableDescriptorBuilder()</code></a></span></div>
<dl>
@@ -2605,7 +2604,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>getMetaTableDescriptorBuilder</h4>
-<pre>public org.apache.hadoop.hbase.client.TableDescriptorBuilder <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.505">getMetaTableDescriptorBuilder</a>()</pre>
+<pre>public org.apache.hadoop.hbase.client.TableDescriptorBuilder <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.504">getMetaTableDescriptorBuilder</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>META table descriptor</dd>
@@ -2618,7 +2617,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>getDataTestDirOnTestFS</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.519">getDataTestDirOnTestFS</a>()
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.518">getDataTestDirOnTestFS</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a Path in the test filesystem, obtained from <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#getTestFileSystem--"><code>getTestFileSystem()</code></a>
to write temporary test data. Call this method after setting up the mini dfs cluster
@@ -2637,7 +2636,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>getDataTestDirOnTestFS</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.534">getDataTestDirOnTestFS</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> subdirName)
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.533">getDataTestDirOnTestFS</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> subdirName)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a Path in the test filesystem, obtained from <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#getTestFileSystem--"><code>getTestFileSystem()</code></a>
to write temporary test data. Call this method after setting up the mini dfs cluster
@@ -2658,7 +2657,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>setupDataTestDirOnTestFS</h4>
-<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.542">setupDataTestDirOnTestFS</a>()
+<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.541">setupDataTestDirOnTestFS</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sets up a path in test filesystem to be used by tests.
Creates a new directory if not already setup.</div>
@@ -2674,7 +2673,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>getNewDataTestDirOnTestFS</h4>
-<pre>private org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.554">getNewDataTestDirOnTestFS</a>()
+<pre>private org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.553">getNewDataTestDirOnTestFS</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Sets up a new path in test filesystem to be used by tests.</div>
<dl>
@@ -2689,7 +2688,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>cleanupDataTestDirOnTestFS</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.579">cleanupDataTestDirOnTestFS</a>()
+<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.578">cleanupDataTestDirOnTestFS</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Cleans the test data directory on the test filesystem.</div>
<dl>
@@ -2706,7 +2705,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>cleanupDataTestDirOnTestFS</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.591">cleanupDataTestDirOnTestFS</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> subdirName)
+<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.590">cleanupDataTestDirOnTestFS</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> subdirName)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Cleans a subdirectory under the test data directory on the test filesystem.</div>
<dl>
@@ -2723,7 +2722,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>startMiniDFSCluster</h4>
-<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.603">startMiniDFSCluster</a>(int servers)
+<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.602">startMiniDFSCluster</a>(int servers)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start a minidfscluster.</div>
<dl>
@@ -2744,7 +2743,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>startMiniDFSCluster</h4>
-<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.618">startMiniDFSCluster</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] hosts)
+<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.617">startMiniDFSCluster</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] hosts)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start a minidfscluster.
This is useful if you want to run datanode on distinct hosts for things
@@ -2769,7 +2768,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>startMiniDFSCluster</h4>
-<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.636">startMiniDFSCluster</a>(int servers,
+<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.635">startMiniDFSCluster</a>(int servers,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] hosts)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start a minidfscluster.
@@ -2793,7 +2792,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>setFs</h4>
-<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.641">setFs</a>()
+<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.640">setFs</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
@@ -2807,7 +2806,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>startMiniDFSCluster</h4>
-<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.653">startMiniDFSCluster</a>(int servers,
+<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.652">startMiniDFSCluster</a>(int servers,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] racks,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] hosts)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
@@ -2823,7 +2822,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>startMiniDFSClusterForTestWAL</h4>
-<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.684">startMiniDFSClusterForTestWAL</a>(int namenodePort)
+<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.683">startMiniDFSClusterForTestWAL</a>(int namenodePort)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
@@ -2837,7 +2836,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>createDirsAndSetProperties</h4>
-<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.692">createDirsAndSetProperties</a>()
+<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.691">createDirsAndSetProperties</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">This is used before starting HDFS and map-reduce mini-clusters</div>
<dl>
@@ -2852,7 +2851,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>isReadShortCircuitOn</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.720">isReadShortCircuitOn</a>()</pre>
+<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.719">isReadShortCircuitOn</a>()</pre>
<div class="block">Get the HBase setting for dfs.client.read.shortcircuit from the conf or a system property.
This allows to specify this parameter on the command line.
If not set, default is true.</div>
@@ -2864,7 +2863,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>enableShortCircuit</h4>
-<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.733">enableShortCircuit</a>()</pre>
+<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.732">enableShortCircuit</a>()</pre>
<div class="block">Enable the short circuit read, unless configured differently.
Set both HBase and HDFS settings, including skipping the hdfs checksum checks.</div>
</li>
@@ -2875,7 +2874,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>createDirAndSetProperty</h4>
-<pre>private <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.748">createDirAndSetProperty</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> relPath,
+<pre>private <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.747">createDirAndSetProperty</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> relPath,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property)</pre>
</li>
</ul>
@@ -2885,7 +2884,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<ul class="blockList">
<li class="blockList">
<h4>shutdownMiniDFSCluster</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.762">shutdownMiniDFSCluster</a>()
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.761">shutdownMiniDFSCluster</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Shuts down instance created by call to <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#startMiniDFSCluster-int-"><code>startMiniDFSCluster(int)</code></a>
or does nothing.</div>
@@ -2902,7 +2901,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.781">startMiniCluster</a>(boolean createWALDir)
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.780">startMiniCluster</a>(boolean createWALDir)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#startMiniCluster-org.apache.hadoop.hbase.StartMiniClusterOption-"><code>startMiniCluster(StartMiniClusterOption)</code></a> instead.</span></div>
<div class="block">Start up a minicluster of hbase, dfs, and zookeeper where WAL's walDir is created separately.
@@ -2926,7 +2925,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.797">startMiniCluster</a>(int numSlaves,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.796">startMiniCluster</a>(int numSlaves,
boolean createRootDir)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#startMiniCluster-org.apache.hadoop.hbase.StartMiniClusterOption-"><code>startMiniCluster(StartMiniClusterOption)</code></a> instead.</span></div>
@@ -2952,7 +2951,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.815">startMiniCluster</a>(int numSlaves,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.814">startMiniCluster</a>(int numSlaves,
boolean createRootDir,
boolean createWALDir)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
@@ -2980,7 +2979,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.834">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.833">startMiniCluster</a>(int numMasters,
int numSlaves,
boolean createRootDir)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
@@ -3008,7 +3007,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.852">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.851">startMiniCluster</a>(int numMasters,
int numSlaves)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#startMiniCluster-org.apache.hadoop.hbase.StartMiniClusterOption-"><code>startMiniCluster(StartMiniClusterOption)</code></a> instead.</span></div>
@@ -3034,7 +3033,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.871">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.870">startMiniCluster</a>(int numMasters,
int numSlaves,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] dataNodeHosts,
boolean createRootDir)
@@ -3065,7 +3064,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.891">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.890">startMiniCluster</a>(int numMasters,
int numSlaves,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] dataNodeHosts)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
@@ -3094,7 +3093,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.910">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.909">startMiniCluster</a>(int numMasters,
int numRegionServers,
int numDataNodes)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
@@ -3122,7 +3121,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.932">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.931">startMiniCluster</a>(int numMasters,
int numSlaves,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] dataNodeHosts,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends org.apache.hadoop.hbase.master.HMaster> masterClass,
@@ -3155,7 +3154,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.959">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.958">startMiniCluster</a>(int numMasters,
int numRegionServers,
int numDataNodes,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] dataNodeHosts,
@@ -3190,7 +3189,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.988">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.987">startMiniCluster</a>(int numMasters,
int numRegionServers,
int numDataNodes,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] dataNodeHosts,
@@ -3228,7 +3227,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>startMiniCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1008">startMiniCluster</a>(int numSlaves)
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1007">startMiniCluster</a>(int numSlaves)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start up a minicluster of hbase, dfs and zookeeper clusters with given slave node number.
All other options will use default values, defined in <a href="../../../../org/apache/hadoop/hbase/StartMiniClusterOption.Builder.html" title="class in org.apache.hadoop.hbase"><code>StartMiniClusterOption.Builder</code></a>.</div>
@@ -3249,7 +3248,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>startMiniCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1020">startMiniCluster</a>()
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1019">startMiniCluster</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start up a minicluster of hbase, dfs and zookeeper all using default options.
Option default value can be found in <a href="../../../../org/apache/hadoop/hbase/StartMiniClusterOption.Builder.html" title="class in org.apache.hadoop.hbase"><code>StartMiniClusterOption.Builder</code></a>.</div>
@@ -3268,7 +3267,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>startMiniCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1030">startMiniCluster</a>(<a href="../../../../org/apache/hadoop/hbase/StartMiniClusterOption.html" title="class in org.apache.hadoop.hbase">StartMiniClusterOption</a> option)
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1029">startMiniCluster</a>(<a href="../../../../org/apache/hadoop/hbase/StartMiniClusterOption.html" title="class in org.apache.hadoop.hbase">StartMiniClusterOption</a> option)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start up a mini cluster of hbase, optionally dfs and zookeeper if needed.
It modifies Configuration. It homes the cluster data directory under a random
@@ -3287,7 +3286,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>startMiniHBaseCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1068">startMiniHBaseCluster</a>(<a href="../../../../org/apache/hadoop/hbase/StartMiniClusterOption.html" title="class in org.apache.hadoop.hbase">StartMiniClusterOption</a> option)
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1067">startMiniHBaseCluster</a>(<a href="../../../../org/apache/hadoop/hbase/StartMiniClusterOption.html" title="class in org.apache.hadoop.hbase">StartMiniClusterOption</a> option)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
<div class="block">Starts up mini hbase cluster.
@@ -3311,7 +3310,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>startMiniHBaseCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1114">startMiniHBaseCluster</a>()
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1113">startMiniHBaseCluster</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
<div class="block">Starts up mini hbase cluster using default options.
@@ -3333,7 +3332,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniHBaseCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1129">startMiniHBaseCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1128">startMiniHBaseCluster</a>(int numMasters,
int numRegionServers)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
@@ -3362,7 +3361,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniHBaseCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1148">startMiniHBaseCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1147">startMiniHBaseCluster</a>(int numMasters,
int numRegionServers,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> rsPorts)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
@@ -3393,7 +3392,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniHBaseCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1171">startMiniHBaseCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1170">startMiniHBaseCluster</a>(int numMasters,
int numRegionServers,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> rsPorts,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends org.apache.hadoop.hbase.master.HMaster> masterClass,
@@ -3431,7 +3430,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>restartHBaseCluster</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1187">restartHBaseCluster</a>(int servers)
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1186">restartHBaseCluster</a>(int servers)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
<div class="block">Starts the hbase cluster up again after shutting it down previously in a
@@ -3451,7 +3450,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>getMiniHBaseCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1215">getMiniHBaseCluster</a>()</pre>
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1214">getMiniHBaseCluster</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Current mini hbase cluster. Only has something in it after a call
@@ -3467,7 +3466,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>shutdownMiniCluster</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1228">shutdownMiniCluster</a>()
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1227">shutdownMiniCluster</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Stops mini hbase, zk, and hdfs clusters.</div>
<dl>
@@ -3485,7 +3484,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>shutdownMiniHBaseCluster</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1242">shutdownMiniHBaseCluster</a>()
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1241">shutdownMiniHBaseCluster</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Shutdown HBase mini cluster. Does not shutdown zk or dfs if running.</div>
<dl>
@@ -3500,7 +3499,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>getDefaultRootDirPath</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1274">getDefaultRootDirPath</a>(boolean create)
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1273">getDefaultRootDirPath</a>(boolean create)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns the path to the default root dir the minicluster uses. If <code>create</code>
is true, a new root directory path is fetched irrespective of whether it has been fetched
@@ -3520,7 +3519,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>getDefaultRootDirPath</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1289">getDefaultRootDirPath</a>()
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1288">getDefaultRootDirPath</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Same as {<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#getDefaultRootDirPath-boolean-"><code>getDefaultRootDirPath(boolean create)</code></a>
except that <code>create</code> flag is false.
@@ -3539,7 +3538,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createRootDir</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1305">createRootDir</a>(boolean create)
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1304">createRootDir</a>(boolean create)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Creates an hbase rootdir in user home directory. Also creates hbase
version file. Normally you won't make use of this method. Root hbasedir
@@ -3564,7 +3563,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createRootDir</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1320">createRootDir</a>()
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1319">createRootDir</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#createRootDir-boolean-"><code>createRootDir(boolean create)</code></a>
except that <code>create</code> flag is false.</div>
@@ -3582,7 +3581,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createWALRootDir</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1333">createWALRootDir</a>()
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1332">createWALRootDir</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Creates a hbase walDir in the user's home directory.
Normally you won't make use of this method. Root hbaseWALDir
@@ -3602,7 +3601,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>setHBaseFsTmpDir</h4>
-<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1341">setHBaseFsTmpDir</a>()
+<pre>private void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1340">setHBaseFsTmpDir</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
@@ -3616,7 +3615,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>flush</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hba
<TRUNCATED>
[07/10] hbase-site git commit: Published site at
e8df847d4ed16b8432221d28bcfc00e1621df586.
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/testapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
----------------------------------------------------------------------
diff --git a/testapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html b/testapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
index 65a28b9..0c894de 100644
--- a/testapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
+++ b/testapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
@@ -179,4146 +179,4145 @@
<span class="sourceLineNo">171</span> * avoiding port contention if another local HBase instance is already running).<a name="line.171"></a>
<span class="sourceLineNo">172</span> * <p>To preserve test data directories, pass the system property "hbase.testing.preserve.testdir"<a name="line.172"></a>
<span class="sourceLineNo">173</span> * setting it to true.<a name="line.173"></a>
-<span class="sourceLineNo">174</span> * For triggering test.<a name="line.174"></a>
-<span class="sourceLineNo">175</span> */<a name="line.175"></a>
-<span class="sourceLineNo">176</span>@InterfaceAudience.Public<a name="line.176"></a>
-<span class="sourceLineNo">177</span>@SuppressWarnings("deprecation")<a name="line.177"></a>
-<span class="sourceLineNo">178</span>public class HBaseTestingUtility extends HBaseZKTestingUtility {<a name="line.178"></a>
-<span class="sourceLineNo">179</span><a name="line.179"></a>
-<span class="sourceLineNo">180</span> /**<a name="line.180"></a>
-<span class="sourceLineNo">181</span> * System property key to get test directory value. Name is as it is because mini dfs has<a name="line.181"></a>
-<span class="sourceLineNo">182</span> * hard-codings to put test data here. It should NOT be used directly in HBase, as it's a property<a name="line.182"></a>
-<span class="sourceLineNo">183</span> * used in mini dfs.<a name="line.183"></a>
-<span class="sourceLineNo">184</span> * @deprecated can be used only with mini dfs<a name="line.184"></a>
-<span class="sourceLineNo">185</span> */<a name="line.185"></a>
-<span class="sourceLineNo">186</span> @Deprecated<a name="line.186"></a>
-<span class="sourceLineNo">187</span> private static final String TEST_DIRECTORY_KEY = "test.build.data";<a name="line.187"></a>
-<span class="sourceLineNo">188</span><a name="line.188"></a>
-<span class="sourceLineNo">189</span> public static final String REGIONS_PER_SERVER_KEY = "hbase.test.regions-per-server";<a name="line.189"></a>
-<span class="sourceLineNo">190</span> /**<a name="line.190"></a>
-<span class="sourceLineNo">191</span> * The default number of regions per regionserver when creating a pre-split<a name="line.191"></a>
-<span class="sourceLineNo">192</span> * table.<a name="line.192"></a>
-<span class="sourceLineNo">193</span> */<a name="line.193"></a>
-<span class="sourceLineNo">194</span> public static final int DEFAULT_REGIONS_PER_SERVER = 3;<a name="line.194"></a>
+<span class="sourceLineNo">174</span> */<a name="line.174"></a>
+<span class="sourceLineNo">175</span>@InterfaceAudience.Public<a name="line.175"></a>
+<span class="sourceLineNo">176</span>@SuppressWarnings("deprecation")<a name="line.176"></a>
+<span class="sourceLineNo">177</span>public class HBaseTestingUtility extends HBaseZKTestingUtility {<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span> /**<a name="line.179"></a>
+<span class="sourceLineNo">180</span> * System property key to get test directory value. Name is as it is because mini dfs has<a name="line.180"></a>
+<span class="sourceLineNo">181</span> * hard-codings to put test data here. It should NOT be used directly in HBase, as it's a property<a name="line.181"></a>
+<span class="sourceLineNo">182</span> * used in mini dfs.<a name="line.182"></a>
+<span class="sourceLineNo">183</span> * @deprecated can be used only with mini dfs<a name="line.183"></a>
+<span class="sourceLineNo">184</span> */<a name="line.184"></a>
+<span class="sourceLineNo">185</span> @Deprecated<a name="line.185"></a>
+<span class="sourceLineNo">186</span> private static final String TEST_DIRECTORY_KEY = "test.build.data";<a name="line.186"></a>
+<span class="sourceLineNo">187</span><a name="line.187"></a>
+<span class="sourceLineNo">188</span> public static final String REGIONS_PER_SERVER_KEY = "hbase.test.regions-per-server";<a name="line.188"></a>
+<span class="sourceLineNo">189</span> /**<a name="line.189"></a>
+<span class="sourceLineNo">190</span> * The default number of regions per regionserver when creating a pre-split<a name="line.190"></a>
+<span class="sourceLineNo">191</span> * table.<a name="line.191"></a>
+<span class="sourceLineNo">192</span> */<a name="line.192"></a>
+<span class="sourceLineNo">193</span> public static final int DEFAULT_REGIONS_PER_SERVER = 3;<a name="line.193"></a>
+<span class="sourceLineNo">194</span><a name="line.194"></a>
<span class="sourceLineNo">195</span><a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span> public static final String PRESPLIT_TEST_TABLE_KEY = "hbase.test.pre-split-table";<a name="line.197"></a>
-<span class="sourceLineNo">198</span> public static final boolean PRESPLIT_TEST_TABLE = true;<a name="line.198"></a>
-<span class="sourceLineNo">199</span><a name="line.199"></a>
-<span class="sourceLineNo">200</span> private MiniDFSCluster dfsCluster = null;<a name="line.200"></a>
-<span class="sourceLineNo">201</span><a name="line.201"></a>
-<span class="sourceLineNo">202</span> private volatile HBaseCluster hbaseCluster = null;<a name="line.202"></a>
-<span class="sourceLineNo">203</span> private MiniMRCluster mrCluster = null;<a name="line.203"></a>
-<span class="sourceLineNo">204</span><a name="line.204"></a>
-<span class="sourceLineNo">205</span> /** If there is a mini cluster running for this testing utility instance. */<a name="line.205"></a>
-<span class="sourceLineNo">206</span> private volatile boolean miniClusterRunning;<a name="line.206"></a>
-<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span> private String hadoopLogDir;<a name="line.208"></a>
-<span class="sourceLineNo">209</span><a name="line.209"></a>
-<span class="sourceLineNo">210</span> /** Directory on test filesystem where we put the data for this instance of<a name="line.210"></a>
-<span class="sourceLineNo">211</span> * HBaseTestingUtility*/<a name="line.211"></a>
-<span class="sourceLineNo">212</span> private Path dataTestDirOnTestFS = null;<a name="line.212"></a>
-<span class="sourceLineNo">213</span><a name="line.213"></a>
-<span class="sourceLineNo">214</span> /**<a name="line.214"></a>
-<span class="sourceLineNo">215</span> * Shared cluster connection.<a name="line.215"></a>
-<span class="sourceLineNo">216</span> */<a name="line.216"></a>
-<span class="sourceLineNo">217</span> private volatile Connection connection;<a name="line.217"></a>
-<span class="sourceLineNo">218</span><a name="line.218"></a>
-<span class="sourceLineNo">219</span> /** Filesystem URI used for map-reduce mini-cluster setup */<a name="line.219"></a>
-<span class="sourceLineNo">220</span> private static String FS_URI;<a name="line.220"></a>
-<span class="sourceLineNo">221</span><a name="line.221"></a>
-<span class="sourceLineNo">222</span> /** This is for unit tests parameterized with a single boolean. */<a name="line.222"></a>
-<span class="sourceLineNo">223</span> public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();<a name="line.223"></a>
-<span class="sourceLineNo">224</span><a name="line.224"></a>
-<span class="sourceLineNo">225</span> /**<a name="line.225"></a>
-<span class="sourceLineNo">226</span> * Checks to see if a specific port is available.<a name="line.226"></a>
-<span class="sourceLineNo">227</span> *<a name="line.227"></a>
-<span class="sourceLineNo">228</span> * @param port the port number to check for availability<a name="line.228"></a>
-<span class="sourceLineNo">229</span> * @return <tt>true</tt> if the port is available, or <tt>false</tt> if not<a name="line.229"></a>
-<span class="sourceLineNo">230</span> */<a name="line.230"></a>
-<span class="sourceLineNo">231</span> public static boolean available(int port) {<a name="line.231"></a>
-<span class="sourceLineNo">232</span> ServerSocket ss = null;<a name="line.232"></a>
-<span class="sourceLineNo">233</span> DatagramSocket ds = null;<a name="line.233"></a>
-<span class="sourceLineNo">234</span> try {<a name="line.234"></a>
-<span class="sourceLineNo">235</span> ss = new ServerSocket(port);<a name="line.235"></a>
-<span class="sourceLineNo">236</span> ss.setReuseAddress(true);<a name="line.236"></a>
-<span class="sourceLineNo">237</span> ds = new DatagramSocket(port);<a name="line.237"></a>
-<span class="sourceLineNo">238</span> ds.setReuseAddress(true);<a name="line.238"></a>
-<span class="sourceLineNo">239</span> return true;<a name="line.239"></a>
-<span class="sourceLineNo">240</span> } catch (IOException e) {<a name="line.240"></a>
-<span class="sourceLineNo">241</span> // Do nothing<a name="line.241"></a>
-<span class="sourceLineNo">242</span> } finally {<a name="line.242"></a>
-<span class="sourceLineNo">243</span> if (ds != null) {<a name="line.243"></a>
-<span class="sourceLineNo">244</span> ds.close();<a name="line.244"></a>
-<span class="sourceLineNo">245</span> }<a name="line.245"></a>
-<span class="sourceLineNo">246</span><a name="line.246"></a>
-<span class="sourceLineNo">247</span> if (ss != null) {<a name="line.247"></a>
-<span class="sourceLineNo">248</span> try {<a name="line.248"></a>
-<span class="sourceLineNo">249</span> ss.close();<a name="line.249"></a>
-<span class="sourceLineNo">250</span> } catch (IOException e) {<a name="line.250"></a>
-<span class="sourceLineNo">251</span> /* should not be thrown */<a name="line.251"></a>
-<span class="sourceLineNo">252</span> }<a name="line.252"></a>
-<span class="sourceLineNo">253</span> }<a name="line.253"></a>
-<span class="sourceLineNo">254</span> }<a name="line.254"></a>
-<span class="sourceLineNo">255</span><a name="line.255"></a>
-<span class="sourceLineNo">256</span> return false;<a name="line.256"></a>
-<span class="sourceLineNo">257</span> }<a name="line.257"></a>
-<span class="sourceLineNo">258</span><a name="line.258"></a>
-<span class="sourceLineNo">259</span> /**<a name="line.259"></a>
-<span class="sourceLineNo">260</span> * Create all combinations of Bloom filters and compression algorithms for<a name="line.260"></a>
-<span class="sourceLineNo">261</span> * testing.<a name="line.261"></a>
-<span class="sourceLineNo">262</span> */<a name="line.262"></a>
-<span class="sourceLineNo">263</span> private static List<Object[]> bloomAndCompressionCombinations() {<a name="line.263"></a>
-<span class="sourceLineNo">264</span> List<Object[]> configurations = new ArrayList<>();<a name="line.264"></a>
-<span class="sourceLineNo">265</span> for (Compression.Algorithm comprAlgo :<a name="line.265"></a>
-<span class="sourceLineNo">266</span> HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {<a name="line.266"></a>
-<span class="sourceLineNo">267</span> for (BloomType bloomType : BloomType.values()) {<a name="line.267"></a>
-<span class="sourceLineNo">268</span> configurations.add(new Object[] { comprAlgo, bloomType });<a name="line.268"></a>
-<span class="sourceLineNo">269</span> }<a name="line.269"></a>
-<span class="sourceLineNo">270</span> }<a name="line.270"></a>
-<span class="sourceLineNo">271</span> return Collections.unmodifiableList(configurations);<a name="line.271"></a>
-<span class="sourceLineNo">272</span> }<a name="line.272"></a>
-<span class="sourceLineNo">273</span><a name="line.273"></a>
-<span class="sourceLineNo">274</span> /**<a name="line.274"></a>
-<span class="sourceLineNo">275</span> * Create combination of memstoreTS and tags<a name="line.275"></a>
-<span class="sourceLineNo">276</span> */<a name="line.276"></a>
-<span class="sourceLineNo">277</span> private static List<Object[]> memStoreTSAndTagsCombination() {<a name="line.277"></a>
-<span class="sourceLineNo">278</span> List<Object[]> configurations = new ArrayList<>();<a name="line.278"></a>
-<span class="sourceLineNo">279</span> configurations.add(new Object[] { false, false });<a name="line.279"></a>
-<span class="sourceLineNo">280</span> configurations.add(new Object[] { false, true });<a name="line.280"></a>
-<span class="sourceLineNo">281</span> configurations.add(new Object[] { true, false });<a name="line.281"></a>
-<span class="sourceLineNo">282</span> configurations.add(new Object[] { true, true });<a name="line.282"></a>
-<span class="sourceLineNo">283</span> return Collections.unmodifiableList(configurations);<a name="line.283"></a>
-<span class="sourceLineNo">284</span> }<a name="line.284"></a>
-<span class="sourceLineNo">285</span><a name="line.285"></a>
-<span class="sourceLineNo">286</span> public static List<Object[]> memStoreTSTagsAndOffheapCombination() {<a name="line.286"></a>
-<span class="sourceLineNo">287</span> List<Object[]> configurations = new ArrayList<>();<a name="line.287"></a>
-<span class="sourceLineNo">288</span> configurations.add(new Object[] { false, false, true });<a name="line.288"></a>
-<span class="sourceLineNo">289</span> configurations.add(new Object[] { false, false, false });<a name="line.289"></a>
-<span class="sourceLineNo">290</span> configurations.add(new Object[] { false, true, true });<a name="line.290"></a>
-<span class="sourceLineNo">291</span> configurations.add(new Object[] { false, true, false });<a name="line.291"></a>
-<span class="sourceLineNo">292</span> configurations.add(new Object[] { true, false, true });<a name="line.292"></a>
-<span class="sourceLineNo">293</span> configurations.add(new Object[] { true, false, false });<a name="line.293"></a>
-<span class="sourceLineNo">294</span> configurations.add(new Object[] { true, true, true });<a name="line.294"></a>
-<span class="sourceLineNo">295</span> configurations.add(new Object[] { true, true, false });<a name="line.295"></a>
-<span class="sourceLineNo">296</span> return Collections.unmodifiableList(configurations);<a name="line.296"></a>
-<span class="sourceLineNo">297</span> }<a name="line.297"></a>
-<span class="sourceLineNo">298</span><a name="line.298"></a>
-<span class="sourceLineNo">299</span> public static final Collection<Object[]> BLOOM_AND_COMPRESSION_COMBINATIONS =<a name="line.299"></a>
-<span class="sourceLineNo">300</span> bloomAndCompressionCombinations();<a name="line.300"></a>
+<span class="sourceLineNo">196</span> public static final String PRESPLIT_TEST_TABLE_KEY = "hbase.test.pre-split-table";<a name="line.196"></a>
+<span class="sourceLineNo">197</span> public static final boolean PRESPLIT_TEST_TABLE = true;<a name="line.197"></a>
+<span class="sourceLineNo">198</span><a name="line.198"></a>
+<span class="sourceLineNo">199</span> private MiniDFSCluster dfsCluster = null;<a name="line.199"></a>
+<span class="sourceLineNo">200</span><a name="line.200"></a>
+<span class="sourceLineNo">201</span> private volatile HBaseCluster hbaseCluster = null;<a name="line.201"></a>
+<span class="sourceLineNo">202</span> private MiniMRCluster mrCluster = null;<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span> /** If there is a mini cluster running for this testing utility instance. */<a name="line.204"></a>
+<span class="sourceLineNo">205</span> private volatile boolean miniClusterRunning;<a name="line.205"></a>
+<span class="sourceLineNo">206</span><a name="line.206"></a>
+<span class="sourceLineNo">207</span> private String hadoopLogDir;<a name="line.207"></a>
+<span class="sourceLineNo">208</span><a name="line.208"></a>
+<span class="sourceLineNo">209</span> /** Directory on test filesystem where we put the data for this instance of<a name="line.209"></a>
+<span class="sourceLineNo">210</span> * HBaseTestingUtility*/<a name="line.210"></a>
+<span class="sourceLineNo">211</span> private Path dataTestDirOnTestFS = null;<a name="line.211"></a>
+<span class="sourceLineNo">212</span><a name="line.212"></a>
+<span class="sourceLineNo">213</span> /**<a name="line.213"></a>
+<span class="sourceLineNo">214</span> * Shared cluster connection.<a name="line.214"></a>
+<span class="sourceLineNo">215</span> */<a name="line.215"></a>
+<span class="sourceLineNo">216</span> private volatile Connection connection;<a name="line.216"></a>
+<span class="sourceLineNo">217</span><a name="line.217"></a>
+<span class="sourceLineNo">218</span> /** Filesystem URI used for map-reduce mini-cluster setup */<a name="line.218"></a>
+<span class="sourceLineNo">219</span> private static String FS_URI;<a name="line.219"></a>
+<span class="sourceLineNo">220</span><a name="line.220"></a>
+<span class="sourceLineNo">221</span> /** This is for unit tests parameterized with a single boolean. */<a name="line.221"></a>
+<span class="sourceLineNo">222</span> public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();<a name="line.222"></a>
+<span class="sourceLineNo">223</span><a name="line.223"></a>
+<span class="sourceLineNo">224</span> /**<a name="line.224"></a>
+<span class="sourceLineNo">225</span> * Checks to see if a specific port is available.<a name="line.225"></a>
+<span class="sourceLineNo">226</span> *<a name="line.226"></a>
+<span class="sourceLineNo">227</span> * @param port the port number to check for availability<a name="line.227"></a>
+<span class="sourceLineNo">228</span> * @return <tt>true</tt> if the port is available, or <tt>false</tt> if not<a name="line.228"></a>
+<span class="sourceLineNo">229</span> */<a name="line.229"></a>
+<span class="sourceLineNo">230</span> public static boolean available(int port) {<a name="line.230"></a>
+<span class="sourceLineNo">231</span> ServerSocket ss = null;<a name="line.231"></a>
+<span class="sourceLineNo">232</span> DatagramSocket ds = null;<a name="line.232"></a>
+<span class="sourceLineNo">233</span> try {<a name="line.233"></a>
+<span class="sourceLineNo">234</span> ss = new ServerSocket(port);<a name="line.234"></a>
+<span class="sourceLineNo">235</span> ss.setReuseAddress(true);<a name="line.235"></a>
+<span class="sourceLineNo">236</span> ds = new DatagramSocket(port);<a name="line.236"></a>
+<span class="sourceLineNo">237</span> ds.setReuseAddress(true);<a name="line.237"></a>
+<span class="sourceLineNo">238</span> return true;<a name="line.238"></a>
+<span class="sourceLineNo">239</span> } catch (IOException e) {<a name="line.239"></a>
+<span class="sourceLineNo">240</span> // Do nothing<a name="line.240"></a>
+<span class="sourceLineNo">241</span> } finally {<a name="line.241"></a>
+<span class="sourceLineNo">242</span> if (ds != null) {<a name="line.242"></a>
+<span class="sourceLineNo">243</span> ds.close();<a name="line.243"></a>
+<span class="sourceLineNo">244</span> }<a name="line.244"></a>
+<span class="sourceLineNo">245</span><a name="line.245"></a>
+<span class="sourceLineNo">246</span> if (ss != null) {<a name="line.246"></a>
+<span class="sourceLineNo">247</span> try {<a name="line.247"></a>
+<span class="sourceLineNo">248</span> ss.close();<a name="line.248"></a>
+<span class="sourceLineNo">249</span> } catch (IOException e) {<a name="line.249"></a>
+<span class="sourceLineNo">250</span> /* should not be thrown */<a name="line.250"></a>
+<span class="sourceLineNo">251</span> }<a name="line.251"></a>
+<span class="sourceLineNo">252</span> }<a name="line.252"></a>
+<span class="sourceLineNo">253</span> }<a name="line.253"></a>
+<span class="sourceLineNo">254</span><a name="line.254"></a>
+<span class="sourceLineNo">255</span> return false;<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> /**<a name="line.258"></a>
+<span class="sourceLineNo">259</span> * Create all combinations of Bloom filters and compression algorithms for<a name="line.259"></a>
+<span class="sourceLineNo">260</span> * testing.<a name="line.260"></a>
+<span class="sourceLineNo">261</span> */<a name="line.261"></a>
+<span class="sourceLineNo">262</span> private static List<Object[]> bloomAndCompressionCombinations() {<a name="line.262"></a>
+<span class="sourceLineNo">263</span> List<Object[]> configurations = new ArrayList<>();<a name="line.263"></a>
+<span class="sourceLineNo">264</span> for (Compression.Algorithm comprAlgo :<a name="line.264"></a>
+<span class="sourceLineNo">265</span> HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {<a name="line.265"></a>
+<span class="sourceLineNo">266</span> for (BloomType bloomType : BloomType.values()) {<a name="line.266"></a>
+<span class="sourceLineNo">267</span> configurations.add(new Object[] { comprAlgo, bloomType });<a name="line.267"></a>
+<span class="sourceLineNo">268</span> }<a name="line.268"></a>
+<span class="sourceLineNo">269</span> }<a name="line.269"></a>
+<span class="sourceLineNo">270</span> return Collections.unmodifiableList(configurations);<a name="line.270"></a>
+<span class="sourceLineNo">271</span> }<a name="line.271"></a>
+<span class="sourceLineNo">272</span><a name="line.272"></a>
+<span class="sourceLineNo">273</span> /**<a name="line.273"></a>
+<span class="sourceLineNo">274</span> * Create combination of memstoreTS and tags<a name="line.274"></a>
+<span class="sourceLineNo">275</span> */<a name="line.275"></a>
+<span class="sourceLineNo">276</span> private static List<Object[]> memStoreTSAndTagsCombination() {<a name="line.276"></a>
+<span class="sourceLineNo">277</span> List<Object[]> configurations = new ArrayList<>();<a name="line.277"></a>
+<span class="sourceLineNo">278</span> configurations.add(new Object[] { false, false });<a name="line.278"></a>
+<span class="sourceLineNo">279</span> configurations.add(new Object[] { false, true });<a name="line.279"></a>
+<span class="sourceLineNo">280</span> configurations.add(new Object[] { true, false });<a name="line.280"></a>
+<span class="sourceLineNo">281</span> configurations.add(new Object[] { true, true });<a name="line.281"></a>
+<span class="sourceLineNo">282</span> return Collections.unmodifiableList(configurations);<a name="line.282"></a>
+<span class="sourceLineNo">283</span> }<a name="line.283"></a>
+<span class="sourceLineNo">284</span><a name="line.284"></a>
+<span class="sourceLineNo">285</span> public static List<Object[]> memStoreTSTagsAndOffheapCombination() {<a name="line.285"></a>
+<span class="sourceLineNo">286</span> List<Object[]> configurations = new ArrayList<>();<a name="line.286"></a>
+<span class="sourceLineNo">287</span> configurations.add(new Object[] { false, false, true });<a name="line.287"></a>
+<span class="sourceLineNo">288</span> configurations.add(new Object[] { false, false, false });<a name="line.288"></a>
+<span class="sourceLineNo">289</span> configurations.add(new Object[] { false, true, true });<a name="line.289"></a>
+<span class="sourceLineNo">290</span> configurations.add(new Object[] { false, true, false });<a name="line.290"></a>
+<span class="sourceLineNo">291</span> configurations.add(new Object[] { true, false, true });<a name="line.291"></a>
+<span class="sourceLineNo">292</span> configurations.add(new Object[] { true, false, false });<a name="line.292"></a>
+<span class="sourceLineNo">293</span> configurations.add(new Object[] { true, true, true });<a name="line.293"></a>
+<span class="sourceLineNo">294</span> configurations.add(new Object[] { true, true, false });<a name="line.294"></a>
+<span class="sourceLineNo">295</span> return Collections.unmodifiableList(configurations);<a name="line.295"></a>
+<span class="sourceLineNo">296</span> }<a name="line.296"></a>
+<span class="sourceLineNo">297</span><a name="line.297"></a>
+<span class="sourceLineNo">298</span> public static final Collection<Object[]> BLOOM_AND_COMPRESSION_COMBINATIONS =<a name="line.298"></a>
+<span class="sourceLineNo">299</span> bloomAndCompressionCombinations();<a name="line.299"></a>
+<span class="sourceLineNo">300</span><a name="line.300"></a>
<span class="sourceLineNo">301</span><a name="line.301"></a>
-<span class="sourceLineNo">302</span><a name="line.302"></a>
-<span class="sourceLineNo">303</span> /**<a name="line.303"></a>
-<span class="sourceLineNo">304</span> * <p>Create an HBaseTestingUtility using a default configuration.<a name="line.304"></a>
-<span class="sourceLineNo">305</span> *<a name="line.305"></a>
-<span class="sourceLineNo">306</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.306"></a>
-<span class="sourceLineNo">307</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.307"></a>
-<span class="sourceLineNo">308</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.308"></a>
-<span class="sourceLineNo">309</span> *<a name="line.309"></a>
-<span class="sourceLineNo">310</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.310"></a>
-<span class="sourceLineNo">311</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.311"></a>
-<span class="sourceLineNo">312</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.312"></a>
-<span class="sourceLineNo">313</span> * at which point they will switch to using mini DFS for storage.<a name="line.313"></a>
-<span class="sourceLineNo">314</span> */<a name="line.314"></a>
-<span class="sourceLineNo">315</span> public HBaseTestingUtility() {<a name="line.315"></a>
-<span class="sourceLineNo">316</span> this(HBaseConfiguration.create());<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> * <p>Create an HBaseTestingUtility using a given configuration.<a name="line.320"></a>
-<span class="sourceLineNo">321</span> *<a name="line.321"></a>
-<span class="sourceLineNo">322</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.322"></a>
-<span class="sourceLineNo">323</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.323"></a>
-<span class="sourceLineNo">324</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.324"></a>
-<span class="sourceLineNo">325</span> *<a name="line.325"></a>
-<span class="sourceLineNo">326</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.326"></a>
-<span class="sourceLineNo">327</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.327"></a>
-<span class="sourceLineNo">328</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.328"></a>
-<span class="sourceLineNo">329</span> * at which point they will switch to using mini DFS for storage.<a name="line.329"></a>
-<span class="sourceLineNo">330</span> *<a name="line.330"></a>
-<span class="sourceLineNo">331</span> * @param conf The configuration to use for further operations<a name="line.331"></a>
-<span class="sourceLineNo">332</span> */<a name="line.332"></a>
-<span class="sourceLineNo">333</span> public HBaseTestingUtility(@Nullable Configuration conf) {<a name="line.333"></a>
-<span class="sourceLineNo">334</span> super(conf);<a name="line.334"></a>
-<span class="sourceLineNo">335</span><a name="line.335"></a>
-<span class="sourceLineNo">336</span> // a hbase checksum verification failure will cause unit tests to fail<a name="line.336"></a>
-<span class="sourceLineNo">337</span> ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.337"></a>
-<span class="sourceLineNo">338</span><a name="line.338"></a>
-<span class="sourceLineNo">339</span> // Save this for when setting default file:// breaks things<a name="line.339"></a>
-<span class="sourceLineNo">340</span> if (this.conf.get("fs.defaultFS") != null) {<a name="line.340"></a>
-<span class="sourceLineNo">341</span> this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.341"></a>
-<span class="sourceLineNo">342</span> }<a name="line.342"></a>
-<span class="sourceLineNo">343</span> if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.343"></a>
-<span class="sourceLineNo">344</span> this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.344"></a>
-<span class="sourceLineNo">345</span> }<a name="line.345"></a>
-<span class="sourceLineNo">346</span> // Every cluster is a local cluster until we start DFS<a name="line.346"></a>
-<span class="sourceLineNo">347</span> // Note that conf could be null, but this.conf will not be<a name="line.347"></a>
-<span class="sourceLineNo">348</span> String dataTestDir = getDataTestDir().toString();<a name="line.348"></a>
-<span class="sourceLineNo">349</span> this.conf.set("fs.defaultFS","file:///");<a name="line.349"></a>
-<span class="sourceLineNo">350</span> this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.350"></a>
-<span class="sourceLineNo">351</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.351"></a>
-<span class="sourceLineNo">352</span> this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.352"></a>
-<span class="sourceLineNo">353</span> // If the value for random ports isn't set set it to true, thus making<a name="line.353"></a>
-<span class="sourceLineNo">354</span> // tests opt-out for random port assignment<a name="line.354"></a>
-<span class="sourceLineNo">355</span> this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.355"></a>
-<span class="sourceLineNo">356</span> this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.356"></a>
-<span class="sourceLineNo">357</span> }<a name="line.357"></a>
-<span class="sourceLineNo">358</span><a name="line.358"></a>
-<span class="sourceLineNo">359</span> /**<a name="line.359"></a>
-<span class="sourceLineNo">360</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.360"></a>
-<span class="sourceLineNo">361</span> * @return a normal HBaseTestingUtility<a name="line.361"></a>
-<span class="sourceLineNo">362</span> */<a name="line.362"></a>
-<span class="sourceLineNo">363</span> @Deprecated<a name="line.363"></a>
-<span class="sourceLineNo">364</span> public static HBaseTestingUtility createLocalHTU() {<a name="line.364"></a>
-<span class="sourceLineNo">365</span> return new HBaseTestingUtility();<a name="line.365"></a>
-<span class="sourceLineNo">366</span> }<a name="line.366"></a>
-<span class="sourceLineNo">367</span><a name="line.367"></a>
-<span class="sourceLineNo">368</span> /**<a name="line.368"></a>
-<span class="sourceLineNo">369</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.369"></a>
-<span class="sourceLineNo">370</span> * @return a normal HBaseTestingUtility<a name="line.370"></a>
-<span class="sourceLineNo">371</span> */<a name="line.371"></a>
-<span class="sourceLineNo">372</span> @Deprecated<a name="line.372"></a>
-<span class="sourceLineNo">373</span> public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.373"></a>
-<span class="sourceLineNo">374</span> return new HBaseTestingUtility(c);<a name="line.374"></a>
-<span class="sourceLineNo">375</span> }<a name="line.375"></a>
-<span class="sourceLineNo">376</span><a name="line.376"></a>
-<span class="sourceLineNo">377</span> /**<a name="line.377"></a>
-<span class="sourceLineNo">378</span> * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.378"></a>
-<span class="sourceLineNo">379</span> */<a name="line.379"></a>
-<span class="sourceLineNo">380</span> public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.380"></a>
-<span class="sourceLineNo">381</span> closeRegionAndWAL((HRegion)r);<a name="line.381"></a>
-<span class="sourceLineNo">382</span> }<a name="line.382"></a>
-<span class="sourceLineNo">383</span><a name="line.383"></a>
-<span class="sourceLineNo">384</span> /**<a name="line.384"></a>
-<span class="sourceLineNo">385</span> * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.385"></a>
-<span class="sourceLineNo">386</span> */<a name="line.386"></a>
-<span class="sourceLineNo">387</span> public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.387"></a>
-<span class="sourceLineNo">388</span> if (r == null) return;<a name="line.388"></a>
-<span class="sourceLineNo">389</span> r.close();<a name="line.389"></a>
-<span class="sourceLineNo">390</span> if (r.getWAL() == null) return;<a name="line.390"></a>
-<span class="sourceLineNo">391</span> r.getWAL().close();<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> /**<a name="line.394"></a>
-<span class="sourceLineNo">395</span> * Returns this classes's instance of {@link Configuration}. Be careful how<a name="line.395"></a>
-<span class="sourceLineNo">396</span> * you use the returned Configuration since {@link Connection} instances<a name="line.396"></a>
-<span class="sourceLineNo">397</span> * can be shared. The Map of Connections is keyed by the Configuration. If<a name="line.397"></a>
-<span class="sourceLineNo">398</span> * say, a Connection was being used against a cluster that had been shutdown,<a name="line.398"></a>
-<span class="sourceLineNo">399</span> * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.399"></a>
-<span class="sourceLineNo">400</span> * be wholesome. Rather than use the return direct, its usually best to<a name="line.400"></a>
-<span class="sourceLineNo">401</span> * make a copy and use that. Do<a name="line.401"></a>
-<span class="sourceLineNo">402</span> * <code>Configuration c = new Configuration(INSTANCE.getConfiguration());</code><a name="line.402"></a>
-<span class="sourceLineNo">403</span> * @return Instance of Configuration.<a name="line.403"></a>
-<span class="sourceLineNo">404</span> */<a name="line.404"></a>
-<span class="sourceLineNo">405</span> @Override<a name="line.405"></a>
-<span class="sourceLineNo">406</span> public Configuration getConfiguration() {<a name="line.406"></a>
-<span class="sourceLineNo">407</span> return super.getConfiguration();<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> public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.410"></a>
-<span class="sourceLineNo">411</span> this.hbaseCluster = hbaseCluster;<a name="line.411"></a>
-<span class="sourceLineNo">412</span> }<a name="line.412"></a>
-<span class="sourceLineNo">413</span><a name="line.413"></a>
-<span class="sourceLineNo">414</span> /**<a name="line.414"></a>
-<span class="sourceLineNo">415</span> * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.415"></a>
-<span class="sourceLineNo">416</span> * Give it a random name so can have many concurrent tests running if<a name="line.416"></a>
-<span class="sourceLineNo">417</span> * we need to. It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.417"></a>
-<span class="sourceLineNo">418</span> * System property, as it's what minidfscluster bases<a name="line.418"></a>
-<span class="sourceLineNo">419</span> * it data dir on. Moding a System property is not the way to do concurrent<a name="line.419"></a>
-<span class="sourceLineNo">420</span> * instances -- another instance could grab the temporary<a name="line.420"></a>
-<span class="sourceLineNo">421</span> * value unintentionally -- but not anything can do about it at moment;<a name="line.421"></a>
-<span class="sourceLineNo">422</span> * single instance only is how the minidfscluster works.<a name="line.422"></a>
-<span class="sourceLineNo">423</span> *<a name="line.423"></a>
-<span class="sourceLineNo">424</span> * We also create the underlying directory for<a name="line.424"></a>
-<span class="sourceLineNo">425</span> * hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.425"></a>
-<span class="sourceLineNo">426</span> * in the conf, and as a system property for hadoop.tmp.dir<a name="line.426"></a>
-<span class="sourceLineNo">427</span> *<a name="line.427"></a>
-<span class="sourceLineNo">428</span> * @return The calculated data test build directory, if newly-created.<a name="line.428"></a>
-<span class="sourceLineNo">429</span> */<a name="line.429"></a>
-<span class="sourceLineNo">430</span> @Override<a name="line.430"></a>
-<span class="sourceLineNo">431</span> protected Path setupDataTestDir() {<a name="line.431"></a>
-<span class="sourceLineNo">432</span> Path testPath = super.setupDataTestDir();<a name="line.432"></a>
-<span class="sourceLineNo">433</span> if (null == testPath) {<a name="line.433"></a>
-<span class="sourceLineNo">434</span> return null;<a name="line.434"></a>
-<span class="sourceLineNo">435</span> }<a name="line.435"></a>
-<span class="sourceLineNo">436</span><a name="line.436"></a>
-<span class="sourceLineNo">437</span> createSubDirAndSystemProperty(<a name="line.437"></a>
-<span class="sourceLineNo">438</span> "hadoop.log.dir",<a name="line.438"></a>
-<span class="sourceLineNo">439</span> testPath, "hadoop-log-dir");<a name="line.439"></a>
-<span class="sourceLineNo">440</span><a name="line.440"></a>
-<span class="sourceLineNo">441</span> // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.441"></a>
-<span class="sourceLineNo">442</span> // we want our own value to ensure uniqueness on the same machine<a name="line.442"></a>
-<span class="sourceLineNo">443</span> createSubDirAndSystemProperty(<a name="line.443"></a>
-<span class="sourceLineNo">444</span> "hadoop.tmp.dir",<a name="line.444"></a>
-<span class="sourceLineNo">445</span> testPath, "hadoop-tmp-dir");<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span> // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.447"></a>
-<span class="sourceLineNo">448</span> createSubDir(<a name="line.448"></a>
-<span class="sourceLineNo">449</span> "mapreduce.cluster.local.dir",<a name="line.449"></a>
-<span class="sourceLineNo">450</span> testPath, "mapred-local-dir");<a name="line.450"></a>
-<span class="sourceLineNo">451</span><a name="line.451"></a>
-<span class="sourceLineNo">452</span> return testPath;<a name="line.452"></a>
-<span class="sourceLineNo">453</span> }<a name="line.453"></a>
-<span class="sourceLineNo">454</span><a name="line.454"></a>
-<span class="sourceLineNo">455</span> private void createSubDirAndSystemProperty(<a name="line.455"></a>
-<span class="sourceLineNo">456</span> String propertyName, Path parent, String subDirName){<a name="line.456"></a>
-<span class="sourceLineNo">457</span><a name="line.457"></a>
-<span class="sourceLineNo">458</span> String sysValue = System.getProperty(propertyName);<a name="line.458"></a>
-<span class="sourceLineNo">459</span><a name="line.459"></a>
-<span class="sourceLineNo">460</span> if (sysValue != null) {<a name="line.460"></a>
-<span class="sourceLineNo">461</span> // There is already a value set. So we do nothing but hope<a name="line.461"></a>
-<span class="sourceLineNo">462</span> // that there will be no conflicts<a name="line.462"></a>
-<span class="sourceLineNo">463</span> LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.463"></a>
-<span class="sourceLineNo">464</span> sysValue + " so I do NOT create it in " + parent);<a name="line.464"></a>
-<span class="sourceLineNo">465</span> String confValue = conf.get(propertyName);<a name="line.465"></a>
-<span class="sourceLineNo">466</span> if (confValue != null && !confValue.endsWith(sysValue)){<a name="line.466"></a>
-<span class="sourceLineNo">467</span> LOG.warn(<a name="line.467"></a>
-<span class="sourceLineNo">468</span> propertyName + " property value differs in configuration and system: "+<a name="line.468"></a>
-<span class="sourceLineNo">469</span> "Configuration="+confValue+" while System="+sysValue+<a name="line.469"></a>
-<span class="sourceLineNo">470</span> " Erasing configuration value by system value."<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> conf.set(propertyName, sysValue);<a name="line.473"></a>
-<span class="sourceLineNo">474</span> } else {<a name="line.474"></a>
-<span class="sourceLineNo">475</span> // Ok, it's not set, so we create it as a subdirectory<a name="line.475"></a>
-<span class="sourceLineNo">476</span> createSubDir(propertyName, parent, subDirName);<a name="line.476"></a>
-<span class="sourceLineNo">477</span> System.setProperty(propertyName, conf.get(propertyName));<a name="line.477"></a>
-<span class="sourceLineNo">478</span> }<a name="line.478"></a>
-<span class="sourceLineNo">479</span> }<a name="line.479"></a>
-<span class="sourceLineNo">480</span><a name="line.480"></a>
-<span class="sourceLineNo">481</span> /**<a name="line.481"></a>
-<span class="sourceLineNo">482</span> * @return Where to write test data on the test filesystem; Returns working directory<a name="line.482"></a>
-<span class="sourceLineNo">483</span> * for the test filesystem by default<a name="line.483"></a>
-<span class="sourceLineNo">484</span> * @see #setupDataTestDirOnTestFS()<a name="line.484"></a>
-<span class="sourceLineNo">485</span> * @see #getTestFileSystem()<a name="line.485"></a>
-<span class="sourceLineNo">486</span> */<a name="line.486"></a>
-<span class="sourceLineNo">487</span> private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.487"></a>
-<span class="sourceLineNo">488</span> FileSystem fs = getTestFileSystem();<a name="line.488"></a>
-<span class="sourceLineNo">489</span> return new Path(fs.getWorkingDirectory(), "test-data");<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> /**<a name="line.492"></a>
-<span class="sourceLineNo">493</span> * @return META table descriptor<a name="line.493"></a>
-<span class="sourceLineNo">494</span> * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.494"></a>
-<span class="sourceLineNo">495</span> * use {@link #getMetaTableDescriptorBuilder()}<a name="line.495"></a>
-<span class="sourceLineNo">496</span> */<a name="line.496"></a>
-<span class="sourceLineNo">497</span> @Deprecated<a name="line.497"></a>
-<span class="sourceLineNo">498</span> public HTableDescriptor getMetaTableDescriptor() {<a name="line.498"></a>
-<span class="sourceLineNo">499</span> return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<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> /**<a name="line.502"></a>
-<span class="sourceLineNo">503</span> * @return META table descriptor<a name="line.503"></a>
-<span class="sourceLineNo">504</span> */<a name="line.504"></a>
-<span class="sourceLineNo">505</span> public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.505"></a>
-<span class="sourceLineNo">506</span> try {<a name="line.506"></a>
-<span class="sourceLineNo">507</span> return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.507"></a>
-<span class="sourceLineNo">508</span> } catch (IOException e) {<a name="line.508"></a>
-<span class="sourceLineNo">509</span> throw new RuntimeException("Unable to create META table descriptor", e);<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><a name="line.512"></a>
-<span class="sourceLineNo">513</span> /**<a name="line.513"></a>
-<span class="sourceLineNo">514</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.514"></a>
-<span class="sourceLineNo">515</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.515"></a>
-<span class="sourceLineNo">516</span> * if the test relies on it.<a name="line.516"></a>
-<span class="sourceLineNo">517</span> * @return a unique path in the test filesystem<a name="line.517"></a>
-<span class="sourceLineNo">518</span> */<a name="line.518"></a>
-<span class="sourceLineNo">519</span> public Path getDataTestDirOnTestFS() throws IOException {<a name="line.519"></a>
-<span class="sourceLineNo">520</span> if (dataTestDirOnTestFS == null) {<a name="line.520"></a>
-<span class="sourceLineNo">521</span> setupDataTestDirOnTestFS();<a name="line.521"></a>
-<span class="sourceLineNo">522</span> }<a name="line.522"></a>
-<span class="sourceLineNo">523</span><a name="line.523"></a>
-<span class="sourceLineNo">524</span> return dataTestDirOnTestFS;<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> /**<a name="line.527"></a>
-<span class="sourceLineNo">528</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.528"></a>
-<span class="sourceLineNo">529</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.529"></a>
-<span class="sourceLineNo">530</span> * if the test relies on it.<a name="line.530"></a>
-<span class="sourceLineNo">531</span> * @return a unique path in the test filesystem<a name="line.531"></a>
-<span class="sourceLineNo">532</span> * @param subdirName name of the subdir to create under the base test dir<a name="line.532"></a>
-<span class="sourceLineNo">533</span> */<a name="line.533"></a>
-<span class="sourceLineNo">534</span> public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.534"></a>
-<span class="sourceLineNo">535</span> return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.535"></a>
-<span class="sourceLineNo">536</span> }<a name="line.536"></a>
-<span class="sourceLineNo">537</span><a name="line.537"></a>
-<span class="sourceLineNo">538</span> /**<a name="line.538"></a>
-<span class="sourceLineNo">539</span> * Sets up a path in test filesystem to be used by tests.<a name="line.539"></a>
-<span class="sourceLineNo">540</span> * Creates a new directory if not already setup.<a name="line.540"></a>
-<span class="sourceLineNo">541</span> */<a name="line.541"></a>
-<span class="sourceLineNo">542</span> private void setupDataTestDirOnTestFS() throws IOException {<a name="line.542"></a>
-<span class="sourceLineNo">543</span> if (dataTestDirOnTestFS != null) {<a name="line.543"></a>
-<span class="sourceLineNo">544</span> LOG.warn("Data test on test fs dir already setup in "<a name="line.544"></a>
-<span class="sourceLineNo">545</span> + dataTestDirOnTestFS.toString());<a name="line.545"></a>
-<span class="sourceLineNo">546</span> return;<a name="line.546"></a>
-<span class="sourceLineNo">547</span> }<a name="line.547"></a>
-<span class="sourceLineNo">548</span> dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.548"></a>
-<span class="sourceLineNo">549</span> }<a name="line.549"></a>
-<span class="sourceLineNo">550</span><a name="line.550"></a>
-<span class="sourceLineNo">551</span> /**<a name="line.551"></a>
-<span class="sourceLineNo">552</span> * Sets up a new path in test filesystem to be used by tests.<a name="line.552"></a>
-<span class="sourceLineNo">553</span> */<a name="line.553"></a>
-<span class="sourceLineNo">554</span> private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.554"></a>
-<span class="sourceLineNo">555</span> //The file system can be either local, mini dfs, or if the configuration<a name="line.555"></a>
-<span class="sourceLineNo">556</span> //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.556"></a>
-<span class="sourceLineNo">557</span> //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.557"></a>
-<span class="sourceLineNo">558</span> //the working directory, and create a unique sub dir there<a name="line.558"></a>
-<span class="sourceLineNo">559</span> FileSystem fs = getTestFileSystem();<a name="line.559"></a>
-<span class="sourceLineNo">560</span> Path newDataTestDir;<a name="line.560"></a>
-<span class="sourceLineNo">561</span> String randomStr = getRandomUUID().toString();<a name="line.561"></a>
-<span class="sourceLineNo">562</span> if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.562"></a>
-<span class="sourceLineNo">563</span> newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.563"></a>
-<span class="sourceLineNo">564</span> File dataTestDir = new File(newDataTestDir.toString());<a name="line.564"></a>
-<span class="sourceLineNo">565</span> if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.565"></a>
-<span class="sourceLineNo">566</span> } else {<a name="line.566"></a>
-<span class="sourceLineNo">567</span> Path base = getBaseTestDirOnTestFS();<a name="line.567"></a>
-<span class="sourceLineNo">568</span> newDataTestDir = new Path(base, randomStr);<a name="line.568"></a>
-<span class="sourceLineNo">569</span> if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.569"></a>
-<span class="sourceLineNo">570</span> }<a name="line.570"></a>
-<span class="sourceLineNo">571</span> return newDataTestDir;<a name="line.571"></a>
-<span class="sourceLineNo">572</span> }<a name="line.572"></a>
-<span class="sourceLineNo">573</span><a name="line.573"></a>
-<span class="sourceLineNo">574</span> /**<a name="line.574"></a>
-<span class="sourceLineNo">575</span> * Cleans the test data directory on the test filesystem.<a name="line.575"></a>
-<span class="sourceLineNo">576</span> * @return True if we removed the test dirs<a name="line.576"></a>
-<span class="sourceLineNo">577</span> * @throws IOException<a name="line.577"></a>
-<span class="sourceLineNo">578</span> */<a name="line.578"></a>
-<span class="sourceLineNo">579</span> public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.579"></a>
-<span class="sourceLineNo">580</span> boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.580"></a>
-<span class="sourceLineNo">581</span> if (ret)<a name="line.581"></a>
-<span class="sourceLineNo">582</span> dataTestDirOnTestFS = null;<a name="line.582"></a>
-<span class="sourceLineNo">583</span> return ret;<a name="line.583"></a>
-<span class="sourceLineNo">584</span> }<a name="line.584"></a>
-<span class="sourceLineNo">585</span><a name="line.585"></a>
-<span class="sourceLineNo">586</span> /**<a name="line.586"></a>
-<span class="sourceLineNo">587</span> * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.587"></a>
-<span class="sourceLineNo">588</span> * @return True if we removed child<a name="line.588"></a>
-<span class="sourceLineNo">589</span> * @throws IOException<a name="line.589"></a>
-<span class="sourceLineNo">590</span> */<a name="line.590"></a>
-<span class="sourceLineNo">591</span> public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.591"></a>
-<span class="sourceLineNo">592</span> Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.592"></a>
-<span class="sourceLineNo">593</span> return getTestFileSystem().delete(cpath, true);<a name="line.593"></a>
-<span class="sourceLineNo">594</span> }<a name="line.594"></a>
-<span class="sourceLineNo">595</span><a name="line.595"></a>
-<span class="sourceLineNo">596</span> /**<a name="line.596"></a>
-<span class="sourceLineNo">597</span> * Start a minidfscluster.<a name="line.597"></a>
-<span class="sourceLineNo">598</span> * @param servers How many DNs to start.<a name="line.598"></a>
-<span class="sourceLineNo">599</span> * @throws Exception<a name="line.599"></a>
-<span class="sourceLineNo">600</span> * @see #shutdownMiniDFSCluster()<a name="line.600"></a>
-<span class="sourceLineNo">601</span> * @return The mini dfs cluster created.<a name="line.601"></a>
-<span class="sourceLineNo">602</span> */<a name="line.602"></a>
-<span class="sourceLineNo">603</span> public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.603"></a>
-<span class="sourceLineNo">604</span> return startMiniDFSCluster(servers, null);<a name="line.604"></a>
-<span class="sourceLineNo">605</span> }<a name="line.605"></a>
-<span class="sourceLineNo">606</span><a name="line.606"></a>
-<span class="sourceLineNo">607</span> /**<a name="line.607"></a>
-<span class="sourceLineNo">608</span> * Start a minidfscluster.<a name="line.608"></a>
-<span class="sourceLineNo">609</span> * This is useful if you want to run datanode on distinct hosts for things<a name="line.609"></a>
-<span class="sourceLineNo">610</span> * like HDFS block location verification.<a name="line.610"></a>
-<span class="sourceLineNo">611</span> * If you start MiniDFSCluster without host names, all instances of the<a name="line.611"></a>
-<span class="sourceLineNo">612</span> * datanodes will have the same host name.<a name="line.612"></a>
-<span class="sourceLineNo">613</span> * @param hosts hostnames DNs to run on.<a name="line.613"></a>
-<span class="sourceLineNo">614</span> * @throws Exception<a name="line.614"></a>
-<span class="sourceLineNo">615</span> * @see #shutdownMiniDFSCluster()<a name="line.615"></a>
-<span class="sourceLineNo">616</span> * @return The mini dfs cluster created.<a name="line.616"></a>
-<span class="sourceLineNo">617</span> */<a name="line.617"></a>
-<span class="sourceLineNo">618</span> public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.618"></a>
-<span class="sourceLineNo">619</span> throws Exception {<a name="line.619"></a>
-<span class="sourceLineNo">620</span> if ( hosts != null && hosts.length != 0) {<a name="line.620"></a>
-<span class="sourceLineNo">621</span> return startMiniDFSCluster(hosts.length, hosts);<a name="line.621"></a>
-<span class="sourceLineNo">622</span> } else {<a name="line.622"></a>
-<span class="sourceLineNo">623</span> return startMiniDFSCluster(1, null);<a name="line.623"></a>
-<span class="sourceLineNo">624</span> }<a name="line.624"></a>
-<span class="sourceLineNo">625</span> }<a name="line.625"></a>
-<span class="sourceLineNo">626</span><a name="line.626"></a>
-<span class="sourceLineNo">627</span> /**<a name="line.627"></a>
-<span class="sourceLineNo">628</span> * Start a minidfscluster.<a name="line.628"></a>
-<span class="sourceLineNo">629</span> * Can only create one.<a name="line.629"></a>
-<span class="sourceLineNo">630</span> * @param servers How many DNs to start.<a name="line.630"></a>
-<span class="sourceLineNo">631</span> * @param hosts hostnames DNs to run on.<a name="line.631"></a>
-<span class="sourceLineNo">632</span> * @throws Exception<a name="line.632"></a>
-<span class="sourceLineNo">633</span> * @see #shutdownMiniDFSCluster()<a name="line.633"></a>
-<span class="sourceLineNo">634</span> * @return The mini dfs cluster created.<a name="line.634"></a>
-<span class="sourceLineNo">635</span> */<a name="line.635"></a>
-<span class="sourceLineNo">636</span> public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.636"></a>
-<span class="sourceLineNo">637</span> throws Exception {<a name="line.637"></a>
-<span class="sourceLineNo">638</span> return startMiniDFSCluster(servers, null, hosts);<a name="line.638"></a>
-<span class="sourceLineNo">639</span> }<a name="line.639"></a>
-<span class="sourceLineNo">640</span><a name="line.640"></a>
-<span class="sourceLineNo">641</span> private void setFs() throws IOException {<a name="line.641"></a>
-<span class="sourceLineNo">642</span> if(this.dfsCluster == null){<a name="line.642"></a>
-<span class="sourceLineNo">643</span> LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.643"></a>
-<span class="sourceLineNo">644</span> return;<a name="line.644"></a>
-<span class="sourceLineNo">645</span> }<a name="line.645"></a>
-<span class="sourceLineNo">646</span> FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.646"></a>
-<span class="sourceLineNo">647</span> FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.647"></a>
-<span class="sourceLineNo">648</span><a name="line.648"></a>
-<span class="sourceLineNo">649</span> // re-enable this check with dfs<a name="line.649"></a>
-<span class="sourceLineNo">650</span> conf.unset(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE);<a name="line.650"></a>
-<span class="sourceLineNo">651</span> }<a name="line.651"></a>
-<span class="sourceLineNo">652</span><a name="line.652"></a>
-<span class="sourceLineNo">653</span> public MiniDFSCluster startMiniDFSCluster(int servers, final String racks[], String hosts[])<a name="line.653"></a>
-<span class="sourceLineNo">654</span> throws Exception {<a name="line.654"></a>
-<span class="sourceLineNo">655</span> createDirsAndSetProperties();<a name="line.655"></a>
-<span class="sourceLineNo">656</span> EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);<a name="line.656"></a>
-<span class="sourceLineNo">657</span><a name="line.657"></a>
-<span class="sourceLineNo">658</span> // Error level to skip some warnings specific to the minicluster. See HBASE-4709<a name="line.658"></a>
-<span class="sourceLineNo">659</span> org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).<a name="line.659"></a>
-<span class="sourceLineNo">660</span> setLevel(org.apache.log4j.Level.ERROR);<a name="line.660"></a>
-<span class="sourceLineNo">661</span> org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.impl.MetricsSystemImpl.class).<a name="line.661"></a>
-<span class="sourceLineNo">662</span> setLevel(org.apache.log4j.Level.ERROR);<a name="line.662"></a>
-<span class="sourceLineNo">663</span><a name="line.663"></a>
-<span class="sourceLineNo">664</span> TraceUtil.initTracer(conf);<a name="line.664"></a>
-<span class="sourceLineNo">665</span><a name="line.665"></a>
-<span class="sourceLineNo">666</span> this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,<a name="line.666"></a>
-<span class="sourceLineNo">667</span> true, null, racks, hosts, null);<a name="line.667"></a>
-<span class="sourceLineNo">668</span><a name="line.668"></a>
-<span class="sourceLineNo">669</span> // Set this just-started cluster as our filesystem.<a name="line.669"></a>
-<span class="sourceLineNo">670</span> setFs();<a name="line.670"></a>
-<span class="sourceLineNo">671</span><a name="line.671"></a>
-<span class="sourceLineNo">672</span> // Wait for the cluster to be totally up<a name="line.672"></a>
-<span class="sourceLineNo">673</span> this.dfsCluster.waitClusterUp();<a name="line.673"></a>
-<span class="sourceLineNo">674</span><a name="line.674"></a>
-<span class="sourceLineNo">675</span> //reset the test directory for test file system<a name="line.675"></a>
-<span class="sourceLineNo">676</span> dataTestDirOnTestFS = null;<a name="line.676"></a>
-<span class="sourceLineNo">677</span> String dataTestDir = getDataTestDir().toString();<a name="line.677"></a>
-<span class="sourceLineNo">678</span> conf.set(HConstants.HBASE_DIR, dataTestDir);<a name="line.678"></a>
-<span class="sourceLineNo">679</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.679"></a>
-<span class="sourceLineNo">680</span><a name="line.680"></a>
-<span class="sourceLineNo">681</span> return this.dfsCluster;<a name="line.681"></a>
-<span class="sourceLineNo">682</span> }<a name="line.682"></a>
-<span class="sourceLineNo">683</span><a name="line.683"></a>
-<span class="sourceLineNo">684</span> public MiniDFSCluster startMiniDFSClusterForTestWAL(int namenodePort) throws IOException {<a name="line.684"></a>
-<span class="sourceLineNo">685</span> createDirsAndSetProperties();<a name="line.685"></a>
-<span class="sourceLineNo">686</span> dfsCluster = new MiniDFSCluster(namenodePort, conf, 5, false, true, true, null,<a name="line.686"></a>
-<span class="sourceLineNo">687</span> null, null, null);<a name="line.687"></a>
-<span class="sourceLineNo">688</span> return dfsCluster;<a name="line.688"></a>
-<span class="sourceLineNo">689</span> }<a name="line.689"></a>
-<span class="sourceLineNo">690</span><a name="line.690"></a>
-<span class="sourceLineNo">691</span> /** This is used before starting HDFS and map-reduce mini-clusters */<a name="line.691"></a>
-<span class="sourceLineNo">692</span> private void createDirsAndSetProperties() throws IOException {<a name="line.692"></a>
-<span class="sourceLineNo">693</span> setupClusterTestDir();<a name="line.693"></a>
-<span class="sourceLineNo">694</span> conf.set(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.694"></a>
-<span class="sourceLineNo">695</span> System.setProperty(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.695"></a>
-<span class="sourceLineNo">696</span> createDirAndSetProperty("cache_data", "test.cache.data");<a name="line.696"></a>
-<span class="sourceLineNo">697</span> createDirAndSetProperty("hadoop_tmp", "hadoop.tmp.dir");<a name="line.697"></a>
-<span class="sourceLineNo">698</span> hadoopLogDir = createDirAndSetProperty("hadoop_logs", "hadoop.log.dir");<a name="line.698"></a>
-<span class="sourceLineNo">699</span> createDirAndSetProperty("mapred_local", "mapreduce.cluster.local.dir");<a name="line.699"></a>
-<span class="sourceLineNo">700</span> createDirAndSetProperty("mapred_temp", "mapreduce.cluster.temp.dir");<a name="line.700"></a>
-<span class="sourceLineNo">701</span> enableShortCircuit();<a name="line.701"></a>
-<span class="sourceLineNo">702</span><a name="line.702"></a>
-<span class="sourceLineNo">703</span> Path root = getDataTestDirOnTestFS("hadoop");<a name="line.703"></a>
-<span class="sourceLineNo">704</span> conf.set(MapreduceTestingShim.getMROutputDirProp(),<a name="line.704"></a>
-<span class="sourceLineNo">705</span> new Path(root, "mapred-output-dir").toString());<a name="line.705"></a>
-<span class="sourceLineNo">706</span> conf.set("mapreduce.jobtracker.system.dir", new Path(root, "mapred-system-dir").toString());<a name="line.706"></a>
-<span class="sourceLineNo">707</span> conf.set("mapreduce.jobtracker.staging.root.dir",<a name="line.707"></a>
-<span class="sourceLineNo">708</span> new Path(root, "mapreduce-jobtracker-staging-root-dir").toString());<a name="line.708"></a>
-<span class="sourceLineNo">709</span> conf.set("mapreduce.job.working.dir", new Path(root, "mapred-working-dir").toString());<a name="line.709"></a>
-<span class="sourceLineNo">710</span> conf.set("yarn.app.mapreduce.am.staging-dir",<a name="line.710"></a>
-<span class="sourceLineNo">711</span> new Path(root, "mapreduce-am-staging-root-dir").toString());<a name="line.711"></a>
-<span class="sourceLineNo">712</span> }<a name="line.712"></a>
+<span class="sourceLineNo">302</span> /**<a name="line.302"></a>
+<span class="sourceLineNo">303</span> * <p>Create an HBaseTestingUtility using a default configuration.<a name="line.303"></a>
+<span class="sourceLineNo">304</span> *<a name="line.304"></a>
+<span class="sourceLineNo">305</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.305"></a>
+<span class="sourceLineNo">306</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.306"></a>
+<span class="sourceLineNo">307</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.307"></a>
+<span class="sourceLineNo">308</span> *<a name="line.308"></a>
+<span class="sourceLineNo">309</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.309"></a>
+<span class="sourceLineNo">310</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.310"></a>
+<span class="sourceLineNo">311</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.311"></a>
+<span class="sourceLineNo">312</span> * at which point they will switch to using mini DFS for storage.<a name="line.312"></a>
+<span class="sourceLineNo">313</span> */<a name="line.313"></a>
+<span class="sourceLineNo">314</span> public HBaseTestingUtility() {<a name="line.314"></a>
+<span class="sourceLineNo">315</span> this(HBaseConfiguration.create());<a name="line.315"></a>
+<span class="sourceLineNo">316</span> }<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> * <p>Create an HBaseTestingUtility using a given configuration.<a name="line.319"></a>
+<span class="sourceLineNo">320</span> *<a name="line.320"></a>
+<span class="sourceLineNo">321</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.321"></a>
+<span class="sourceLineNo">322</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.322"></a>
+<span class="sourceLineNo">323</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.323"></a>
+<span class="sourceLineNo">324</span> *<a name="line.324"></a>
+<span class="sourceLineNo">325</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.325"></a>
+<span class="sourceLineNo">326</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.326"></a>
+<span class="sourceLineNo">327</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.327"></a>
+<span class="sourceLineNo">328</span> * at which point they will switch to using mini DFS for storage.<a name="line.328"></a>
+<span class="sourceLineNo">329</span> *<a name="line.329"></a>
+<span class="sourceLineNo">330</span> * @param conf The configuration to use for further operations<a name="line.330"></a>
+<span class="sourceLineNo">331</span> */<a name="line.331"></a>
+<span class="sourceLineNo">332</span> public HBaseTestingUtility(@Nullable Configuration conf) {<a name="line.332"></a>
+<span class="sourceLineNo">333</span> super(conf);<a name="line.333"></a>
+<span class="sourceLineNo">334</span><a name="line.334"></a>
+<span class="sourceLineNo">335</span> // a hbase checksum verification failure will cause unit tests to fail<a name="line.335"></a>
+<span class="sourceLineNo">336</span> ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.336"></a>
+<span class="sourceLineNo">337</span><a name="line.337"></a>
+<span class="sourceLineNo">338</span> // Save this for when setting default file:// breaks things<a name="line.338"></a>
+<span class="sourceLineNo">339</span> if (this.conf.get("fs.defaultFS") != null) {<a name="line.339"></a>
+<span class="sourceLineNo">340</span> this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.340"></a>
+<span class="sourceLineNo">341</span> }<a name="line.341"></a>
+<span class="sourceLineNo">342</span> if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.342"></a>
+<span class="sourceLineNo">343</span> this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.343"></a>
+<span class="sourceLineNo">344</span> }<a name="line.344"></a>
+<span class="sourceLineNo">345</span> // Every cluster is a local cluster until we start DFS<a name="line.345"></a>
+<span class="sourceLineNo">346</span> // Note that conf could be null, but this.conf will not be<a name="line.346"></a>
+<span class="sourceLineNo">347</span> String dataTestDir = getDataTestDir().toString();<a name="line.347"></a>
+<span class="sourceLineNo">348</span> this.conf.set("fs.defaultFS","file:///");<a name="line.348"></a>
+<span class="sourceLineNo">349</span> this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.349"></a>
+<span class="sourceLineNo">350</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.350"></a>
+<span class="sourceLineNo">351</span> this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.351"></a>
+<span class="sourceLineNo">352</span> // If the value for random ports isn't set set it to true, thus making<a name="line.352"></a>
+<span class="sourceLineNo">353</span> // tests opt-out for random port assignment<a name="line.353"></a>
+<span class="sourceLineNo">354</span> this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.354"></a>
+<span class="sourceLineNo">355</span> this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.355"></a>
+<span class="sourceLineNo">356</span> }<a name="line.356"></a>
+<span class="sourceLineNo">357</span><a name="line.357"></a>
+<span class="sourceLineNo">358</span> /**<a name="line.358"></a>
+<span class="sourceLineNo">359</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.359"></a>
+<span class="sourceLineNo">360</span> * @return a normal HBaseTestingUtility<a name="line.360"></a>
+<span class="sourceLineNo">361</span> */<a name="line.361"></a>
+<span class="sourceLineNo">362</span> @Deprecated<a name="line.362"></a>
+<span class="sourceLineNo">363</span> public static HBaseTestingUtility createLocalHTU() {<a name="line.363"></a>
+<span class="sourceLineNo">364</span> return new HBaseTestingUtility();<a name="line.364"></a>
+<span class="sourceLineNo">365</span> }<a name="line.365"></a>
+<span class="sourceLineNo">366</span><a name="line.366"></a>
+<span class="sourceLineNo">367</span> /**<a name="line.367"></a>
+<span class="sourceLineNo">368</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.368"></a>
+<span class="sourceLineNo">369</span> * @return a normal HBaseTestingUtility<a name="line.369"></a>
+<span class="sourceLineNo">370</span> */<a name="line.370"></a>
+<span class="sourceLineNo">371</span> @Deprecated<a name="line.371"></a>
+<span class="sourceLineNo">372</span> public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.372"></a>
+<span class="sourceLineNo">373</span> return new HBaseTestingUtility(c);<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> /**<a name="line.376"></a>
+<span class="sourceLineNo">377</span> * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.377"></a>
+<span class="sourceLineNo">378</span> */<a name="line.378"></a>
+<span class="sourceLineNo">379</span> public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.379"></a>
+<span class="sourceLineNo">380</span> closeRegionAndWAL((HRegion)r);<a name="line.380"></a>
+<span class="sourceLineNo">381</span> }<a name="line.381"></a>
+<span class="sourceLineNo">382</span><a name="line.382"></a>
+<span class="sourceLineNo">383</span> /**<a name="line.383"></a>
+<span class="sourceLineNo">384</span> * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.384"></a>
+<span class="sourceLineNo">385</span> */<a name="line.385"></a>
+<span class="sourceLineNo">386</span> public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.386"></a>
+<span class="sourceLineNo">387</span> if (r == null) return;<a name="line.387"></a>
+<span class="sourceLineNo">388</span> r.close();<a name="line.388"></a>
+<span class="sourceLineNo">389</span> if (r.getWAL() == null) return;<a name="line.389"></a>
+<span class="sourceLineNo">390</span> r.getWAL().close();<a name="line.390"></a>
+<span class="sourceLineNo">391</span> }<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> * Returns this classes's instance of {@link Configuration}. Be careful how<a name="line.394"></a>
+<span class="sourceLineNo">395</span> * you use the returned Configuration since {@link Connection} instances<a name="line.395"></a>
+<span class="sourceLineNo">396</span> * can be shared. The Map of Connections is keyed by the Configuration. If<a name="line.396"></a>
+<span class="sourceLineNo">397</span> * say, a Connection was being used against a cluster that had been shutdown,<a name="line.397"></a>
+<span class="sourceLineNo">398</span> * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.398"></a>
+<span class="sourceLineNo">399</span> * be wholesome. Rather than use the return direct, its usually best to<a name="line.399"></a>
+<span class="sourceLineNo">400</span> * make a copy and use that. Do<a name="line.400"></a>
+<span class="sourceLineNo">401</span> * <code>Configuration c = new Configuration(INSTANCE.getConfiguration());</code><a name="line.401"></a>
+<span class="sourceLineNo">402</span> * @return Instance of Configuration.<a name="line.402"></a>
+<span class="sourceLineNo">403</span> */<a name="line.403"></a>
+<span class="sourceLineNo">404</span> @Override<a name="line.404"></a>
+<span class="sourceLineNo">405</span> public Configuration getConfiguration() {<a name="line.405"></a>
+<span class="sourceLineNo">406</span> return super.getConfiguration();<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> public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.409"></a>
+<span class="sourceLineNo">410</span> this.hbaseCluster = hbaseCluster;<a name="line.410"></a>
+<span class="sourceLineNo">411</span> }<a name="line.411"></a>
+<span class="sourceLineNo">412</span><a name="line.412"></a>
+<span class="sourceLineNo">413</span> /**<a name="line.413"></a>
+<span class="sourceLineNo">414</span> * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.414"></a>
+<span class="sourceLineNo">415</span> * Give it a random name so can have many concurrent tests running if<a name="line.415"></a>
+<span class="sourceLineNo">416</span> * we need to. It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.416"></a>
+<span class="sourceLineNo">417</span> * System property, as it's what minidfscluster bases<a name="line.417"></a>
+<span class="sourceLineNo">418</span> * it data dir on. Moding a System property is not the way to do concurrent<a name="line.418"></a>
+<span class="sourceLineNo">419</span> * instances -- another instance could grab the temporary<a name="line.419"></a>
+<span class="sourceLineNo">420</span> * value unintentionally -- but not anything can do about it at moment;<a name="line.420"></a>
+<span class="sourceLineNo">421</span> * single instance only is how the minidfscluster works.<a name="line.421"></a>
+<span class="sourceLineNo">422</span> *<a name="line.422"></a>
+<span class="sourceLineNo">423</span> * We also create the underlying directory for<a name="line.423"></a>
+<span class="sourceLineNo">424</span> * hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.424"></a>
+<span class="sourceLineNo">425</span> * in the conf, and as a system property for hadoop.tmp.dir<a name="line.425"></a>
+<span class="sourceLineNo">426</span> *<a name="line.426"></a>
+<span class="sourceLineNo">427</span> * @return The calculated data test build directory, if newly-created.<a name="line.427"></a>
+<span class="sourceLineNo">428</span> */<a name="line.428"></a>
+<span class="sourceLineNo">429</span> @Override<a name="line.429"></a>
+<span class="sourceLineNo">430</span> protected Path setupDataTestDir() {<a name="line.430"></a>
+<span class="sourceLineNo">431</span> Path testPath = super.setupDataTestDir();<a name="line.431"></a>
+<span class="sourceLineNo">432</span> if (null == testPath) {<a name="line.432"></a>
+<span class="sourceLineNo">433</span> return null;<a name="line.433"></a>
+<span class="sourceLineNo">434</span> }<a name="line.434"></a>
+<span class="sourceLineNo">435</span><a name="line.435"></a>
+<span class="sourceLineNo">436</span> createSubDirAndSystemProperty(<a name="line.436"></a>
+<span class="sourceLineNo">437</span> "hadoop.log.dir",<a name="line.437"></a>
+<span class="sourceLineNo">438</span> testPath, "hadoop-log-dir");<a name="line.438"></a>
+<span class="sourceLineNo">439</span><a name="line.439"></a>
+<span class="sourceLineNo">440</span> // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.440"></a>
+<span class="sourceLineNo">441</span> // we want our own value to ensure uniqueness on the same machine<a name="line.441"></a>
+<span class="sourceLineNo">442</span> createSubDirAndSystemProperty(<a name="line.442"></a>
+<span class="sourceLineNo">443</span> "hadoop.tmp.dir",<a name="line.443"></a>
+<span class="sourceLineNo">444</span> testPath, "hadoop-tmp-dir");<a name="line.444"></a>
+<span class="sourceLineNo">445</span><a name="line.445"></a>
+<span class="sourceLineNo">446</span> // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.446"></a>
+<span class="sourceLineNo">447</span> createSubDir(<a name="line.447"></a>
+<span class="sourceLineNo">448</span> "mapreduce.cluster.local.dir",<a name="line.448"></a>
+<span class="sourceLineNo">449</span> testPath, "mapred-local-dir");<a name="line.449"></a>
+<span class="sourceLineNo">450</span><a name="line.450"></a>
+<span class="sourceLineNo">451</span> return testPath;<a name="line.451"></a>
+<span class="sourceLineNo">452</span> }<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span> private void createSubDirAndSystemProperty(<a name="line.454"></a>
+<span class="sourceLineNo">455</span> String propertyName, Path parent, String subDirName){<a name="line.455"></a>
+<span class="sourceLineNo">456</span><a name="line.456"></a>
+<span class="sourceLineNo">457</span> String sysValue = System.getProperty(propertyName);<a name="line.457"></a>
+<span class="sourceLineNo">458</span><a name="line.458"></a>
+<span class="sourceLineNo">459</span> if (sysValue != null) {<a name="line.459"></a>
+<span class="sourceLineNo">460</span> // There is already a value set. So we do nothing but hope<a name="line.460"></a>
+<span class="sourceLineNo">461</span> // that there will be no conflicts<a name="line.461"></a>
+<span class="sourceLineNo">462</span> LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.462"></a>
+<span class="sourceLineNo">463</span> sysValue + " so I do NOT create it in " + parent);<a name="line.463"></a>
+<span class="sourceLineNo">464</span> String confValue = conf.get(propertyName);<a name="line.464"></a>
+<span class="sourceLineNo">465</span> if (confValue != null && !confValue.endsWith(sysValue)){<a name="line.465"></a>
+<span class="sourceLineNo">466</span> LOG.warn(<a name="line.466"></a>
+<span class="sourceLineNo">467</span> propertyName + " property value differs in configuration and system: "+<a name="line.467"></a>
+<span class="sourceLineNo">468</span> "Configuration="+confValue+" while System="+sysValue+<a name="line.468"></a>
+<span class="sourceLineNo">469</span> " Erasing configuration value by system value."<a name="line.469"></a>
+<span class="sourceLineNo">470</span> );<a name="line.470"></a>
+<span class="sourceLineNo">471</span> }<a name="line.471"></a>
+<span class="sourceLineNo">472</span> conf.set(propertyName, sysValue);<a name="line.472"></a>
+<span class="sourceLineNo">473</span> } else {<a name="line.473"></a>
+<span class="sourceLineNo">474</span> // Ok, it's not set, so we create it as a subdirectory<a name="line.474"></a>
+<span class="sourceLineNo">475</span> createSubDir(propertyName, parent, subDirName);<a name="line.475"></a>
+<span class="sourceLineNo">476</span> System.setProperty(propertyName, conf.get(propertyName));<a name="line.476"></a>
+<span class="sourceLineNo">477</span> }<a name="line.477"></a>
+<span class="sourceLineNo">478</span> }<a name="line.478"></a>
+<span class="sourceLineNo">479</span><a name="line.479"></a>
+<span class="sourceLineNo">480</span> /**<a name="line.480"></a>
+<span class="sourceLineNo">481</span> * @return Where to write test data on the test filesystem; Returns working directory<a name="line.481"></a>
+<span class="sourceLineNo">482</span> * for the test filesystem by default<a name="line.482"></a>
+<span class="sourceLineNo">483</span> * @see #setupDataTestDirOnTestFS()<a name="line.483"></a>
+<span class="sourceLineNo">484</span> * @see #getTestFileSystem()<a name="line.484"></a>
+<span class="sourceLineNo">485</span> */<a name="line.485"></a>
+<span class="sourceLineNo">486</span> private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.486"></a>
+<span class="sourceLineNo">487</span> FileSystem fs = getTestFileSystem();<a name="line.487"></a>
+<span class="sourceLineNo">488</span> return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.488"></a>
+<span class="sourceLineNo">489</span> }<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> * @return META table descriptor<a name="line.492"></a>
+<span class="sourceLineNo">493</span> * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.493"></a>
+<span class="sourceLineNo">494</span> * use {@link #getMetaTableDescriptorBuilder()}<a name="line.494"></a>
+<span class="sourceLineNo">495</span> */<a name="line.495"></a>
+<span class="sourceLineNo">496</span> @Deprecated<a name="line.496"></a>
+<span class="sourceLineNo">497</span> public HTableDescriptor getMetaTableDescriptor() {<a name="line.497"></a>
+<span class="sourceLineNo">498</span> return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.498"></a>
+<span class="sourceLineNo">499</span> }<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> * @return META table descriptor<a name="line.502"></a>
+<span class="sourceLineNo">503</span> */<a name="line.503"></a>
+<span class="sourceLineNo">504</span> public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.504"></a>
+<span class="sourceLineNo">505</span> try {<a name="line.505"></a>
+<span class="sourceLineNo">506</span> return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.506"></a>
+<span class="sourceLineNo">507</span> } catch (IOException e) {<a name="line.507"></a>
+<span class="sourceLineNo">508</span> throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.508"></a>
+<span class="sourceLineNo">509</span> }<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> /**<a name="line.512"></a>
+<span class="sourceLineNo">513</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.513"></a>
+<span class="sourceLineNo">514</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.514"></a>
+<span class="sourceLineNo">515</span> * if the test relies on it.<a name="line.515"></a>
+<span class="sourceLineNo">516</span> * @return a unique path in the test filesystem<a name="line.516"></a>
+<span class="sourceLineNo">517</span> */<a name="line.517"></a>
+<span class="sourceLineNo">518</span> public Path getDataTestDirOnTestFS() throws IOException {<a name="line.518"></a>
+<span class="sourceLineNo">519</span> if (dataTestDirOnTestFS == null) {<a name="line.519"></a>
+<span class="sourceLineNo">520</span> setupDataTestDirOnTestFS();<a name="line.520"></a>
+<span class="sourceLineNo">521</span> }<a name="line.521"></a>
+<span class="sourceLineNo">522</span><a name="line.522"></a>
+<span class="sourceLineNo">523</span> return dataTestDirOnTestFS;<a name="line.523"></a>
+<span class="sourceLineNo">524</span> }<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> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.527"></a>
+<span class="sourceLineNo">528</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.528"></a>
+<span class="sourceLineNo">529</span> * if the test relies on it.<a name="line.529"></a>
+<span class="sourceLineNo">530</span> * @return a unique path in the test filesystem<a name="line.530"></a>
+<span class="sourceLineNo">531</span> * @param subdirName name of the subdir to create under the base test dir<a name="line.531"></a>
+<span class="sourceLineNo">532</span> */<a name="line.532"></a>
+<span class="sourceLineNo">533</span> public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.533"></a>
+<span class="sourceLineNo">534</span> return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.534"></a>
+<span class="sourceLineNo">535</span> }<a name="line.535"></a>
+<span class="sourceLineNo">536</span><a name="line.536"></a>
+<span class="sourceLineNo">537</span> /**<a name="line.537"></a>
+<span cla
<TRUNCATED>
[04/10] hbase-site git commit: Published site at
e8df847d4ed16b8432221d28bcfc00e1621df586.
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html
index 65a28b9..0c894de 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html
@@ -179,4146 +179,4145 @@
<span class="sourceLineNo">171</span> * avoiding port contention if another local HBase instance is already running).<a name="line.171"></a>
<span class="sourceLineNo">172</span> * <p>To preserve test data directories, pass the system property "hbase.testing.preserve.testdir"<a name="line.172"></a>
<span class="sourceLineNo">173</span> * setting it to true.<a name="line.173"></a>
-<span class="sourceLineNo">174</span> * For triggering test.<a name="line.174"></a>
-<span class="sourceLineNo">175</span> */<a name="line.175"></a>
-<span class="sourceLineNo">176</span>@InterfaceAudience.Public<a name="line.176"></a>
-<span class="sourceLineNo">177</span>@SuppressWarnings("deprecation")<a name="line.177"></a>
-<span class="sourceLineNo">178</span>public class HBaseTestingUtility extends HBaseZKTestingUtility {<a name="line.178"></a>
-<span class="sourceLineNo">179</span><a name="line.179"></a>
-<span class="sourceLineNo">180</span> /**<a name="line.180"></a>
-<span class="sourceLineNo">181</span> * System property key to get test directory value. Name is as it is because mini dfs has<a name="line.181"></a>
-<span class="sourceLineNo">182</span> * hard-codings to put test data here. It should NOT be used directly in HBase, as it's a property<a name="line.182"></a>
-<span class="sourceLineNo">183</span> * used in mini dfs.<a name="line.183"></a>
-<span class="sourceLineNo">184</span> * @deprecated can be used only with mini dfs<a name="line.184"></a>
-<span class="sourceLineNo">185</span> */<a name="line.185"></a>
-<span class="sourceLineNo">186</span> @Deprecated<a name="line.186"></a>
-<span class="sourceLineNo">187</span> private static final String TEST_DIRECTORY_KEY = "test.build.data";<a name="line.187"></a>
-<span class="sourceLineNo">188</span><a name="line.188"></a>
-<span class="sourceLineNo">189</span> public static final String REGIONS_PER_SERVER_KEY = "hbase.test.regions-per-server";<a name="line.189"></a>
-<span class="sourceLineNo">190</span> /**<a name="line.190"></a>
-<span class="sourceLineNo">191</span> * The default number of regions per regionserver when creating a pre-split<a name="line.191"></a>
-<span class="sourceLineNo">192</span> * table.<a name="line.192"></a>
-<span class="sourceLineNo">193</span> */<a name="line.193"></a>
-<span class="sourceLineNo">194</span> public static final int DEFAULT_REGIONS_PER_SERVER = 3;<a name="line.194"></a>
+<span class="sourceLineNo">174</span> */<a name="line.174"></a>
+<span class="sourceLineNo">175</span>@InterfaceAudience.Public<a name="line.175"></a>
+<span class="sourceLineNo">176</span>@SuppressWarnings("deprecation")<a name="line.176"></a>
+<span class="sourceLineNo">177</span>public class HBaseTestingUtility extends HBaseZKTestingUtility {<a name="line.177"></a>
+<span class="sourceLineNo">178</span><a name="line.178"></a>
+<span class="sourceLineNo">179</span> /**<a name="line.179"></a>
+<span class="sourceLineNo">180</span> * System property key to get test directory value. Name is as it is because mini dfs has<a name="line.180"></a>
+<span class="sourceLineNo">181</span> * hard-codings to put test data here. It should NOT be used directly in HBase, as it's a property<a name="line.181"></a>
+<span class="sourceLineNo">182</span> * used in mini dfs.<a name="line.182"></a>
+<span class="sourceLineNo">183</span> * @deprecated can be used only with mini dfs<a name="line.183"></a>
+<span class="sourceLineNo">184</span> */<a name="line.184"></a>
+<span class="sourceLineNo">185</span> @Deprecated<a name="line.185"></a>
+<span class="sourceLineNo">186</span> private static final String TEST_DIRECTORY_KEY = "test.build.data";<a name="line.186"></a>
+<span class="sourceLineNo">187</span><a name="line.187"></a>
+<span class="sourceLineNo">188</span> public static final String REGIONS_PER_SERVER_KEY = "hbase.test.regions-per-server";<a name="line.188"></a>
+<span class="sourceLineNo">189</span> /**<a name="line.189"></a>
+<span class="sourceLineNo">190</span> * The default number of regions per regionserver when creating a pre-split<a name="line.190"></a>
+<span class="sourceLineNo">191</span> * table.<a name="line.191"></a>
+<span class="sourceLineNo">192</span> */<a name="line.192"></a>
+<span class="sourceLineNo">193</span> public static final int DEFAULT_REGIONS_PER_SERVER = 3;<a name="line.193"></a>
+<span class="sourceLineNo">194</span><a name="line.194"></a>
<span class="sourceLineNo">195</span><a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span> public static final String PRESPLIT_TEST_TABLE_KEY = "hbase.test.pre-split-table";<a name="line.197"></a>
-<span class="sourceLineNo">198</span> public static final boolean PRESPLIT_TEST_TABLE = true;<a name="line.198"></a>
-<span class="sourceLineNo">199</span><a name="line.199"></a>
-<span class="sourceLineNo">200</span> private MiniDFSCluster dfsCluster = null;<a name="line.200"></a>
-<span class="sourceLineNo">201</span><a name="line.201"></a>
-<span class="sourceLineNo">202</span> private volatile HBaseCluster hbaseCluster = null;<a name="line.202"></a>
-<span class="sourceLineNo">203</span> private MiniMRCluster mrCluster = null;<a name="line.203"></a>
-<span class="sourceLineNo">204</span><a name="line.204"></a>
-<span class="sourceLineNo">205</span> /** If there is a mini cluster running for this testing utility instance. */<a name="line.205"></a>
-<span class="sourceLineNo">206</span> private volatile boolean miniClusterRunning;<a name="line.206"></a>
-<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span> private String hadoopLogDir;<a name="line.208"></a>
-<span class="sourceLineNo">209</span><a name="line.209"></a>
-<span class="sourceLineNo">210</span> /** Directory on test filesystem where we put the data for this instance of<a name="line.210"></a>
-<span class="sourceLineNo">211</span> * HBaseTestingUtility*/<a name="line.211"></a>
-<span class="sourceLineNo">212</span> private Path dataTestDirOnTestFS = null;<a name="line.212"></a>
-<span class="sourceLineNo">213</span><a name="line.213"></a>
-<span class="sourceLineNo">214</span> /**<a name="line.214"></a>
-<span class="sourceLineNo">215</span> * Shared cluster connection.<a name="line.215"></a>
-<span class="sourceLineNo">216</span> */<a name="line.216"></a>
-<span class="sourceLineNo">217</span> private volatile Connection connection;<a name="line.217"></a>
-<span class="sourceLineNo">218</span><a name="line.218"></a>
-<span class="sourceLineNo">219</span> /** Filesystem URI used for map-reduce mini-cluster setup */<a name="line.219"></a>
-<span class="sourceLineNo">220</span> private static String FS_URI;<a name="line.220"></a>
-<span class="sourceLineNo">221</span><a name="line.221"></a>
-<span class="sourceLineNo">222</span> /** This is for unit tests parameterized with a single boolean. */<a name="line.222"></a>
-<span class="sourceLineNo">223</span> public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();<a name="line.223"></a>
-<span class="sourceLineNo">224</span><a name="line.224"></a>
-<span class="sourceLineNo">225</span> /**<a name="line.225"></a>
-<span class="sourceLineNo">226</span> * Checks to see if a specific port is available.<a name="line.226"></a>
-<span class="sourceLineNo">227</span> *<a name="line.227"></a>
-<span class="sourceLineNo">228</span> * @param port the port number to check for availability<a name="line.228"></a>
-<span class="sourceLineNo">229</span> * @return <tt>true</tt> if the port is available, or <tt>false</tt> if not<a name="line.229"></a>
-<span class="sourceLineNo">230</span> */<a name="line.230"></a>
-<span class="sourceLineNo">231</span> public static boolean available(int port) {<a name="line.231"></a>
-<span class="sourceLineNo">232</span> ServerSocket ss = null;<a name="line.232"></a>
-<span class="sourceLineNo">233</span> DatagramSocket ds = null;<a name="line.233"></a>
-<span class="sourceLineNo">234</span> try {<a name="line.234"></a>
-<span class="sourceLineNo">235</span> ss = new ServerSocket(port);<a name="line.235"></a>
-<span class="sourceLineNo">236</span> ss.setReuseAddress(true);<a name="line.236"></a>
-<span class="sourceLineNo">237</span> ds = new DatagramSocket(port);<a name="line.237"></a>
-<span class="sourceLineNo">238</span> ds.setReuseAddress(true);<a name="line.238"></a>
-<span class="sourceLineNo">239</span> return true;<a name="line.239"></a>
-<span class="sourceLineNo">240</span> } catch (IOException e) {<a name="line.240"></a>
-<span class="sourceLineNo">241</span> // Do nothing<a name="line.241"></a>
-<span class="sourceLineNo">242</span> } finally {<a name="line.242"></a>
-<span class="sourceLineNo">243</span> if (ds != null) {<a name="line.243"></a>
-<span class="sourceLineNo">244</span> ds.close();<a name="line.244"></a>
-<span class="sourceLineNo">245</span> }<a name="line.245"></a>
-<span class="sourceLineNo">246</span><a name="line.246"></a>
-<span class="sourceLineNo">247</span> if (ss != null) {<a name="line.247"></a>
-<span class="sourceLineNo">248</span> try {<a name="line.248"></a>
-<span class="sourceLineNo">249</span> ss.close();<a name="line.249"></a>
-<span class="sourceLineNo">250</span> } catch (IOException e) {<a name="line.250"></a>
-<span class="sourceLineNo">251</span> /* should not be thrown */<a name="line.251"></a>
-<span class="sourceLineNo">252</span> }<a name="line.252"></a>
-<span class="sourceLineNo">253</span> }<a name="line.253"></a>
-<span class="sourceLineNo">254</span> }<a name="line.254"></a>
-<span class="sourceLineNo">255</span><a name="line.255"></a>
-<span class="sourceLineNo">256</span> return false;<a name="line.256"></a>
-<span class="sourceLineNo">257</span> }<a name="line.257"></a>
-<span class="sourceLineNo">258</span><a name="line.258"></a>
-<span class="sourceLineNo">259</span> /**<a name="line.259"></a>
-<span class="sourceLineNo">260</span> * Create all combinations of Bloom filters and compression algorithms for<a name="line.260"></a>
-<span class="sourceLineNo">261</span> * testing.<a name="line.261"></a>
-<span class="sourceLineNo">262</span> */<a name="line.262"></a>
-<span class="sourceLineNo">263</span> private static List<Object[]> bloomAndCompressionCombinations() {<a name="line.263"></a>
-<span class="sourceLineNo">264</span> List<Object[]> configurations = new ArrayList<>();<a name="line.264"></a>
-<span class="sourceLineNo">265</span> for (Compression.Algorithm comprAlgo :<a name="line.265"></a>
-<span class="sourceLineNo">266</span> HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {<a name="line.266"></a>
-<span class="sourceLineNo">267</span> for (BloomType bloomType : BloomType.values()) {<a name="line.267"></a>
-<span class="sourceLineNo">268</span> configurations.add(new Object[] { comprAlgo, bloomType });<a name="line.268"></a>
-<span class="sourceLineNo">269</span> }<a name="line.269"></a>
-<span class="sourceLineNo">270</span> }<a name="line.270"></a>
-<span class="sourceLineNo">271</span> return Collections.unmodifiableList(configurations);<a name="line.271"></a>
-<span class="sourceLineNo">272</span> }<a name="line.272"></a>
-<span class="sourceLineNo">273</span><a name="line.273"></a>
-<span class="sourceLineNo">274</span> /**<a name="line.274"></a>
-<span class="sourceLineNo">275</span> * Create combination of memstoreTS and tags<a name="line.275"></a>
-<span class="sourceLineNo">276</span> */<a name="line.276"></a>
-<span class="sourceLineNo">277</span> private static List<Object[]> memStoreTSAndTagsCombination() {<a name="line.277"></a>
-<span class="sourceLineNo">278</span> List<Object[]> configurations = new ArrayList<>();<a name="line.278"></a>
-<span class="sourceLineNo">279</span> configurations.add(new Object[] { false, false });<a name="line.279"></a>
-<span class="sourceLineNo">280</span> configurations.add(new Object[] { false, true });<a name="line.280"></a>
-<span class="sourceLineNo">281</span> configurations.add(new Object[] { true, false });<a name="line.281"></a>
-<span class="sourceLineNo">282</span> configurations.add(new Object[] { true, true });<a name="line.282"></a>
-<span class="sourceLineNo">283</span> return Collections.unmodifiableList(configurations);<a name="line.283"></a>
-<span class="sourceLineNo">284</span> }<a name="line.284"></a>
-<span class="sourceLineNo">285</span><a name="line.285"></a>
-<span class="sourceLineNo">286</span> public static List<Object[]> memStoreTSTagsAndOffheapCombination() {<a name="line.286"></a>
-<span class="sourceLineNo">287</span> List<Object[]> configurations = new ArrayList<>();<a name="line.287"></a>
-<span class="sourceLineNo">288</span> configurations.add(new Object[] { false, false, true });<a name="line.288"></a>
-<span class="sourceLineNo">289</span> configurations.add(new Object[] { false, false, false });<a name="line.289"></a>
-<span class="sourceLineNo">290</span> configurations.add(new Object[] { false, true, true });<a name="line.290"></a>
-<span class="sourceLineNo">291</span> configurations.add(new Object[] { false, true, false });<a name="line.291"></a>
-<span class="sourceLineNo">292</span> configurations.add(new Object[] { true, false, true });<a name="line.292"></a>
-<span class="sourceLineNo">293</span> configurations.add(new Object[] { true, false, false });<a name="line.293"></a>
-<span class="sourceLineNo">294</span> configurations.add(new Object[] { true, true, true });<a name="line.294"></a>
-<span class="sourceLineNo">295</span> configurations.add(new Object[] { true, true, false });<a name="line.295"></a>
-<span class="sourceLineNo">296</span> return Collections.unmodifiableList(configurations);<a name="line.296"></a>
-<span class="sourceLineNo">297</span> }<a name="line.297"></a>
-<span class="sourceLineNo">298</span><a name="line.298"></a>
-<span class="sourceLineNo">299</span> public static final Collection<Object[]> BLOOM_AND_COMPRESSION_COMBINATIONS =<a name="line.299"></a>
-<span class="sourceLineNo">300</span> bloomAndCompressionCombinations();<a name="line.300"></a>
+<span class="sourceLineNo">196</span> public static final String PRESPLIT_TEST_TABLE_KEY = "hbase.test.pre-split-table";<a name="line.196"></a>
+<span class="sourceLineNo">197</span> public static final boolean PRESPLIT_TEST_TABLE = true;<a name="line.197"></a>
+<span class="sourceLineNo">198</span><a name="line.198"></a>
+<span class="sourceLineNo">199</span> private MiniDFSCluster dfsCluster = null;<a name="line.199"></a>
+<span class="sourceLineNo">200</span><a name="line.200"></a>
+<span class="sourceLineNo">201</span> private volatile HBaseCluster hbaseCluster = null;<a name="line.201"></a>
+<span class="sourceLineNo">202</span> private MiniMRCluster mrCluster = null;<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span> /** If there is a mini cluster running for this testing utility instance. */<a name="line.204"></a>
+<span class="sourceLineNo">205</span> private volatile boolean miniClusterRunning;<a name="line.205"></a>
+<span class="sourceLineNo">206</span><a name="line.206"></a>
+<span class="sourceLineNo">207</span> private String hadoopLogDir;<a name="line.207"></a>
+<span class="sourceLineNo">208</span><a name="line.208"></a>
+<span class="sourceLineNo">209</span> /** Directory on test filesystem where we put the data for this instance of<a name="line.209"></a>
+<span class="sourceLineNo">210</span> * HBaseTestingUtility*/<a name="line.210"></a>
+<span class="sourceLineNo">211</span> private Path dataTestDirOnTestFS = null;<a name="line.211"></a>
+<span class="sourceLineNo">212</span><a name="line.212"></a>
+<span class="sourceLineNo">213</span> /**<a name="line.213"></a>
+<span class="sourceLineNo">214</span> * Shared cluster connection.<a name="line.214"></a>
+<span class="sourceLineNo">215</span> */<a name="line.215"></a>
+<span class="sourceLineNo">216</span> private volatile Connection connection;<a name="line.216"></a>
+<span class="sourceLineNo">217</span><a name="line.217"></a>
+<span class="sourceLineNo">218</span> /** Filesystem URI used for map-reduce mini-cluster setup */<a name="line.218"></a>
+<span class="sourceLineNo">219</span> private static String FS_URI;<a name="line.219"></a>
+<span class="sourceLineNo">220</span><a name="line.220"></a>
+<span class="sourceLineNo">221</span> /** This is for unit tests parameterized with a single boolean. */<a name="line.221"></a>
+<span class="sourceLineNo">222</span> public static final List<Object[]> MEMSTORETS_TAGS_PARAMETRIZED = memStoreTSAndTagsCombination();<a name="line.222"></a>
+<span class="sourceLineNo">223</span><a name="line.223"></a>
+<span class="sourceLineNo">224</span> /**<a name="line.224"></a>
+<span class="sourceLineNo">225</span> * Checks to see if a specific port is available.<a name="line.225"></a>
+<span class="sourceLineNo">226</span> *<a name="line.226"></a>
+<span class="sourceLineNo">227</span> * @param port the port number to check for availability<a name="line.227"></a>
+<span class="sourceLineNo">228</span> * @return <tt>true</tt> if the port is available, or <tt>false</tt> if not<a name="line.228"></a>
+<span class="sourceLineNo">229</span> */<a name="line.229"></a>
+<span class="sourceLineNo">230</span> public static boolean available(int port) {<a name="line.230"></a>
+<span class="sourceLineNo">231</span> ServerSocket ss = null;<a name="line.231"></a>
+<span class="sourceLineNo">232</span> DatagramSocket ds = null;<a name="line.232"></a>
+<span class="sourceLineNo">233</span> try {<a name="line.233"></a>
+<span class="sourceLineNo">234</span> ss = new ServerSocket(port);<a name="line.234"></a>
+<span class="sourceLineNo">235</span> ss.setReuseAddress(true);<a name="line.235"></a>
+<span class="sourceLineNo">236</span> ds = new DatagramSocket(port);<a name="line.236"></a>
+<span class="sourceLineNo">237</span> ds.setReuseAddress(true);<a name="line.237"></a>
+<span class="sourceLineNo">238</span> return true;<a name="line.238"></a>
+<span class="sourceLineNo">239</span> } catch (IOException e) {<a name="line.239"></a>
+<span class="sourceLineNo">240</span> // Do nothing<a name="line.240"></a>
+<span class="sourceLineNo">241</span> } finally {<a name="line.241"></a>
+<span class="sourceLineNo">242</span> if (ds != null) {<a name="line.242"></a>
+<span class="sourceLineNo">243</span> ds.close();<a name="line.243"></a>
+<span class="sourceLineNo">244</span> }<a name="line.244"></a>
+<span class="sourceLineNo">245</span><a name="line.245"></a>
+<span class="sourceLineNo">246</span> if (ss != null) {<a name="line.246"></a>
+<span class="sourceLineNo">247</span> try {<a name="line.247"></a>
+<span class="sourceLineNo">248</span> ss.close();<a name="line.248"></a>
+<span class="sourceLineNo">249</span> } catch (IOException e) {<a name="line.249"></a>
+<span class="sourceLineNo">250</span> /* should not be thrown */<a name="line.250"></a>
+<span class="sourceLineNo">251</span> }<a name="line.251"></a>
+<span class="sourceLineNo">252</span> }<a name="line.252"></a>
+<span class="sourceLineNo">253</span> }<a name="line.253"></a>
+<span class="sourceLineNo">254</span><a name="line.254"></a>
+<span class="sourceLineNo">255</span> return false;<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> /**<a name="line.258"></a>
+<span class="sourceLineNo">259</span> * Create all combinations of Bloom filters and compression algorithms for<a name="line.259"></a>
+<span class="sourceLineNo">260</span> * testing.<a name="line.260"></a>
+<span class="sourceLineNo">261</span> */<a name="line.261"></a>
+<span class="sourceLineNo">262</span> private static List<Object[]> bloomAndCompressionCombinations() {<a name="line.262"></a>
+<span class="sourceLineNo">263</span> List<Object[]> configurations = new ArrayList<>();<a name="line.263"></a>
+<span class="sourceLineNo">264</span> for (Compression.Algorithm comprAlgo :<a name="line.264"></a>
+<span class="sourceLineNo">265</span> HBaseCommonTestingUtility.COMPRESSION_ALGORITHMS) {<a name="line.265"></a>
+<span class="sourceLineNo">266</span> for (BloomType bloomType : BloomType.values()) {<a name="line.266"></a>
+<span class="sourceLineNo">267</span> configurations.add(new Object[] { comprAlgo, bloomType });<a name="line.267"></a>
+<span class="sourceLineNo">268</span> }<a name="line.268"></a>
+<span class="sourceLineNo">269</span> }<a name="line.269"></a>
+<span class="sourceLineNo">270</span> return Collections.unmodifiableList(configurations);<a name="line.270"></a>
+<span class="sourceLineNo">271</span> }<a name="line.271"></a>
+<span class="sourceLineNo">272</span><a name="line.272"></a>
+<span class="sourceLineNo">273</span> /**<a name="line.273"></a>
+<span class="sourceLineNo">274</span> * Create combination of memstoreTS and tags<a name="line.274"></a>
+<span class="sourceLineNo">275</span> */<a name="line.275"></a>
+<span class="sourceLineNo">276</span> private static List<Object[]> memStoreTSAndTagsCombination() {<a name="line.276"></a>
+<span class="sourceLineNo">277</span> List<Object[]> configurations = new ArrayList<>();<a name="line.277"></a>
+<span class="sourceLineNo">278</span> configurations.add(new Object[] { false, false });<a name="line.278"></a>
+<span class="sourceLineNo">279</span> configurations.add(new Object[] { false, true });<a name="line.279"></a>
+<span class="sourceLineNo">280</span> configurations.add(new Object[] { true, false });<a name="line.280"></a>
+<span class="sourceLineNo">281</span> configurations.add(new Object[] { true, true });<a name="line.281"></a>
+<span class="sourceLineNo">282</span> return Collections.unmodifiableList(configurations);<a name="line.282"></a>
+<span class="sourceLineNo">283</span> }<a name="line.283"></a>
+<span class="sourceLineNo">284</span><a name="line.284"></a>
+<span class="sourceLineNo">285</span> public static List<Object[]> memStoreTSTagsAndOffheapCombination() {<a name="line.285"></a>
+<span class="sourceLineNo">286</span> List<Object[]> configurations = new ArrayList<>();<a name="line.286"></a>
+<span class="sourceLineNo">287</span> configurations.add(new Object[] { false, false, true });<a name="line.287"></a>
+<span class="sourceLineNo">288</span> configurations.add(new Object[] { false, false, false });<a name="line.288"></a>
+<span class="sourceLineNo">289</span> configurations.add(new Object[] { false, true, true });<a name="line.289"></a>
+<span class="sourceLineNo">290</span> configurations.add(new Object[] { false, true, false });<a name="line.290"></a>
+<span class="sourceLineNo">291</span> configurations.add(new Object[] { true, false, true });<a name="line.291"></a>
+<span class="sourceLineNo">292</span> configurations.add(new Object[] { true, false, false });<a name="line.292"></a>
+<span class="sourceLineNo">293</span> configurations.add(new Object[] { true, true, true });<a name="line.293"></a>
+<span class="sourceLineNo">294</span> configurations.add(new Object[] { true, true, false });<a name="line.294"></a>
+<span class="sourceLineNo">295</span> return Collections.unmodifiableList(configurations);<a name="line.295"></a>
+<span class="sourceLineNo">296</span> }<a name="line.296"></a>
+<span class="sourceLineNo">297</span><a name="line.297"></a>
+<span class="sourceLineNo">298</span> public static final Collection<Object[]> BLOOM_AND_COMPRESSION_COMBINATIONS =<a name="line.298"></a>
+<span class="sourceLineNo">299</span> bloomAndCompressionCombinations();<a name="line.299"></a>
+<span class="sourceLineNo">300</span><a name="line.300"></a>
<span class="sourceLineNo">301</span><a name="line.301"></a>
-<span class="sourceLineNo">302</span><a name="line.302"></a>
-<span class="sourceLineNo">303</span> /**<a name="line.303"></a>
-<span class="sourceLineNo">304</span> * <p>Create an HBaseTestingUtility using a default configuration.<a name="line.304"></a>
-<span class="sourceLineNo">305</span> *<a name="line.305"></a>
-<span class="sourceLineNo">306</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.306"></a>
-<span class="sourceLineNo">307</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.307"></a>
-<span class="sourceLineNo">308</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.308"></a>
-<span class="sourceLineNo">309</span> *<a name="line.309"></a>
-<span class="sourceLineNo">310</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.310"></a>
-<span class="sourceLineNo">311</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.311"></a>
-<span class="sourceLineNo">312</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.312"></a>
-<span class="sourceLineNo">313</span> * at which point they will switch to using mini DFS for storage.<a name="line.313"></a>
-<span class="sourceLineNo">314</span> */<a name="line.314"></a>
-<span class="sourceLineNo">315</span> public HBaseTestingUtility() {<a name="line.315"></a>
-<span class="sourceLineNo">316</span> this(HBaseConfiguration.create());<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> * <p>Create an HBaseTestingUtility using a given configuration.<a name="line.320"></a>
-<span class="sourceLineNo">321</span> *<a name="line.321"></a>
-<span class="sourceLineNo">322</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.322"></a>
-<span class="sourceLineNo">323</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.323"></a>
-<span class="sourceLineNo">324</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.324"></a>
-<span class="sourceLineNo">325</span> *<a name="line.325"></a>
-<span class="sourceLineNo">326</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.326"></a>
-<span class="sourceLineNo">327</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.327"></a>
-<span class="sourceLineNo">328</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.328"></a>
-<span class="sourceLineNo">329</span> * at which point they will switch to using mini DFS for storage.<a name="line.329"></a>
-<span class="sourceLineNo">330</span> *<a name="line.330"></a>
-<span class="sourceLineNo">331</span> * @param conf The configuration to use for further operations<a name="line.331"></a>
-<span class="sourceLineNo">332</span> */<a name="line.332"></a>
-<span class="sourceLineNo">333</span> public HBaseTestingUtility(@Nullable Configuration conf) {<a name="line.333"></a>
-<span class="sourceLineNo">334</span> super(conf);<a name="line.334"></a>
-<span class="sourceLineNo">335</span><a name="line.335"></a>
-<span class="sourceLineNo">336</span> // a hbase checksum verification failure will cause unit tests to fail<a name="line.336"></a>
-<span class="sourceLineNo">337</span> ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.337"></a>
-<span class="sourceLineNo">338</span><a name="line.338"></a>
-<span class="sourceLineNo">339</span> // Save this for when setting default file:// breaks things<a name="line.339"></a>
-<span class="sourceLineNo">340</span> if (this.conf.get("fs.defaultFS") != null) {<a name="line.340"></a>
-<span class="sourceLineNo">341</span> this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.341"></a>
-<span class="sourceLineNo">342</span> }<a name="line.342"></a>
-<span class="sourceLineNo">343</span> if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.343"></a>
-<span class="sourceLineNo">344</span> this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.344"></a>
-<span class="sourceLineNo">345</span> }<a name="line.345"></a>
-<span class="sourceLineNo">346</span> // Every cluster is a local cluster until we start DFS<a name="line.346"></a>
-<span class="sourceLineNo">347</span> // Note that conf could be null, but this.conf will not be<a name="line.347"></a>
-<span class="sourceLineNo">348</span> String dataTestDir = getDataTestDir().toString();<a name="line.348"></a>
-<span class="sourceLineNo">349</span> this.conf.set("fs.defaultFS","file:///");<a name="line.349"></a>
-<span class="sourceLineNo">350</span> this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.350"></a>
-<span class="sourceLineNo">351</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.351"></a>
-<span class="sourceLineNo">352</span> this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.352"></a>
-<span class="sourceLineNo">353</span> // If the value for random ports isn't set set it to true, thus making<a name="line.353"></a>
-<span class="sourceLineNo">354</span> // tests opt-out for random port assignment<a name="line.354"></a>
-<span class="sourceLineNo">355</span> this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.355"></a>
-<span class="sourceLineNo">356</span> this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.356"></a>
-<span class="sourceLineNo">357</span> }<a name="line.357"></a>
-<span class="sourceLineNo">358</span><a name="line.358"></a>
-<span class="sourceLineNo">359</span> /**<a name="line.359"></a>
-<span class="sourceLineNo">360</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.360"></a>
-<span class="sourceLineNo">361</span> * @return a normal HBaseTestingUtility<a name="line.361"></a>
-<span class="sourceLineNo">362</span> */<a name="line.362"></a>
-<span class="sourceLineNo">363</span> @Deprecated<a name="line.363"></a>
-<span class="sourceLineNo">364</span> public static HBaseTestingUtility createLocalHTU() {<a name="line.364"></a>
-<span class="sourceLineNo">365</span> return new HBaseTestingUtility();<a name="line.365"></a>
-<span class="sourceLineNo">366</span> }<a name="line.366"></a>
-<span class="sourceLineNo">367</span><a name="line.367"></a>
-<span class="sourceLineNo">368</span> /**<a name="line.368"></a>
-<span class="sourceLineNo">369</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.369"></a>
-<span class="sourceLineNo">370</span> * @return a normal HBaseTestingUtility<a name="line.370"></a>
-<span class="sourceLineNo">371</span> */<a name="line.371"></a>
-<span class="sourceLineNo">372</span> @Deprecated<a name="line.372"></a>
-<span class="sourceLineNo">373</span> public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.373"></a>
-<span class="sourceLineNo">374</span> return new HBaseTestingUtility(c);<a name="line.374"></a>
-<span class="sourceLineNo">375</span> }<a name="line.375"></a>
-<span class="sourceLineNo">376</span><a name="line.376"></a>
-<span class="sourceLineNo">377</span> /**<a name="line.377"></a>
-<span class="sourceLineNo">378</span> * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.378"></a>
-<span class="sourceLineNo">379</span> */<a name="line.379"></a>
-<span class="sourceLineNo">380</span> public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.380"></a>
-<span class="sourceLineNo">381</span> closeRegionAndWAL((HRegion)r);<a name="line.381"></a>
-<span class="sourceLineNo">382</span> }<a name="line.382"></a>
-<span class="sourceLineNo">383</span><a name="line.383"></a>
-<span class="sourceLineNo">384</span> /**<a name="line.384"></a>
-<span class="sourceLineNo">385</span> * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.385"></a>
-<span class="sourceLineNo">386</span> */<a name="line.386"></a>
-<span class="sourceLineNo">387</span> public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.387"></a>
-<span class="sourceLineNo">388</span> if (r == null) return;<a name="line.388"></a>
-<span class="sourceLineNo">389</span> r.close();<a name="line.389"></a>
-<span class="sourceLineNo">390</span> if (r.getWAL() == null) return;<a name="line.390"></a>
-<span class="sourceLineNo">391</span> r.getWAL().close();<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> /**<a name="line.394"></a>
-<span class="sourceLineNo">395</span> * Returns this classes's instance of {@link Configuration}. Be careful how<a name="line.395"></a>
-<span class="sourceLineNo">396</span> * you use the returned Configuration since {@link Connection} instances<a name="line.396"></a>
-<span class="sourceLineNo">397</span> * can be shared. The Map of Connections is keyed by the Configuration. If<a name="line.397"></a>
-<span class="sourceLineNo">398</span> * say, a Connection was being used against a cluster that had been shutdown,<a name="line.398"></a>
-<span class="sourceLineNo">399</span> * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.399"></a>
-<span class="sourceLineNo">400</span> * be wholesome. Rather than use the return direct, its usually best to<a name="line.400"></a>
-<span class="sourceLineNo">401</span> * make a copy and use that. Do<a name="line.401"></a>
-<span class="sourceLineNo">402</span> * <code>Configuration c = new Configuration(INSTANCE.getConfiguration());</code><a name="line.402"></a>
-<span class="sourceLineNo">403</span> * @return Instance of Configuration.<a name="line.403"></a>
-<span class="sourceLineNo">404</span> */<a name="line.404"></a>
-<span class="sourceLineNo">405</span> @Override<a name="line.405"></a>
-<span class="sourceLineNo">406</span> public Configuration getConfiguration() {<a name="line.406"></a>
-<span class="sourceLineNo">407</span> return super.getConfiguration();<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> public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.410"></a>
-<span class="sourceLineNo">411</span> this.hbaseCluster = hbaseCluster;<a name="line.411"></a>
-<span class="sourceLineNo">412</span> }<a name="line.412"></a>
-<span class="sourceLineNo">413</span><a name="line.413"></a>
-<span class="sourceLineNo">414</span> /**<a name="line.414"></a>
-<span class="sourceLineNo">415</span> * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.415"></a>
-<span class="sourceLineNo">416</span> * Give it a random name so can have many concurrent tests running if<a name="line.416"></a>
-<span class="sourceLineNo">417</span> * we need to. It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.417"></a>
-<span class="sourceLineNo">418</span> * System property, as it's what minidfscluster bases<a name="line.418"></a>
-<span class="sourceLineNo">419</span> * it data dir on. Moding a System property is not the way to do concurrent<a name="line.419"></a>
-<span class="sourceLineNo">420</span> * instances -- another instance could grab the temporary<a name="line.420"></a>
-<span class="sourceLineNo">421</span> * value unintentionally -- but not anything can do about it at moment;<a name="line.421"></a>
-<span class="sourceLineNo">422</span> * single instance only is how the minidfscluster works.<a name="line.422"></a>
-<span class="sourceLineNo">423</span> *<a name="line.423"></a>
-<span class="sourceLineNo">424</span> * We also create the underlying directory for<a name="line.424"></a>
-<span class="sourceLineNo">425</span> * hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.425"></a>
-<span class="sourceLineNo">426</span> * in the conf, and as a system property for hadoop.tmp.dir<a name="line.426"></a>
-<span class="sourceLineNo">427</span> *<a name="line.427"></a>
-<span class="sourceLineNo">428</span> * @return The calculated data test build directory, if newly-created.<a name="line.428"></a>
-<span class="sourceLineNo">429</span> */<a name="line.429"></a>
-<span class="sourceLineNo">430</span> @Override<a name="line.430"></a>
-<span class="sourceLineNo">431</span> protected Path setupDataTestDir() {<a name="line.431"></a>
-<span class="sourceLineNo">432</span> Path testPath = super.setupDataTestDir();<a name="line.432"></a>
-<span class="sourceLineNo">433</span> if (null == testPath) {<a name="line.433"></a>
-<span class="sourceLineNo">434</span> return null;<a name="line.434"></a>
-<span class="sourceLineNo">435</span> }<a name="line.435"></a>
-<span class="sourceLineNo">436</span><a name="line.436"></a>
-<span class="sourceLineNo">437</span> createSubDirAndSystemProperty(<a name="line.437"></a>
-<span class="sourceLineNo">438</span> "hadoop.log.dir",<a name="line.438"></a>
-<span class="sourceLineNo">439</span> testPath, "hadoop-log-dir");<a name="line.439"></a>
-<span class="sourceLineNo">440</span><a name="line.440"></a>
-<span class="sourceLineNo">441</span> // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.441"></a>
-<span class="sourceLineNo">442</span> // we want our own value to ensure uniqueness on the same machine<a name="line.442"></a>
-<span class="sourceLineNo">443</span> createSubDirAndSystemProperty(<a name="line.443"></a>
-<span class="sourceLineNo">444</span> "hadoop.tmp.dir",<a name="line.444"></a>
-<span class="sourceLineNo">445</span> testPath, "hadoop-tmp-dir");<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span> // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.447"></a>
-<span class="sourceLineNo">448</span> createSubDir(<a name="line.448"></a>
-<span class="sourceLineNo">449</span> "mapreduce.cluster.local.dir",<a name="line.449"></a>
-<span class="sourceLineNo">450</span> testPath, "mapred-local-dir");<a name="line.450"></a>
-<span class="sourceLineNo">451</span><a name="line.451"></a>
-<span class="sourceLineNo">452</span> return testPath;<a name="line.452"></a>
-<span class="sourceLineNo">453</span> }<a name="line.453"></a>
-<span class="sourceLineNo">454</span><a name="line.454"></a>
-<span class="sourceLineNo">455</span> private void createSubDirAndSystemProperty(<a name="line.455"></a>
-<span class="sourceLineNo">456</span> String propertyName, Path parent, String subDirName){<a name="line.456"></a>
-<span class="sourceLineNo">457</span><a name="line.457"></a>
-<span class="sourceLineNo">458</span> String sysValue = System.getProperty(propertyName);<a name="line.458"></a>
-<span class="sourceLineNo">459</span><a name="line.459"></a>
-<span class="sourceLineNo">460</span> if (sysValue != null) {<a name="line.460"></a>
-<span class="sourceLineNo">461</span> // There is already a value set. So we do nothing but hope<a name="line.461"></a>
-<span class="sourceLineNo">462</span> // that there will be no conflicts<a name="line.462"></a>
-<span class="sourceLineNo">463</span> LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.463"></a>
-<span class="sourceLineNo">464</span> sysValue + " so I do NOT create it in " + parent);<a name="line.464"></a>
-<span class="sourceLineNo">465</span> String confValue = conf.get(propertyName);<a name="line.465"></a>
-<span class="sourceLineNo">466</span> if (confValue != null && !confValue.endsWith(sysValue)){<a name="line.466"></a>
-<span class="sourceLineNo">467</span> LOG.warn(<a name="line.467"></a>
-<span class="sourceLineNo">468</span> propertyName + " property value differs in configuration and system: "+<a name="line.468"></a>
-<span class="sourceLineNo">469</span> "Configuration="+confValue+" while System="+sysValue+<a name="line.469"></a>
-<span class="sourceLineNo">470</span> " Erasing configuration value by system value."<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> conf.set(propertyName, sysValue);<a name="line.473"></a>
-<span class="sourceLineNo">474</span> } else {<a name="line.474"></a>
-<span class="sourceLineNo">475</span> // Ok, it's not set, so we create it as a subdirectory<a name="line.475"></a>
-<span class="sourceLineNo">476</span> createSubDir(propertyName, parent, subDirName);<a name="line.476"></a>
-<span class="sourceLineNo">477</span> System.setProperty(propertyName, conf.get(propertyName));<a name="line.477"></a>
-<span class="sourceLineNo">478</span> }<a name="line.478"></a>
-<span class="sourceLineNo">479</span> }<a name="line.479"></a>
-<span class="sourceLineNo">480</span><a name="line.480"></a>
-<span class="sourceLineNo">481</span> /**<a name="line.481"></a>
-<span class="sourceLineNo">482</span> * @return Where to write test data on the test filesystem; Returns working directory<a name="line.482"></a>
-<span class="sourceLineNo">483</span> * for the test filesystem by default<a name="line.483"></a>
-<span class="sourceLineNo">484</span> * @see #setupDataTestDirOnTestFS()<a name="line.484"></a>
-<span class="sourceLineNo">485</span> * @see #getTestFileSystem()<a name="line.485"></a>
-<span class="sourceLineNo">486</span> */<a name="line.486"></a>
-<span class="sourceLineNo">487</span> private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.487"></a>
-<span class="sourceLineNo">488</span> FileSystem fs = getTestFileSystem();<a name="line.488"></a>
-<span class="sourceLineNo">489</span> return new Path(fs.getWorkingDirectory(), "test-data");<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> /**<a name="line.492"></a>
-<span class="sourceLineNo">493</span> * @return META table descriptor<a name="line.493"></a>
-<span class="sourceLineNo">494</span> * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.494"></a>
-<span class="sourceLineNo">495</span> * use {@link #getMetaTableDescriptorBuilder()}<a name="line.495"></a>
-<span class="sourceLineNo">496</span> */<a name="line.496"></a>
-<span class="sourceLineNo">497</span> @Deprecated<a name="line.497"></a>
-<span class="sourceLineNo">498</span> public HTableDescriptor getMetaTableDescriptor() {<a name="line.498"></a>
-<span class="sourceLineNo">499</span> return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<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> /**<a name="line.502"></a>
-<span class="sourceLineNo">503</span> * @return META table descriptor<a name="line.503"></a>
-<span class="sourceLineNo">504</span> */<a name="line.504"></a>
-<span class="sourceLineNo">505</span> public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.505"></a>
-<span class="sourceLineNo">506</span> try {<a name="line.506"></a>
-<span class="sourceLineNo">507</span> return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.507"></a>
-<span class="sourceLineNo">508</span> } catch (IOException e) {<a name="line.508"></a>
-<span class="sourceLineNo">509</span> throw new RuntimeException("Unable to create META table descriptor", e);<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><a name="line.512"></a>
-<span class="sourceLineNo">513</span> /**<a name="line.513"></a>
-<span class="sourceLineNo">514</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.514"></a>
-<span class="sourceLineNo">515</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.515"></a>
-<span class="sourceLineNo">516</span> * if the test relies on it.<a name="line.516"></a>
-<span class="sourceLineNo">517</span> * @return a unique path in the test filesystem<a name="line.517"></a>
-<span class="sourceLineNo">518</span> */<a name="line.518"></a>
-<span class="sourceLineNo">519</span> public Path getDataTestDirOnTestFS() throws IOException {<a name="line.519"></a>
-<span class="sourceLineNo">520</span> if (dataTestDirOnTestFS == null) {<a name="line.520"></a>
-<span class="sourceLineNo">521</span> setupDataTestDirOnTestFS();<a name="line.521"></a>
-<span class="sourceLineNo">522</span> }<a name="line.522"></a>
-<span class="sourceLineNo">523</span><a name="line.523"></a>
-<span class="sourceLineNo">524</span> return dataTestDirOnTestFS;<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> /**<a name="line.527"></a>
-<span class="sourceLineNo">528</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.528"></a>
-<span class="sourceLineNo">529</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.529"></a>
-<span class="sourceLineNo">530</span> * if the test relies on it.<a name="line.530"></a>
-<span class="sourceLineNo">531</span> * @return a unique path in the test filesystem<a name="line.531"></a>
-<span class="sourceLineNo">532</span> * @param subdirName name of the subdir to create under the base test dir<a name="line.532"></a>
-<span class="sourceLineNo">533</span> */<a name="line.533"></a>
-<span class="sourceLineNo">534</span> public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.534"></a>
-<span class="sourceLineNo">535</span> return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.535"></a>
-<span class="sourceLineNo">536</span> }<a name="line.536"></a>
-<span class="sourceLineNo">537</span><a name="line.537"></a>
-<span class="sourceLineNo">538</span> /**<a name="line.538"></a>
-<span class="sourceLineNo">539</span> * Sets up a path in test filesystem to be used by tests.<a name="line.539"></a>
-<span class="sourceLineNo">540</span> * Creates a new directory if not already setup.<a name="line.540"></a>
-<span class="sourceLineNo">541</span> */<a name="line.541"></a>
-<span class="sourceLineNo">542</span> private void setupDataTestDirOnTestFS() throws IOException {<a name="line.542"></a>
-<span class="sourceLineNo">543</span> if (dataTestDirOnTestFS != null) {<a name="line.543"></a>
-<span class="sourceLineNo">544</span> LOG.warn("Data test on test fs dir already setup in "<a name="line.544"></a>
-<span class="sourceLineNo">545</span> + dataTestDirOnTestFS.toString());<a name="line.545"></a>
-<span class="sourceLineNo">546</span> return;<a name="line.546"></a>
-<span class="sourceLineNo">547</span> }<a name="line.547"></a>
-<span class="sourceLineNo">548</span> dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.548"></a>
-<span class="sourceLineNo">549</span> }<a name="line.549"></a>
-<span class="sourceLineNo">550</span><a name="line.550"></a>
-<span class="sourceLineNo">551</span> /**<a name="line.551"></a>
-<span class="sourceLineNo">552</span> * Sets up a new path in test filesystem to be used by tests.<a name="line.552"></a>
-<span class="sourceLineNo">553</span> */<a name="line.553"></a>
-<span class="sourceLineNo">554</span> private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.554"></a>
-<span class="sourceLineNo">555</span> //The file system can be either local, mini dfs, or if the configuration<a name="line.555"></a>
-<span class="sourceLineNo">556</span> //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.556"></a>
-<span class="sourceLineNo">557</span> //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.557"></a>
-<span class="sourceLineNo">558</span> //the working directory, and create a unique sub dir there<a name="line.558"></a>
-<span class="sourceLineNo">559</span> FileSystem fs = getTestFileSystem();<a name="line.559"></a>
-<span class="sourceLineNo">560</span> Path newDataTestDir;<a name="line.560"></a>
-<span class="sourceLineNo">561</span> String randomStr = getRandomUUID().toString();<a name="line.561"></a>
-<span class="sourceLineNo">562</span> if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.562"></a>
-<span class="sourceLineNo">563</span> newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.563"></a>
-<span class="sourceLineNo">564</span> File dataTestDir = new File(newDataTestDir.toString());<a name="line.564"></a>
-<span class="sourceLineNo">565</span> if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.565"></a>
-<span class="sourceLineNo">566</span> } else {<a name="line.566"></a>
-<span class="sourceLineNo">567</span> Path base = getBaseTestDirOnTestFS();<a name="line.567"></a>
-<span class="sourceLineNo">568</span> newDataTestDir = new Path(base, randomStr);<a name="line.568"></a>
-<span class="sourceLineNo">569</span> if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.569"></a>
-<span class="sourceLineNo">570</span> }<a name="line.570"></a>
-<span class="sourceLineNo">571</span> return newDataTestDir;<a name="line.571"></a>
-<span class="sourceLineNo">572</span> }<a name="line.572"></a>
-<span class="sourceLineNo">573</span><a name="line.573"></a>
-<span class="sourceLineNo">574</span> /**<a name="line.574"></a>
-<span class="sourceLineNo">575</span> * Cleans the test data directory on the test filesystem.<a name="line.575"></a>
-<span class="sourceLineNo">576</span> * @return True if we removed the test dirs<a name="line.576"></a>
-<span class="sourceLineNo">577</span> * @throws IOException<a name="line.577"></a>
-<span class="sourceLineNo">578</span> */<a name="line.578"></a>
-<span class="sourceLineNo">579</span> public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.579"></a>
-<span class="sourceLineNo">580</span> boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.580"></a>
-<span class="sourceLineNo">581</span> if (ret)<a name="line.581"></a>
-<span class="sourceLineNo">582</span> dataTestDirOnTestFS = null;<a name="line.582"></a>
-<span class="sourceLineNo">583</span> return ret;<a name="line.583"></a>
-<span class="sourceLineNo">584</span> }<a name="line.584"></a>
-<span class="sourceLineNo">585</span><a name="line.585"></a>
-<span class="sourceLineNo">586</span> /**<a name="line.586"></a>
-<span class="sourceLineNo">587</span> * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.587"></a>
-<span class="sourceLineNo">588</span> * @return True if we removed child<a name="line.588"></a>
-<span class="sourceLineNo">589</span> * @throws IOException<a name="line.589"></a>
-<span class="sourceLineNo">590</span> */<a name="line.590"></a>
-<span class="sourceLineNo">591</span> public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.591"></a>
-<span class="sourceLineNo">592</span> Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.592"></a>
-<span class="sourceLineNo">593</span> return getTestFileSystem().delete(cpath, true);<a name="line.593"></a>
-<span class="sourceLineNo">594</span> }<a name="line.594"></a>
-<span class="sourceLineNo">595</span><a name="line.595"></a>
-<span class="sourceLineNo">596</span> /**<a name="line.596"></a>
-<span class="sourceLineNo">597</span> * Start a minidfscluster.<a name="line.597"></a>
-<span class="sourceLineNo">598</span> * @param servers How many DNs to start.<a name="line.598"></a>
-<span class="sourceLineNo">599</span> * @throws Exception<a name="line.599"></a>
-<span class="sourceLineNo">600</span> * @see #shutdownMiniDFSCluster()<a name="line.600"></a>
-<span class="sourceLineNo">601</span> * @return The mini dfs cluster created.<a name="line.601"></a>
-<span class="sourceLineNo">602</span> */<a name="line.602"></a>
-<span class="sourceLineNo">603</span> public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.603"></a>
-<span class="sourceLineNo">604</span> return startMiniDFSCluster(servers, null);<a name="line.604"></a>
-<span class="sourceLineNo">605</span> }<a name="line.605"></a>
-<span class="sourceLineNo">606</span><a name="line.606"></a>
-<span class="sourceLineNo">607</span> /**<a name="line.607"></a>
-<span class="sourceLineNo">608</span> * Start a minidfscluster.<a name="line.608"></a>
-<span class="sourceLineNo">609</span> * This is useful if you want to run datanode on distinct hosts for things<a name="line.609"></a>
-<span class="sourceLineNo">610</span> * like HDFS block location verification.<a name="line.610"></a>
-<span class="sourceLineNo">611</span> * If you start MiniDFSCluster without host names, all instances of the<a name="line.611"></a>
-<span class="sourceLineNo">612</span> * datanodes will have the same host name.<a name="line.612"></a>
-<span class="sourceLineNo">613</span> * @param hosts hostnames DNs to run on.<a name="line.613"></a>
-<span class="sourceLineNo">614</span> * @throws Exception<a name="line.614"></a>
-<span class="sourceLineNo">615</span> * @see #shutdownMiniDFSCluster()<a name="line.615"></a>
-<span class="sourceLineNo">616</span> * @return The mini dfs cluster created.<a name="line.616"></a>
-<span class="sourceLineNo">617</span> */<a name="line.617"></a>
-<span class="sourceLineNo">618</span> public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.618"></a>
-<span class="sourceLineNo">619</span> throws Exception {<a name="line.619"></a>
-<span class="sourceLineNo">620</span> if ( hosts != null && hosts.length != 0) {<a name="line.620"></a>
-<span class="sourceLineNo">621</span> return startMiniDFSCluster(hosts.length, hosts);<a name="line.621"></a>
-<span class="sourceLineNo">622</span> } else {<a name="line.622"></a>
-<span class="sourceLineNo">623</span> return startMiniDFSCluster(1, null);<a name="line.623"></a>
-<span class="sourceLineNo">624</span> }<a name="line.624"></a>
-<span class="sourceLineNo">625</span> }<a name="line.625"></a>
-<span class="sourceLineNo">626</span><a name="line.626"></a>
-<span class="sourceLineNo">627</span> /**<a name="line.627"></a>
-<span class="sourceLineNo">628</span> * Start a minidfscluster.<a name="line.628"></a>
-<span class="sourceLineNo">629</span> * Can only create one.<a name="line.629"></a>
-<span class="sourceLineNo">630</span> * @param servers How many DNs to start.<a name="line.630"></a>
-<span class="sourceLineNo">631</span> * @param hosts hostnames DNs to run on.<a name="line.631"></a>
-<span class="sourceLineNo">632</span> * @throws Exception<a name="line.632"></a>
-<span class="sourceLineNo">633</span> * @see #shutdownMiniDFSCluster()<a name="line.633"></a>
-<span class="sourceLineNo">634</span> * @return The mini dfs cluster created.<a name="line.634"></a>
-<span class="sourceLineNo">635</span> */<a name="line.635"></a>
-<span class="sourceLineNo">636</span> public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.636"></a>
-<span class="sourceLineNo">637</span> throws Exception {<a name="line.637"></a>
-<span class="sourceLineNo">638</span> return startMiniDFSCluster(servers, null, hosts);<a name="line.638"></a>
-<span class="sourceLineNo">639</span> }<a name="line.639"></a>
-<span class="sourceLineNo">640</span><a name="line.640"></a>
-<span class="sourceLineNo">641</span> private void setFs() throws IOException {<a name="line.641"></a>
-<span class="sourceLineNo">642</span> if(this.dfsCluster == null){<a name="line.642"></a>
-<span class="sourceLineNo">643</span> LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.643"></a>
-<span class="sourceLineNo">644</span> return;<a name="line.644"></a>
-<span class="sourceLineNo">645</span> }<a name="line.645"></a>
-<span class="sourceLineNo">646</span> FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.646"></a>
-<span class="sourceLineNo">647</span> FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.647"></a>
-<span class="sourceLineNo">648</span><a name="line.648"></a>
-<span class="sourceLineNo">649</span> // re-enable this check with dfs<a name="line.649"></a>
-<span class="sourceLineNo">650</span> conf.unset(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE);<a name="line.650"></a>
-<span class="sourceLineNo">651</span> }<a name="line.651"></a>
-<span class="sourceLineNo">652</span><a name="line.652"></a>
-<span class="sourceLineNo">653</span> public MiniDFSCluster startMiniDFSCluster(int servers, final String racks[], String hosts[])<a name="line.653"></a>
-<span class="sourceLineNo">654</span> throws Exception {<a name="line.654"></a>
-<span class="sourceLineNo">655</span> createDirsAndSetProperties();<a name="line.655"></a>
-<span class="sourceLineNo">656</span> EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);<a name="line.656"></a>
-<span class="sourceLineNo">657</span><a name="line.657"></a>
-<span class="sourceLineNo">658</span> // Error level to skip some warnings specific to the minicluster. See HBASE-4709<a name="line.658"></a>
-<span class="sourceLineNo">659</span> org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).<a name="line.659"></a>
-<span class="sourceLineNo">660</span> setLevel(org.apache.log4j.Level.ERROR);<a name="line.660"></a>
-<span class="sourceLineNo">661</span> org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.impl.MetricsSystemImpl.class).<a name="line.661"></a>
-<span class="sourceLineNo">662</span> setLevel(org.apache.log4j.Level.ERROR);<a name="line.662"></a>
-<span class="sourceLineNo">663</span><a name="line.663"></a>
-<span class="sourceLineNo">664</span> TraceUtil.initTracer(conf);<a name="line.664"></a>
-<span class="sourceLineNo">665</span><a name="line.665"></a>
-<span class="sourceLineNo">666</span> this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,<a name="line.666"></a>
-<span class="sourceLineNo">667</span> true, null, racks, hosts, null);<a name="line.667"></a>
-<span class="sourceLineNo">668</span><a name="line.668"></a>
-<span class="sourceLineNo">669</span> // Set this just-started cluster as our filesystem.<a name="line.669"></a>
-<span class="sourceLineNo">670</span> setFs();<a name="line.670"></a>
-<span class="sourceLineNo">671</span><a name="line.671"></a>
-<span class="sourceLineNo">672</span> // Wait for the cluster to be totally up<a name="line.672"></a>
-<span class="sourceLineNo">673</span> this.dfsCluster.waitClusterUp();<a name="line.673"></a>
-<span class="sourceLineNo">674</span><a name="line.674"></a>
-<span class="sourceLineNo">675</span> //reset the test directory for test file system<a name="line.675"></a>
-<span class="sourceLineNo">676</span> dataTestDirOnTestFS = null;<a name="line.676"></a>
-<span class="sourceLineNo">677</span> String dataTestDir = getDataTestDir().toString();<a name="line.677"></a>
-<span class="sourceLineNo">678</span> conf.set(HConstants.HBASE_DIR, dataTestDir);<a name="line.678"></a>
-<span class="sourceLineNo">679</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.679"></a>
-<span class="sourceLineNo">680</span><a name="line.680"></a>
-<span class="sourceLineNo">681</span> return this.dfsCluster;<a name="line.681"></a>
-<span class="sourceLineNo">682</span> }<a name="line.682"></a>
-<span class="sourceLineNo">683</span><a name="line.683"></a>
-<span class="sourceLineNo">684</span> public MiniDFSCluster startMiniDFSClusterForTestWAL(int namenodePort) throws IOException {<a name="line.684"></a>
-<span class="sourceLineNo">685</span> createDirsAndSetProperties();<a name="line.685"></a>
-<span class="sourceLineNo">686</span> dfsCluster = new MiniDFSCluster(namenodePort, conf, 5, false, true, true, null,<a name="line.686"></a>
-<span class="sourceLineNo">687</span> null, null, null);<a name="line.687"></a>
-<span class="sourceLineNo">688</span> return dfsCluster;<a name="line.688"></a>
-<span class="sourceLineNo">689</span> }<a name="line.689"></a>
-<span class="sourceLineNo">690</span><a name="line.690"></a>
-<span class="sourceLineNo">691</span> /** This is used before starting HDFS and map-reduce mini-clusters */<a name="line.691"></a>
-<span class="sourceLineNo">692</span> private void createDirsAndSetProperties() throws IOException {<a name="line.692"></a>
-<span class="sourceLineNo">693</span> setupClusterTestDir();<a name="line.693"></a>
-<span class="sourceLineNo">694</span> conf.set(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.694"></a>
-<span class="sourceLineNo">695</span> System.setProperty(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.695"></a>
-<span class="sourceLineNo">696</span> createDirAndSetProperty("cache_data", "test.cache.data");<a name="line.696"></a>
-<span class="sourceLineNo">697</span> createDirAndSetProperty("hadoop_tmp", "hadoop.tmp.dir");<a name="line.697"></a>
-<span class="sourceLineNo">698</span> hadoopLogDir = createDirAndSetProperty("hadoop_logs", "hadoop.log.dir");<a name="line.698"></a>
-<span class="sourceLineNo">699</span> createDirAndSetProperty("mapred_local", "mapreduce.cluster.local.dir");<a name="line.699"></a>
-<span class="sourceLineNo">700</span> createDirAndSetProperty("mapred_temp", "mapreduce.cluster.temp.dir");<a name="line.700"></a>
-<span class="sourceLineNo">701</span> enableShortCircuit();<a name="line.701"></a>
-<span class="sourceLineNo">702</span><a name="line.702"></a>
-<span class="sourceLineNo">703</span> Path root = getDataTestDirOnTestFS("hadoop");<a name="line.703"></a>
-<span class="sourceLineNo">704</span> conf.set(MapreduceTestingShim.getMROutputDirProp(),<a name="line.704"></a>
-<span class="sourceLineNo">705</span> new Path(root, "mapred-output-dir").toString());<a name="line.705"></a>
-<span class="sourceLineNo">706</span> conf.set("mapreduce.jobtracker.system.dir", new Path(root, "mapred-system-dir").toString());<a name="line.706"></a>
-<span class="sourceLineNo">707</span> conf.set("mapreduce.jobtracker.staging.root.dir",<a name="line.707"></a>
-<span class="sourceLineNo">708</span> new Path(root, "mapreduce-jobtracker-staging-root-dir").toString());<a name="line.708"></a>
-<span class="sourceLineNo">709</span> conf.set("mapreduce.job.working.dir", new Path(root, "mapred-working-dir").toString());<a name="line.709"></a>
-<span class="sourceLineNo">710</span> conf.set("yarn.app.mapreduce.am.staging-dir",<a name="line.710"></a>
-<span class="sourceLineNo">711</span> new Path(root, "mapreduce-am-staging-root-dir").toString());<a name="line.711"></a>
-<span class="sourceLineNo">712</span> }<a name="line.712"></a>
+<span class="sourceLineNo">302</span> /**<a name="line.302"></a>
+<span class="sourceLineNo">303</span> * <p>Create an HBaseTestingUtility using a default configuration.<a name="line.303"></a>
+<span class="sourceLineNo">304</span> *<a name="line.304"></a>
+<span class="sourceLineNo">305</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.305"></a>
+<span class="sourceLineNo">306</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.306"></a>
+<span class="sourceLineNo">307</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.307"></a>
+<span class="sourceLineNo">308</span> *<a name="line.308"></a>
+<span class="sourceLineNo">309</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.309"></a>
+<span class="sourceLineNo">310</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.310"></a>
+<span class="sourceLineNo">311</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.311"></a>
+<span class="sourceLineNo">312</span> * at which point they will switch to using mini DFS for storage.<a name="line.312"></a>
+<span class="sourceLineNo">313</span> */<a name="line.313"></a>
+<span class="sourceLineNo">314</span> public HBaseTestingUtility() {<a name="line.314"></a>
+<span class="sourceLineNo">315</span> this(HBaseConfiguration.create());<a name="line.315"></a>
+<span class="sourceLineNo">316</span> }<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> * <p>Create an HBaseTestingUtility using a given configuration.<a name="line.319"></a>
+<span class="sourceLineNo">320</span> *<a name="line.320"></a>
+<span class="sourceLineNo">321</span> * <p>Initially, all tmp files are written to a local test data directory.<a name="line.321"></a>
+<span class="sourceLineNo">322</span> * Once {@link #startMiniDFSCluster} is called, either directly or via<a name="line.322"></a>
+<span class="sourceLineNo">323</span> * {@link #startMiniCluster()}, tmp data will be written to the DFS directory instead.<a name="line.323"></a>
+<span class="sourceLineNo">324</span> *<a name="line.324"></a>
+<span class="sourceLineNo">325</span> * <p>Previously, there was a distinction between the type of utility returned by<a name="line.325"></a>
+<span class="sourceLineNo">326</span> * {@link #createLocalHTU()} and this constructor; this is no longer the case. All<a name="line.326"></a>
+<span class="sourceLineNo">327</span> * HBaseTestingUtility objects will behave as local until a DFS cluster is started,<a name="line.327"></a>
+<span class="sourceLineNo">328</span> * at which point they will switch to using mini DFS for storage.<a name="line.328"></a>
+<span class="sourceLineNo">329</span> *<a name="line.329"></a>
+<span class="sourceLineNo">330</span> * @param conf The configuration to use for further operations<a name="line.330"></a>
+<span class="sourceLineNo">331</span> */<a name="line.331"></a>
+<span class="sourceLineNo">332</span> public HBaseTestingUtility(@Nullable Configuration conf) {<a name="line.332"></a>
+<span class="sourceLineNo">333</span> super(conf);<a name="line.333"></a>
+<span class="sourceLineNo">334</span><a name="line.334"></a>
+<span class="sourceLineNo">335</span> // a hbase checksum verification failure will cause unit tests to fail<a name="line.335"></a>
+<span class="sourceLineNo">336</span> ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.336"></a>
+<span class="sourceLineNo">337</span><a name="line.337"></a>
+<span class="sourceLineNo">338</span> // Save this for when setting default file:// breaks things<a name="line.338"></a>
+<span class="sourceLineNo">339</span> if (this.conf.get("fs.defaultFS") != null) {<a name="line.339"></a>
+<span class="sourceLineNo">340</span> this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.340"></a>
+<span class="sourceLineNo">341</span> }<a name="line.341"></a>
+<span class="sourceLineNo">342</span> if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.342"></a>
+<span class="sourceLineNo">343</span> this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.343"></a>
+<span class="sourceLineNo">344</span> }<a name="line.344"></a>
+<span class="sourceLineNo">345</span> // Every cluster is a local cluster until we start DFS<a name="line.345"></a>
+<span class="sourceLineNo">346</span> // Note that conf could be null, but this.conf will not be<a name="line.346"></a>
+<span class="sourceLineNo">347</span> String dataTestDir = getDataTestDir().toString();<a name="line.347"></a>
+<span class="sourceLineNo">348</span> this.conf.set("fs.defaultFS","file:///");<a name="line.348"></a>
+<span class="sourceLineNo">349</span> this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.349"></a>
+<span class="sourceLineNo">350</span> LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.350"></a>
+<span class="sourceLineNo">351</span> this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.351"></a>
+<span class="sourceLineNo">352</span> // If the value for random ports isn't set set it to true, thus making<a name="line.352"></a>
+<span class="sourceLineNo">353</span> // tests opt-out for random port assignment<a name="line.353"></a>
+<span class="sourceLineNo">354</span> this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.354"></a>
+<span class="sourceLineNo">355</span> this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.355"></a>
+<span class="sourceLineNo">356</span> }<a name="line.356"></a>
+<span class="sourceLineNo">357</span><a name="line.357"></a>
+<span class="sourceLineNo">358</span> /**<a name="line.358"></a>
+<span class="sourceLineNo">359</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.359"></a>
+<span class="sourceLineNo">360</span> * @return a normal HBaseTestingUtility<a name="line.360"></a>
+<span class="sourceLineNo">361</span> */<a name="line.361"></a>
+<span class="sourceLineNo">362</span> @Deprecated<a name="line.362"></a>
+<span class="sourceLineNo">363</span> public static HBaseTestingUtility createLocalHTU() {<a name="line.363"></a>
+<span class="sourceLineNo">364</span> return new HBaseTestingUtility();<a name="line.364"></a>
+<span class="sourceLineNo">365</span> }<a name="line.365"></a>
+<span class="sourceLineNo">366</span><a name="line.366"></a>
+<span class="sourceLineNo">367</span> /**<a name="line.367"></a>
+<span class="sourceLineNo">368</span> * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.368"></a>
+<span class="sourceLineNo">369</span> * @return a normal HBaseTestingUtility<a name="line.369"></a>
+<span class="sourceLineNo">370</span> */<a name="line.370"></a>
+<span class="sourceLineNo">371</span> @Deprecated<a name="line.371"></a>
+<span class="sourceLineNo">372</span> public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.372"></a>
+<span class="sourceLineNo">373</span> return new HBaseTestingUtility(c);<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> /**<a name="line.376"></a>
+<span class="sourceLineNo">377</span> * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.377"></a>
+<span class="sourceLineNo">378</span> */<a name="line.378"></a>
+<span class="sourceLineNo">379</span> public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.379"></a>
+<span class="sourceLineNo">380</span> closeRegionAndWAL((HRegion)r);<a name="line.380"></a>
+<span class="sourceLineNo">381</span> }<a name="line.381"></a>
+<span class="sourceLineNo">382</span><a name="line.382"></a>
+<span class="sourceLineNo">383</span> /**<a name="line.383"></a>
+<span class="sourceLineNo">384</span> * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.384"></a>
+<span class="sourceLineNo">385</span> */<a name="line.385"></a>
+<span class="sourceLineNo">386</span> public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.386"></a>
+<span class="sourceLineNo">387</span> if (r == null) return;<a name="line.387"></a>
+<span class="sourceLineNo">388</span> r.close();<a name="line.388"></a>
+<span class="sourceLineNo">389</span> if (r.getWAL() == null) return;<a name="line.389"></a>
+<span class="sourceLineNo">390</span> r.getWAL().close();<a name="line.390"></a>
+<span class="sourceLineNo">391</span> }<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> * Returns this classes's instance of {@link Configuration}. Be careful how<a name="line.394"></a>
+<span class="sourceLineNo">395</span> * you use the returned Configuration since {@link Connection} instances<a name="line.395"></a>
+<span class="sourceLineNo">396</span> * can be shared. The Map of Connections is keyed by the Configuration. If<a name="line.396"></a>
+<span class="sourceLineNo">397</span> * say, a Connection was being used against a cluster that had been shutdown,<a name="line.397"></a>
+<span class="sourceLineNo">398</span> * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.398"></a>
+<span class="sourceLineNo">399</span> * be wholesome. Rather than use the return direct, its usually best to<a name="line.399"></a>
+<span class="sourceLineNo">400</span> * make a copy and use that. Do<a name="line.400"></a>
+<span class="sourceLineNo">401</span> * <code>Configuration c = new Configuration(INSTANCE.getConfiguration());</code><a name="line.401"></a>
+<span class="sourceLineNo">402</span> * @return Instance of Configuration.<a name="line.402"></a>
+<span class="sourceLineNo">403</span> */<a name="line.403"></a>
+<span class="sourceLineNo">404</span> @Override<a name="line.404"></a>
+<span class="sourceLineNo">405</span> public Configuration getConfiguration() {<a name="line.405"></a>
+<span class="sourceLineNo">406</span> return super.getConfiguration();<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> public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.409"></a>
+<span class="sourceLineNo">410</span> this.hbaseCluster = hbaseCluster;<a name="line.410"></a>
+<span class="sourceLineNo">411</span> }<a name="line.411"></a>
+<span class="sourceLineNo">412</span><a name="line.412"></a>
+<span class="sourceLineNo">413</span> /**<a name="line.413"></a>
+<span class="sourceLineNo">414</span> * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.414"></a>
+<span class="sourceLineNo">415</span> * Give it a random name so can have many concurrent tests running if<a name="line.415"></a>
+<span class="sourceLineNo">416</span> * we need to. It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.416"></a>
+<span class="sourceLineNo">417</span> * System property, as it's what minidfscluster bases<a name="line.417"></a>
+<span class="sourceLineNo">418</span> * it data dir on. Moding a System property is not the way to do concurrent<a name="line.418"></a>
+<span class="sourceLineNo">419</span> * instances -- another instance could grab the temporary<a name="line.419"></a>
+<span class="sourceLineNo">420</span> * value unintentionally -- but not anything can do about it at moment;<a name="line.420"></a>
+<span class="sourceLineNo">421</span> * single instance only is how the minidfscluster works.<a name="line.421"></a>
+<span class="sourceLineNo">422</span> *<a name="line.422"></a>
+<span class="sourceLineNo">423</span> * We also create the underlying directory for<a name="line.423"></a>
+<span class="sourceLineNo">424</span> * hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.424"></a>
+<span class="sourceLineNo">425</span> * in the conf, and as a system property for hadoop.tmp.dir<a name="line.425"></a>
+<span class="sourceLineNo">426</span> *<a name="line.426"></a>
+<span class="sourceLineNo">427</span> * @return The calculated data test build directory, if newly-created.<a name="line.427"></a>
+<span class="sourceLineNo">428</span> */<a name="line.428"></a>
+<span class="sourceLineNo">429</span> @Override<a name="line.429"></a>
+<span class="sourceLineNo">430</span> protected Path setupDataTestDir() {<a name="line.430"></a>
+<span class="sourceLineNo">431</span> Path testPath = super.setupDataTestDir();<a name="line.431"></a>
+<span class="sourceLineNo">432</span> if (null == testPath) {<a name="line.432"></a>
+<span class="sourceLineNo">433</span> return null;<a name="line.433"></a>
+<span class="sourceLineNo">434</span> }<a name="line.434"></a>
+<span class="sourceLineNo">435</span><a name="line.435"></a>
+<span class="sourceLineNo">436</span> createSubDirAndSystemProperty(<a name="line.436"></a>
+<span class="sourceLineNo">437</span> "hadoop.log.dir",<a name="line.437"></a>
+<span class="sourceLineNo">438</span> testPath, "hadoop-log-dir");<a name="line.438"></a>
+<span class="sourceLineNo">439</span><a name="line.439"></a>
+<span class="sourceLineNo">440</span> // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.440"></a>
+<span class="sourceLineNo">441</span> // we want our own value to ensure uniqueness on the same machine<a name="line.441"></a>
+<span class="sourceLineNo">442</span> createSubDirAndSystemProperty(<a name="line.442"></a>
+<span class="sourceLineNo">443</span> "hadoop.tmp.dir",<a name="line.443"></a>
+<span class="sourceLineNo">444</span> testPath, "hadoop-tmp-dir");<a name="line.444"></a>
+<span class="sourceLineNo">445</span><a name="line.445"></a>
+<span class="sourceLineNo">446</span> // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.446"></a>
+<span class="sourceLineNo">447</span> createSubDir(<a name="line.447"></a>
+<span class="sourceLineNo">448</span> "mapreduce.cluster.local.dir",<a name="line.448"></a>
+<span class="sourceLineNo">449</span> testPath, "mapred-local-dir");<a name="line.449"></a>
+<span class="sourceLineNo">450</span><a name="line.450"></a>
+<span class="sourceLineNo">451</span> return testPath;<a name="line.451"></a>
+<span class="sourceLineNo">452</span> }<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span> private void createSubDirAndSystemProperty(<a name="line.454"></a>
+<span class="sourceLineNo">455</span> String propertyName, Path parent, String subDirName){<a name="line.455"></a>
+<span class="sourceLineNo">456</span><a name="line.456"></a>
+<span class="sourceLineNo">457</span> String sysValue = System.getProperty(propertyName);<a name="line.457"></a>
+<span class="sourceLineNo">458</span><a name="line.458"></a>
+<span class="sourceLineNo">459</span> if (sysValue != null) {<a name="line.459"></a>
+<span class="sourceLineNo">460</span> // There is already a value set. So we do nothing but hope<a name="line.460"></a>
+<span class="sourceLineNo">461</span> // that there will be no conflicts<a name="line.461"></a>
+<span class="sourceLineNo">462</span> LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.462"></a>
+<span class="sourceLineNo">463</span> sysValue + " so I do NOT create it in " + parent);<a name="line.463"></a>
+<span class="sourceLineNo">464</span> String confValue = conf.get(propertyName);<a name="line.464"></a>
+<span class="sourceLineNo">465</span> if (confValue != null && !confValue.endsWith(sysValue)){<a name="line.465"></a>
+<span class="sourceLineNo">466</span> LOG.warn(<a name="line.466"></a>
+<span class="sourceLineNo">467</span> propertyName + " property value differs in configuration and system: "+<a name="line.467"></a>
+<span class="sourceLineNo">468</span> "Configuration="+confValue+" while System="+sysValue+<a name="line.468"></a>
+<span class="sourceLineNo">469</span> " Erasing configuration value by system value."<a name="line.469"></a>
+<span class="sourceLineNo">470</span> );<a name="line.470"></a>
+<span class="sourceLineNo">471</span> }<a name="line.471"></a>
+<span class="sourceLineNo">472</span> conf.set(propertyName, sysValue);<a name="line.472"></a>
+<span class="sourceLineNo">473</span> } else {<a name="line.473"></a>
+<span class="sourceLineNo">474</span> // Ok, it's not set, so we create it as a subdirectory<a name="line.474"></a>
+<span class="sourceLineNo">475</span> createSubDir(propertyName, parent, subDirName);<a name="line.475"></a>
+<span class="sourceLineNo">476</span> System.setProperty(propertyName, conf.get(propertyName));<a name="line.476"></a>
+<span class="sourceLineNo">477</span> }<a name="line.477"></a>
+<span class="sourceLineNo">478</span> }<a name="line.478"></a>
+<span class="sourceLineNo">479</span><a name="line.479"></a>
+<span class="sourceLineNo">480</span> /**<a name="line.480"></a>
+<span class="sourceLineNo">481</span> * @return Where to write test data on the test filesystem; Returns working directory<a name="line.481"></a>
+<span class="sourceLineNo">482</span> * for the test filesystem by default<a name="line.482"></a>
+<span class="sourceLineNo">483</span> * @see #setupDataTestDirOnTestFS()<a name="line.483"></a>
+<span class="sourceLineNo">484</span> * @see #getTestFileSystem()<a name="line.484"></a>
+<span class="sourceLineNo">485</span> */<a name="line.485"></a>
+<span class="sourceLineNo">486</span> private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.486"></a>
+<span class="sourceLineNo">487</span> FileSystem fs = getTestFileSystem();<a name="line.487"></a>
+<span class="sourceLineNo">488</span> return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.488"></a>
+<span class="sourceLineNo">489</span> }<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> * @return META table descriptor<a name="line.492"></a>
+<span class="sourceLineNo">493</span> * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.493"></a>
+<span class="sourceLineNo">494</span> * use {@link #getMetaTableDescriptorBuilder()}<a name="line.494"></a>
+<span class="sourceLineNo">495</span> */<a name="line.495"></a>
+<span class="sourceLineNo">496</span> @Deprecated<a name="line.496"></a>
+<span class="sourceLineNo">497</span> public HTableDescriptor getMetaTableDescriptor() {<a name="line.497"></a>
+<span class="sourceLineNo">498</span> return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.498"></a>
+<span class="sourceLineNo">499</span> }<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> * @return META table descriptor<a name="line.502"></a>
+<span class="sourceLineNo">503</span> */<a name="line.503"></a>
+<span class="sourceLineNo">504</span> public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.504"></a>
+<span class="sourceLineNo">505</span> try {<a name="line.505"></a>
+<span class="sourceLineNo">506</span> return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.506"></a>
+<span class="sourceLineNo">507</span> } catch (IOException e) {<a name="line.507"></a>
+<span class="sourceLineNo">508</span> throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.508"></a>
+<span class="sourceLineNo">509</span> }<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> /**<a name="line.512"></a>
+<span class="sourceLineNo">513</span> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.513"></a>
+<span class="sourceLineNo">514</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.514"></a>
+<span class="sourceLineNo">515</span> * if the test relies on it.<a name="line.515"></a>
+<span class="sourceLineNo">516</span> * @return a unique path in the test filesystem<a name="line.516"></a>
+<span class="sourceLineNo">517</span> */<a name="line.517"></a>
+<span class="sourceLineNo">518</span> public Path getDataTestDirOnTestFS() throws IOException {<a name="line.518"></a>
+<span class="sourceLineNo">519</span> if (dataTestDirOnTestFS == null) {<a name="line.519"></a>
+<span class="sourceLineNo">520</span> setupDataTestDirOnTestFS();<a name="line.520"></a>
+<span class="sourceLineNo">521</span> }<a name="line.521"></a>
+<span class="sourceLineNo">522</span><a name="line.522"></a>
+<span class="sourceLineNo">523</span> return dataTestDirOnTestFS;<a name="line.523"></a>
+<span class="sourceLineNo">524</span> }<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> * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.527"></a>
+<span class="sourceLineNo">528</span> * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.528"></a>
+<span class="sourceLineNo">529</span> * if the test relies on it.<a name="line.529"></a>
+<span class="sourceLineNo">530</span> * @return a unique path in the test filesystem<a name="line.530"></a>
+<span class="sourceLineNo">531</span> * @param subdirName name of the subdir to create under the base test dir<a name="line.531"></a>
+<span class="sourceLineNo">532</span> */<a name="line.532"></a>
+<span class="sourceLineNo">533</span> public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.533"></a>
+<span class="sourceLineNo">534</span> return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.534"></a>
+<span class="
<TRUNCATED>
[08/10] hbase-site git commit: Published site at
e8df847d4ed16b8432221d28bcfc00e1621df586.
Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/37bdc06b/testapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
----------------------------------------------------------------------
diff --git a/testapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html b/testapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
index 66ed124..fde43fb 100644
--- a/testapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
+++ b/testapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
@@ -120,7 +120,7 @@ var activeTableTab = "activeTableTab";
<hr>
<br>
<pre>@InterfaceAudience.Public
-public class <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.178">HBaseTestingUtility</a>
+public class <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.177">HBaseTestingUtility</a>
extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseZKTestingUtility</a></pre>
<div class="block">Facility for testing HBase. Replacement for
old HBaseTestCase and HBaseClusterTestCase functionality.
@@ -136,8 +136,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
region-server-port are overridden such that a random port will be assigned (thus
avoiding port contention if another local HBase instance is already running).
<p>To preserve test data directories, pass the system property "hbase.testing.preserve.testdir"
- setting it to true.
- For triggering test.</div>
+ setting it to true.</div>
</li>
</ul>
</div>
@@ -1831,7 +1830,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>REGIONS_PER_SERVER_KEY</h4>
-<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.189">REGIONS_PER_SERVER_KEY</a></pre>
+<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.188">REGIONS_PER_SERVER_KEY</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.REGIONS_PER_SERVER_KEY">Constant Field Values</a></dd>
@@ -1844,7 +1843,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_REGIONS_PER_SERVER</h4>
-<pre>public static final int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.194">DEFAULT_REGIONS_PER_SERVER</a></pre>
+<pre>public static final int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.193">DEFAULT_REGIONS_PER_SERVER</a></pre>
<div class="block">The default number of regions per regionserver when creating a pre-split
table.</div>
<dl>
@@ -1859,7 +1858,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>PRESPLIT_TEST_TABLE_KEY</h4>
-<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.197">PRESPLIT_TEST_TABLE_KEY</a></pre>
+<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.196">PRESPLIT_TEST_TABLE_KEY</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.PRESPLIT_TEST_TABLE_KEY">Constant Field Values</a></dd>
@@ -1872,7 +1871,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>PRESPLIT_TEST_TABLE</h4>
-<pre>public static final boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.198">PRESPLIT_TEST_TABLE</a></pre>
+<pre>public static final boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.197">PRESPLIT_TEST_TABLE</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.PRESPLIT_TEST_TABLE">Constant Field Values</a></dd>
@@ -1885,7 +1884,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>MEMSTORETS_TAGS_PARAMETRIZED</h4>
-<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.223">MEMSTORETS_TAGS_PARAMETRIZED</a></pre>
+<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.222">MEMSTORETS_TAGS_PARAMETRIZED</a></pre>
<div class="block">This is for unit tests parameterized with a single boolean.</div>
</li>
</ul>
@@ -1895,7 +1894,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>BLOOM_AND_COMPRESSION_COMBINATIONS</h4>
-<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.299">BLOOM_AND_COMPRESSION_COMBINATIONS</a></pre>
+<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.298">BLOOM_AND_COMPRESSION_COMBINATIONS</a></pre>
</li>
</ul>
<a name="fam1">
@@ -1904,7 +1903,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>fam1</h4>
-<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1827">fam1</a></pre>
+<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1826">fam1</a></pre>
</li>
</ul>
<a name="fam2">
@@ -1913,7 +1912,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>fam2</h4>
-<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1828">fam2</a></pre>
+<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1827">fam2</a></pre>
</li>
</ul>
<a name="fam3">
@@ -1922,7 +1921,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>fam3</h4>
-<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1829">fam3</a></pre>
+<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1828">fam3</a></pre>
</li>
</ul>
<a name="COLUMNS">
@@ -1931,7 +1930,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>COLUMNS</h4>
-<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1830">COLUMNS</a></pre>
+<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1829">COLUMNS</a></pre>
</li>
</ul>
<a name="FIRST_CHAR">
@@ -1940,7 +1939,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>FIRST_CHAR</h4>
-<pre>public static final char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1833">FIRST_CHAR</a></pre>
+<pre>public static final char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1832">FIRST_CHAR</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.FIRST_CHAR">Constant Field Values</a></dd>
@@ -1953,7 +1952,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>LAST_CHAR</h4>
-<pre>public static final char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1834">LAST_CHAR</a></pre>
+<pre>public static final char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1833">LAST_CHAR</a></pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.hadoop.hbase.HBaseTestingUtility.LAST_CHAR">Constant Field Values</a></dd>
@@ -1966,7 +1965,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>START_KEY_BYTES</h4>
-<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1835">START_KEY_BYTES</a></pre>
+<pre>public static final byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1834">START_KEY_BYTES</a></pre>
</li>
</ul>
<a name="START_KEY">
@@ -1975,7 +1974,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>START_KEY</h4>
-<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1836">START_KEY</a></pre>
+<pre>public static final <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1835">START_KEY</a></pre>
</li>
</ul>
<a name="ROWS">
@@ -1984,7 +1983,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>ROWS</h4>
-<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2389">ROWS</a></pre>
+<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2388">ROWS</a></pre>
<div class="block">All the row values for the data loaded by <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#loadTable-org.apache.hadoop.hbase.client.Table-byte:A-"><code>loadTable(Table, byte[])</code></a></div>
</li>
</ul>
@@ -1994,7 +1993,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>KEYS</h4>
-<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2404">KEYS</a></pre>
+<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2403">KEYS</a></pre>
</li>
</ul>
<a name="KEYS_FOR_HBA_CREATE_TABLE">
@@ -2003,7 +2002,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockListLast">
<li class="blockList">
<h4>KEYS_FOR_HBA_CREATE_TABLE</h4>
-<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2416">KEYS_FOR_HBA_CREATE_TABLE</a></pre>
+<pre>public static final byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2415">KEYS_FOR_HBA_CREATE_TABLE</a></pre>
</li>
</ul>
</li>
@@ -2020,7 +2019,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>HBaseTestingUtility</h4>
-<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.315">HBaseTestingUtility</a>()</pre>
+<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.314">HBaseTestingUtility</a>()</pre>
<div class="block"><p>Create an HBaseTestingUtility using a default configuration.
<p>Initially, all tmp files are written to a local test data directory.
@@ -2039,7 +2038,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockListLast">
<li class="blockList">
<h4>HBaseTestingUtility</h4>
-<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.333">HBaseTestingUtility</a>(@Nullable
+<pre>public <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.332">HBaseTestingUtility</a>(@Nullable
org.apache.hadoop.conf.Configuration conf)</pre>
<div class="block"><p>Create an HBaseTestingUtility using a given configuration.
@@ -2071,7 +2070,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>available</h4>
-<pre>public static boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.231">available</a>(int port)</pre>
+<pre>public static boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.230">available</a>(int port)</pre>
<div class="block">Checks to see if a specific port is available.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
@@ -2087,7 +2086,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<ul class="blockList">
<li class="blockList">
<h4>memStoreTSTagsAndOffheapCombination</h4>
-<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.286">memStoreTSTagsAndOffheapCombination</a>()</pre>
+<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[]> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.285">memStoreTSTagsAndOffheapCombination</a>()</pre>
</li>
</ul>
<a name="createLocalHTU--">
@@ -2097,7 +2096,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
<li class="blockList">
<h4>createLocalHTU</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.364">createLocalHTU</a>()</pre>
+public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.363">createLocalHTU</a>()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#HBaseTestingUtility--"><code>HBaseTestingUtility()</code></a> instead</span></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -2112,7 +2111,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<li class="blockList">
<h4>createLocalHTU</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.373">createLocalHTU</a>(org.apache.hadoop.conf.Configuration c)</pre>
+public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.372">createLocalHTU</a>(org.apache.hadoop.conf.Configuration c)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#HBaseTestingUtility-org.apache.hadoop.conf.Configuration-"><code>HBaseTestingUtility(Configuration)</code></a> instead</span></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -2126,7 +2125,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>closeRegionAndWAL</h4>
-<pre>public static void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.380">closeRegionAndWAL</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/regionserver/Region.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.regionserver">Region</a> r)
+<pre>public static void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.379">closeRegionAndWAL</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/regionserver/Region.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.regionserver">Region</a> r)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Close both the region <code>r</code> and it's underlying WAL. For use in tests.</div>
<dl>
@@ -2141,7 +2140,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>closeRegionAndWAL</h4>
-<pre>public static void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.387">closeRegionAndWAL</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/regionserver/HRegion.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.regionserver">HRegion</a> r)
+<pre>public static void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.386">closeRegionAndWAL</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/regionserver/HRegion.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.regionserver">HRegion</a> r)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Close both the HRegion <code>r</code> and it's underlying WAL. For use in tests.</div>
<dl>
@@ -2156,7 +2155,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>getConfiguration</h4>
-<pre>public org.apache.hadoop.conf.Configuration <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.406">getConfiguration</a>()</pre>
+<pre>public org.apache.hadoop.conf.Configuration <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.405">getConfiguration</a>()</pre>
<div class="block">Returns this classes's instance of <code>Configuration</code>. Be careful how
you use the returned Configuration since <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Connection.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client"><code>Connection</code></a> instances
can be shared. The Map of Connections is keyed by the Configuration. If
@@ -2179,7 +2178,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>setHBaseCluster</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.410">setHBaseCluster</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/HBaseCluster.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">HBaseCluster</a> hbaseCluster)</pre>
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.409">setHBaseCluster</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/HBaseCluster.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">HBaseCluster</a> hbaseCluster)</pre>
</li>
</ul>
<a name="setupDataTestDir--">
@@ -2188,7 +2187,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<ul class="blockList">
<li class="blockList">
<h4>setupDataTestDir</h4>
-<pre>protected org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.431">setupDataTestDir</a>()</pre>
+<pre>protected org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.430">setupDataTestDir</a>()</pre>
<div class="block">Home our data in a dir under <a href="../../../../org/apache/hadoop/hbase/HBaseCommonTestingUtility.html#DEFAULT_BASE_TEST_DIRECTORY"><code>HBaseCommonTestingUtility.DEFAULT_BASE_TEST_DIRECTORY</code></a>.
Give it a random name so can have many concurrent tests running if
we need to. It needs to amend the <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#TEST_DIRECTORY_KEY"><code>TEST_DIRECTORY_KEY</code></a>
@@ -2216,7 +2215,7 @@ public static <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
<li class="blockList">
<h4>getMetaTableDescriptor</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescriptor.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">HTableDescriptor</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.498">getMetaTableDescriptor</a>()</pre>
+public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescriptor.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">HTableDescriptor</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.497">getMetaTableDescriptor</a>()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">since 2.0 version and will be removed in 3.0 version.
use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#getMetaTableDescriptorBuilder--"><code>getMetaTableDescriptorBuilder()</code></a></span></div>
<dl>
@@ -2231,7 +2230,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>getMetaTableDescriptorBuilder</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/TableDescriptorBuilder.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">TableDescriptorBuilder</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.505">getMetaTableDescriptorBuilder</a>()</pre>
+<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/TableDescriptorBuilder.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">TableDescriptorBuilder</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.504">getMetaTableDescriptorBuilder</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>META table descriptor</dd>
@@ -2244,7 +2243,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>getDataTestDirOnTestFS</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.519">getDataTestDirOnTestFS</a>()
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.518">getDataTestDirOnTestFS</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a Path in the test filesystem, obtained from <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#getTestFileSystem--"><code>getTestFileSystem()</code></a>
to write temporary test data. Call this method after setting up the mini dfs cluster
@@ -2263,7 +2262,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>getDataTestDirOnTestFS</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.534">getDataTestDirOnTestFS</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> subdirName)
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.533">getDataTestDirOnTestFS</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> subdirName)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns a Path in the test filesystem, obtained from <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#getTestFileSystem--"><code>getTestFileSystem()</code></a>
to write temporary test data. Call this method after setting up the mini dfs cluster
@@ -2284,7 +2283,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>cleanupDataTestDirOnTestFS</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.579">cleanupDataTestDirOnTestFS</a>()
+<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.578">cleanupDataTestDirOnTestFS</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Cleans the test data directory on the test filesystem.</div>
<dl>
@@ -2301,7 +2300,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>cleanupDataTestDirOnTestFS</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.591">cleanupDataTestDirOnTestFS</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> subdirName)
+<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.590">cleanupDataTestDirOnTestFS</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> subdirName)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Cleans a subdirectory under the test data directory on the test filesystem.</div>
<dl>
@@ -2318,7 +2317,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>startMiniDFSCluster</h4>
-<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.603">startMiniDFSCluster</a>(int servers)
+<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.602">startMiniDFSCluster</a>(int servers)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start a minidfscluster.</div>
<dl>
@@ -2339,7 +2338,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>startMiniDFSCluster</h4>
-<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.618">startMiniDFSCluster</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] hosts)
+<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.617">startMiniDFSCluster</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] hosts)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start a minidfscluster.
This is useful if you want to run datanode on distinct hosts for things
@@ -2364,7 +2363,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>startMiniDFSCluster</h4>
-<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.636">startMiniDFSCluster</a>(int servers,
+<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.635">startMiniDFSCluster</a>(int servers,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] hosts)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start a minidfscluster.
@@ -2388,7 +2387,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>startMiniDFSCluster</h4>
-<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.653">startMiniDFSCluster</a>(int servers,
+<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.652">startMiniDFSCluster</a>(int servers,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] racks,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] hosts)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
@@ -2404,7 +2403,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>startMiniDFSClusterForTestWAL</h4>
-<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.684">startMiniDFSClusterForTestWAL</a>(int namenodePort)
+<pre>public org.apache.hadoop.hdfs.MiniDFSCluster <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.683">startMiniDFSClusterForTestWAL</a>(int namenodePort)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
@@ -2418,7 +2417,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>isReadShortCircuitOn</h4>
-<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.720">isReadShortCircuitOn</a>()</pre>
+<pre>public boolean <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.719">isReadShortCircuitOn</a>()</pre>
<div class="block">Get the HBase setting for dfs.client.read.shortcircuit from the conf or a system property.
This allows to specify this parameter on the command line.
If not set, default is true.</div>
@@ -2430,7 +2429,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<ul class="blockList">
<li class="blockList">
<h4>shutdownMiniDFSCluster</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.762">shutdownMiniDFSCluster</a>()
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.761">shutdownMiniDFSCluster</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Shuts down instance created by call to <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#startMiniDFSCluster-int-"><code>startMiniDFSCluster(int)</code></a>
or does nothing.</div>
@@ -2447,7 +2446,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.781">startMiniCluster</a>(boolean createWALDir)
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.780">startMiniCluster</a>(boolean createWALDir)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#startMiniCluster-org.apache.hadoop.hbase.StartMiniClusterOption-"><code>startMiniCluster(StartMiniClusterOption)</code></a> instead.</span></div>
<div class="block">Start up a minicluster of hbase, dfs, and zookeeper where WAL's walDir is created separately.
@@ -2471,7 +2470,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.797">startMiniCluster</a>(int numSlaves,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.796">startMiniCluster</a>(int numSlaves,
boolean createRootDir)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#startMiniCluster-org.apache.hadoop.hbase.StartMiniClusterOption-"><code>startMiniCluster(StartMiniClusterOption)</code></a> instead.</span></div>
@@ -2497,7 +2496,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.815">startMiniCluster</a>(int numSlaves,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.814">startMiniCluster</a>(int numSlaves,
boolean createRootDir,
boolean createWALDir)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
@@ -2525,7 +2524,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.834">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.833">startMiniCluster</a>(int numMasters,
int numSlaves,
boolean createRootDir)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
@@ -2553,7 +2552,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.852">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.851">startMiniCluster</a>(int numMasters,
int numSlaves)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Use <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#startMiniCluster-org.apache.hadoop.hbase.StartMiniClusterOption-"><code>startMiniCluster(StartMiniClusterOption)</code></a> instead.</span></div>
@@ -2579,7 +2578,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.871">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.870">startMiniCluster</a>(int numMasters,
int numSlaves,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] dataNodeHosts,
boolean createRootDir)
@@ -2610,7 +2609,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.891">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.890">startMiniCluster</a>(int numMasters,
int numSlaves,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] dataNodeHosts)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
@@ -2639,7 +2638,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.910">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.909">startMiniCluster</a>(int numMasters,
int numRegionServers,
int numDataNodes)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
@@ -2667,7 +2666,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.932">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.931">startMiniCluster</a>(int numMasters,
int numSlaves,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] dataNodeHosts,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../../apidocs/org/apache/hadoop/hbase/master/HMaster.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.master">HMaster</a>> masterClass,
@@ -2700,7 +2699,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.959">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.958">startMiniCluster</a>(int numMasters,
int numRegionServers,
int numDataNodes,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] dataNodeHosts,
@@ -2735,7 +2734,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.988">startMiniCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.987">startMiniCluster</a>(int numMasters,
int numRegionServers,
int numDataNodes,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] dataNodeHosts,
@@ -2773,7 +2772,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>startMiniCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1008">startMiniCluster</a>(int numSlaves)
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1007">startMiniCluster</a>(int numSlaves)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start up a minicluster of hbase, dfs and zookeeper clusters with given slave node number.
All other options will use default values, defined in <a href="../../../../../apidocs/org/apache/hadoop/hbase/StartMiniClusterOption.Builder.html?is-external=true" title="class or interface in org.apache.hadoop.hbase"><code>StartMiniClusterOption.Builder</code></a>.</div>
@@ -2794,7 +2793,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>startMiniCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1020">startMiniCluster</a>()
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1019">startMiniCluster</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start up a minicluster of hbase, dfs and zookeeper all using default options.
Option default value can be found in <a href="../../../../../apidocs/org/apache/hadoop/hbase/StartMiniClusterOption.Builder.html?is-external=true" title="class or interface in org.apache.hadoop.hbase"><code>StartMiniClusterOption.Builder</code></a>.</div>
@@ -2813,7 +2812,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>startMiniCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1030">startMiniCluster</a>(<a href="../../../../org/apache/hadoop/hbase/StartMiniClusterOption.html" title="class in org.apache.hadoop.hbase">StartMiniClusterOption</a> option)
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1029">startMiniCluster</a>(<a href="../../../../org/apache/hadoop/hbase/StartMiniClusterOption.html" title="class in org.apache.hadoop.hbase">StartMiniClusterOption</a> option)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Start up a mini cluster of hbase, optionally dfs and zookeeper if needed.
It modifies Configuration. It homes the cluster data directory under a random
@@ -2832,7 +2831,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>startMiniHBaseCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1068">startMiniHBaseCluster</a>(<a href="../../../../org/apache/hadoop/hbase/StartMiniClusterOption.html" title="class in org.apache.hadoop.hbase">StartMiniClusterOption</a> option)
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1067">startMiniHBaseCluster</a>(<a href="../../../../org/apache/hadoop/hbase/StartMiniClusterOption.html" title="class in org.apache.hadoop.hbase">StartMiniClusterOption</a> option)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
<div class="block">Starts up mini hbase cluster.
@@ -2856,7 +2855,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>startMiniHBaseCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1114">startMiniHBaseCluster</a>()
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1113">startMiniHBaseCluster</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
<div class="block">Starts up mini hbase cluster using default options.
@@ -2878,7 +2877,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniHBaseCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1129">startMiniHBaseCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1128">startMiniHBaseCluster</a>(int numMasters,
int numRegionServers)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
@@ -2907,7 +2906,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniHBaseCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1148">startMiniHBaseCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1147">startMiniHBaseCluster</a>(int numMasters,
int numRegionServers,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> rsPorts)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
@@ -2938,7 +2937,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<li class="blockList">
<h4>startMiniHBaseCluster</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
-public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1171">startMiniHBaseCluster</a>(int numMasters,
+public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1170">startMiniHBaseCluster</a>(int numMasters,
int numRegionServers,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> rsPorts,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../../apidocs/org/apache/hadoop/hbase/master/HMaster.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.master">HMaster</a>> masterClass,
@@ -2976,7 +2975,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>restartHBaseCluster</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1187">restartHBaseCluster</a>(int servers)
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1186">restartHBaseCluster</a>(int servers)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre>
<div class="block">Starts the hbase cluster up again after shutting it down previously in a
@@ -2996,7 +2995,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>getMiniHBaseCluster</h4>
-<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1215">getMiniHBaseCluster</a>()</pre>
+<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1214">getMiniHBaseCluster</a>()</pre>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Current mini hbase cluster. Only has something in it after a call
@@ -3012,7 +3011,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>shutdownMiniCluster</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1228">shutdownMiniCluster</a>()
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1227">shutdownMiniCluster</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
<div class="block">Stops mini hbase, zk, and hdfs clusters.</div>
<dl>
@@ -3030,7 +3029,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>shutdownMiniHBaseCluster</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1242">shutdownMiniHBaseCluster</a>()
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1241">shutdownMiniHBaseCluster</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Shutdown HBase mini cluster. Does not shutdown zk or dfs if running.</div>
<dl>
@@ -3045,7 +3044,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>getDefaultRootDirPath</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1274">getDefaultRootDirPath</a>(boolean create)
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1273">getDefaultRootDirPath</a>(boolean create)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Returns the path to the default root dir the minicluster uses. If <code>create</code>
is true, a new root directory path is fetched irrespective of whether it has been fetched
@@ -3065,7 +3064,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>getDefaultRootDirPath</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1289">getDefaultRootDirPath</a>()
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1288">getDefaultRootDirPath</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Same as {<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#getDefaultRootDirPath-boolean-"><code>getDefaultRootDirPath(boolean create)</code></a>
except that <code>create</code> flag is false.
@@ -3084,7 +3083,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createRootDir</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1305">createRootDir</a>(boolean create)
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1304">createRootDir</a>(boolean create)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Creates an hbase rootdir in user home directory. Also creates hbase
version file. Normally you won't make use of this method. Root hbasedir
@@ -3109,7 +3108,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createRootDir</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1320">createRootDir</a>()
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1319">createRootDir</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Same as <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html#createRootDir-boolean-"><code>createRootDir(boolean create)</code></a>
except that <code>create</code> flag is false.</div>
@@ -3127,7 +3126,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createWALRootDir</h4>
-<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1333">createWALRootDir</a>()
+<pre>public org.apache.hadoop.fs.Path <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1332">createWALRootDir</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Creates a hbase walDir in the user's home directory.
Normally you won't make use of this method. Root hbaseWALDir
@@ -3147,7 +3146,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>flush</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1355">flush</a>()
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1354">flush</a>()
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Flushes all caches in the mini hbase cluster</div>
<dl>
@@ -3162,7 +3161,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>flush</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1363">flush</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName)
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1362">flush</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Flushes all caches in the mini hbase cluster</div>
<dl>
@@ -3177,7 +3176,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>compact</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1371">compact</a>(boolean major)
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1370">compact</a>(boolean major)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Compact all regions in the mini hbase cluster</div>
<dl>
@@ -3192,7 +3191,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>compact</h4>
-<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1379">compact</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
+<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1378">compact</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
boolean major)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Compact all of a table's reagion in the mini hbase cluster</div>
@@ -3208,7 +3207,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createTable</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1390">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
+<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1389">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> family)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Create a table.</div>
@@ -3229,7 +3228,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createTable</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1402">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
+<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1401">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] families)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Create a table.</div>
@@ -3250,7 +3249,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createTable</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1418">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
+<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1417">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
byte[] family)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Create a table.</div>
@@ -3271,7 +3270,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createMultiRegionTable</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1431">createMultiRegionTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
+<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1430">createMultiRegionTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
byte[] family,
int numRegions)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
@@ -3294,7 +3293,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createTable</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1448">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
+<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1447">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
byte[][] families)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Create a table.</div>
@@ -3315,7 +3314,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createMultiRegionTable</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1460">createMultiRegionTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
+<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1459">createMultiRegionTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
byte[][] families)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Create a table with multiple regions.</div>
@@ -3336,7 +3335,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createTable</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1472">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
+<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1471">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
byte[][] families,
byte[][] splitKeys)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
@@ -3359,7 +3358,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createTable</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1486">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
+<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1485">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
byte[][] families,
byte[][] splitKeys,
int replicaCount)
@@ -3384,7 +3383,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createTable</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1492">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
+<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1491">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/TableName.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">TableName</a> tableName,
byte[][] families,
int numVersions,
byte[] startKey,
@@ -3403,7 +3402,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createTable</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1512">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/client/TableDescriptor.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">TableDescriptor</a> htd,
+<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1511">createTable</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/client/TableDescriptor.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">TableDescriptor</a> htd,
byte[][] families,
org.apache.hadoop.conf.Configuration c)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
@@ -3426,7 +3425,7 @@ public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html"
<ul class="blockList">
<li class="blockList">
<h4>createTable</h4>
-<pre>public <a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Table.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Table</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTesti
<TRUNCATED>