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/07/20 14:49:46 UTC

[01/10] hbase-site git commit: Published site at 03e596c6694a21768c51a3c52e1a032f51fd637c.

Repository: hbase-site
Updated Branches:
  refs/heads/asf-site 767291b81 -> a5e2ad1d5


http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/testdevapidocs/src-html/org/apache/hadoop/hbase/IntegrationTestingUtility.html
----------------------------------------------------------------------
diff --git a/testdevapidocs/src-html/org/apache/hadoop/hbase/IntegrationTestingUtility.html b/testdevapidocs/src-html/org/apache/hadoop/hbase/IntegrationTestingUtility.html
index 514b8b4..274c956 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/IntegrationTestingUtility.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/IntegrationTestingUtility.html
@@ -139,17 +139,29 @@
 <span class="sourceLineNo">131</span>  }<a name="line.131"></a>
 <span class="sourceLineNo">132</span><a name="line.132"></a>
 <span class="sourceLineNo">133</span>  public void createDistributedHBaseCluster() throws IOException {<a name="line.133"></a>
-<span class="sourceLineNo">134</span>    Configuration conf = getConfiguration();<a name="line.134"></a>
-<span class="sourceLineNo">135</span>    conf.set("fs.defaultFS", conf.get("original.defaultFS"));<a name="line.135"></a>
-<span class="sourceLineNo">136</span>    Class&lt;? extends ClusterManager&gt; clusterManagerClass = conf.getClass(HBASE_CLUSTER_MANAGER_CLASS,<a name="line.136"></a>
-<span class="sourceLineNo">137</span>      DEFAULT_HBASE_CLUSTER_MANAGER_CLASS, ClusterManager.class);<a name="line.137"></a>
-<span class="sourceLineNo">138</span>    ClusterManager clusterManager = ReflectionUtils.newInstance(<a name="line.138"></a>
-<span class="sourceLineNo">139</span>      clusterManagerClass, conf);<a name="line.139"></a>
-<span class="sourceLineNo">140</span>    setHBaseCluster(new DistributedHBaseCluster(conf, clusterManager));<a name="line.140"></a>
-<span class="sourceLineNo">141</span>    getAdmin();<a name="line.141"></a>
-<span class="sourceLineNo">142</span>  }<a name="line.142"></a>
-<span class="sourceLineNo">143</span><a name="line.143"></a>
-<span class="sourceLineNo">144</span>}<a name="line.144"></a>
+<span class="sourceLineNo">134</span>    //if it is a distributed HBase cluster, use the conf provided by classpath<a name="line.134"></a>
+<span class="sourceLineNo">135</span>    //to set hbase dir and fs.defaultFS.<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    //Since when the super class HBaseTestingUtility initializing, it will<a name="line.136"></a>
+<span class="sourceLineNo">137</span>    //change hbase.rootdir to a local test dir.<a name="line.137"></a>
+<span class="sourceLineNo">138</span>    //we use "original.defaultFS" and "original.hbase.dir" to restore them.<a name="line.138"></a>
+<span class="sourceLineNo">139</span>    Configuration conf = getConfiguration();<a name="line.139"></a>
+<span class="sourceLineNo">140</span>    if (conf.get("original.defaultFS") != null) {<a name="line.140"></a>
+<span class="sourceLineNo">141</span>      conf.set("fs.defaultFS", conf.get("original.defaultFS"));<a name="line.141"></a>
+<span class="sourceLineNo">142</span>    }<a name="line.142"></a>
+<span class="sourceLineNo">143</span>    if (conf.get("original.hbase.dir") != null) {<a name="line.143"></a>
+<span class="sourceLineNo">144</span>      conf.set(HConstants.HBASE_DIR, conf.get("original.hbase.dir"));<a name="line.144"></a>
+<span class="sourceLineNo">145</span>    }<a name="line.145"></a>
+<span class="sourceLineNo">146</span>    LOG.debug("Setting {} to {} since it is a distributed cluster",<a name="line.146"></a>
+<span class="sourceLineNo">147</span>        HConstants.HBASE_DIR, conf.get(HConstants.HBASE_DIR));<a name="line.147"></a>
+<span class="sourceLineNo">148</span>    Class&lt;? extends ClusterManager&gt; clusterManagerClass = conf.getClass(HBASE_CLUSTER_MANAGER_CLASS,<a name="line.148"></a>
+<span class="sourceLineNo">149</span>      DEFAULT_HBASE_CLUSTER_MANAGER_CLASS, ClusterManager.class);<a name="line.149"></a>
+<span class="sourceLineNo">150</span>    ClusterManager clusterManager = ReflectionUtils.newInstance(<a name="line.150"></a>
+<span class="sourceLineNo">151</span>      clusterManagerClass, conf);<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    setHBaseCluster(new DistributedHBaseCluster(conf, clusterManager));<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    getAdmin();<a name="line.153"></a>
+<span class="sourceLineNo">154</span>  }<a name="line.154"></a>
+<span class="sourceLineNo">155</span><a name="line.155"></a>
+<span class="sourceLineNo">156</span>}<a name="line.156"></a>
 
 
 


[08/10] hbase-site git commit: Published site at 03e596c6694a21768c51a3c52e1a032f51fd637c.

Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/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 b9dc38a..a93e27f 100644
--- a/testapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
+++ b/testapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
@@ -341,3814 +341,3818 @@
 <span class="sourceLineNo">333</span>    ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.333"></a>
 <span class="sourceLineNo">334</span><a name="line.334"></a>
 <span class="sourceLineNo">335</span>    // Save this for when setting default file:// breaks things<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.336"></a>
-<span class="sourceLineNo">337</span><a name="line.337"></a>
-<span class="sourceLineNo">338</span>    // Every cluster is a local cluster until we start DFS<a name="line.338"></a>
-<span class="sourceLineNo">339</span>    // Note that conf could be null, but this.conf will not be<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    String dataTestDir = getDataTestDir().toString();<a name="line.340"></a>
-<span class="sourceLineNo">341</span>    this.conf.set("fs.defaultFS","file:///");<a name="line.341"></a>
-<span class="sourceLineNo">342</span>    this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.342"></a>
-<span class="sourceLineNo">343</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    // If the value for random ports isn't set set it to true, thus making<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    // tests opt-out for random port assignment<a name="line.346"></a>
-<span class="sourceLineNo">347</span>    this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.347"></a>
-<span class="sourceLineNo">348</span>        this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.348"></a>
-<span class="sourceLineNo">349</span>  }<a name="line.349"></a>
-<span class="sourceLineNo">350</span><a name="line.350"></a>
-<span class="sourceLineNo">351</span>  /**<a name="line.351"></a>
-<span class="sourceLineNo">352</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.352"></a>
-<span class="sourceLineNo">353</span>   * @return a normal HBaseTestingUtility<a name="line.353"></a>
-<span class="sourceLineNo">354</span>   */<a name="line.354"></a>
-<span class="sourceLineNo">355</span>  @Deprecated<a name="line.355"></a>
-<span class="sourceLineNo">356</span>  public static HBaseTestingUtility createLocalHTU() {<a name="line.356"></a>
-<span class="sourceLineNo">357</span>    return new HBaseTestingUtility();<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>  /**<a name="line.360"></a>
-<span class="sourceLineNo">361</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.361"></a>
-<span class="sourceLineNo">362</span>   * @return a normal HBaseTestingUtility<a name="line.362"></a>
-<span class="sourceLineNo">363</span>   */<a name="line.363"></a>
-<span class="sourceLineNo">364</span>  @Deprecated<a name="line.364"></a>
-<span class="sourceLineNo">365</span>  public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    return new HBaseTestingUtility(c);<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>  /**<a name="line.369"></a>
-<span class="sourceLineNo">370</span>   * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.370"></a>
-<span class="sourceLineNo">371</span>   */<a name="line.371"></a>
-<span class="sourceLineNo">372</span>  public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.372"></a>
-<span class="sourceLineNo">373</span>    closeRegionAndWAL((HRegion)r);<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 HRegion {@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 HRegion r) throws IOException {<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    if (r == null) return;<a name="line.380"></a>
-<span class="sourceLineNo">381</span>    r.close();<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    if (r.getWAL() == null) return;<a name="line.382"></a>
-<span class="sourceLineNo">383</span>    r.getWAL().close();<a name="line.383"></a>
-<span class="sourceLineNo">384</span>  }<a name="line.384"></a>
-<span class="sourceLineNo">385</span><a name="line.385"></a>
-<span class="sourceLineNo">386</span>  /**<a name="line.386"></a>
-<span class="sourceLineNo">387</span>   * Returns this classes's instance of {@link Configuration}.  Be careful how<a name="line.387"></a>
-<span class="sourceLineNo">388</span>   * you use the returned Configuration since {@link Connection} instances<a name="line.388"></a>
-<span class="sourceLineNo">389</span>   * can be shared.  The Map of Connections is keyed by the Configuration.  If<a name="line.389"></a>
-<span class="sourceLineNo">390</span>   * say, a Connection was being used against a cluster that had been shutdown,<a name="line.390"></a>
-<span class="sourceLineNo">391</span>   * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.391"></a>
-<span class="sourceLineNo">392</span>   * be wholesome.  Rather than use the return direct, its usually best to<a name="line.392"></a>
-<span class="sourceLineNo">393</span>   * make a copy and use that.  Do<a name="line.393"></a>
-<span class="sourceLineNo">394</span>   * &lt;code&gt;Configuration c = new Configuration(INSTANCE.getConfiguration());&lt;/code&gt;<a name="line.394"></a>
-<span class="sourceLineNo">395</span>   * @return Instance of Configuration.<a name="line.395"></a>
-<span class="sourceLineNo">396</span>   */<a name="line.396"></a>
-<span class="sourceLineNo">397</span>  @Override<a name="line.397"></a>
-<span class="sourceLineNo">398</span>  public Configuration getConfiguration() {<a name="line.398"></a>
-<span class="sourceLineNo">399</span>    return super.getConfiguration();<a name="line.399"></a>
-<span class="sourceLineNo">400</span>  }<a name="line.400"></a>
-<span class="sourceLineNo">401</span><a name="line.401"></a>
-<span class="sourceLineNo">402</span>  public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    this.hbaseCluster = hbaseCluster;<a name="line.403"></a>
+<span class="sourceLineNo">336</span>    if (this.conf.get("fs.defaultFS") != null) {<a name="line.336"></a>
+<span class="sourceLineNo">337</span>      this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.337"></a>
+<span class="sourceLineNo">338</span>    }<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.339"></a>
+<span class="sourceLineNo">340</span>      this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.340"></a>
+<span class="sourceLineNo">341</span>    }<a name="line.341"></a>
+<span class="sourceLineNo">342</span>    // Every cluster is a local cluster until we start DFS<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    // Note that conf could be null, but this.conf will not be<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    String dataTestDir = getDataTestDir().toString();<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    this.conf.set("fs.defaultFS","file:///");<a name="line.345"></a>
+<span class="sourceLineNo">346</span>    this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.347"></a>
+<span class="sourceLineNo">348</span>    this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.348"></a>
+<span class="sourceLineNo">349</span>    // If the value for random ports isn't set set it to true, thus making<a name="line.349"></a>
+<span class="sourceLineNo">350</span>    // tests opt-out for random port assignment<a name="line.350"></a>
+<span class="sourceLineNo">351</span>    this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.351"></a>
+<span class="sourceLineNo">352</span>        this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.352"></a>
+<span class="sourceLineNo">353</span>  }<a name="line.353"></a>
+<span class="sourceLineNo">354</span><a name="line.354"></a>
+<span class="sourceLineNo">355</span>  /**<a name="line.355"></a>
+<span class="sourceLineNo">356</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.356"></a>
+<span class="sourceLineNo">357</span>   * @return a normal HBaseTestingUtility<a name="line.357"></a>
+<span class="sourceLineNo">358</span>   */<a name="line.358"></a>
+<span class="sourceLineNo">359</span>  @Deprecated<a name="line.359"></a>
+<span class="sourceLineNo">360</span>  public static HBaseTestingUtility createLocalHTU() {<a name="line.360"></a>
+<span class="sourceLineNo">361</span>    return new HBaseTestingUtility();<a name="line.361"></a>
+<span class="sourceLineNo">362</span>  }<a name="line.362"></a>
+<span class="sourceLineNo">363</span><a name="line.363"></a>
+<span class="sourceLineNo">364</span>  /**<a name="line.364"></a>
+<span class="sourceLineNo">365</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.365"></a>
+<span class="sourceLineNo">366</span>   * @return a normal HBaseTestingUtility<a name="line.366"></a>
+<span class="sourceLineNo">367</span>   */<a name="line.367"></a>
+<span class="sourceLineNo">368</span>  @Deprecated<a name="line.368"></a>
+<span class="sourceLineNo">369</span>  public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.369"></a>
+<span class="sourceLineNo">370</span>    return new HBaseTestingUtility(c);<a name="line.370"></a>
+<span class="sourceLineNo">371</span>  }<a name="line.371"></a>
+<span class="sourceLineNo">372</span><a name="line.372"></a>
+<span class="sourceLineNo">373</span>  /**<a name="line.373"></a>
+<span class="sourceLineNo">374</span>   * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.374"></a>
+<span class="sourceLineNo">375</span>   */<a name="line.375"></a>
+<span class="sourceLineNo">376</span>  public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.376"></a>
+<span class="sourceLineNo">377</span>    closeRegionAndWAL((HRegion)r);<a name="line.377"></a>
+<span class="sourceLineNo">378</span>  }<a name="line.378"></a>
+<span class="sourceLineNo">379</span><a name="line.379"></a>
+<span class="sourceLineNo">380</span>  /**<a name="line.380"></a>
+<span class="sourceLineNo">381</span>   * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.381"></a>
+<span class="sourceLineNo">382</span>   */<a name="line.382"></a>
+<span class="sourceLineNo">383</span>  public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.383"></a>
+<span class="sourceLineNo">384</span>    if (r == null) return;<a name="line.384"></a>
+<span class="sourceLineNo">385</span>    r.close();<a name="line.385"></a>
+<span class="sourceLineNo">386</span>    if (r.getWAL() == null) return;<a name="line.386"></a>
+<span class="sourceLineNo">387</span>    r.getWAL().close();<a name="line.387"></a>
+<span class="sourceLineNo">388</span>  }<a name="line.388"></a>
+<span class="sourceLineNo">389</span><a name="line.389"></a>
+<span class="sourceLineNo">390</span>  /**<a name="line.390"></a>
+<span class="sourceLineNo">391</span>   * Returns this classes's instance of {@link Configuration}.  Be careful how<a name="line.391"></a>
+<span class="sourceLineNo">392</span>   * you use the returned Configuration since {@link Connection} instances<a name="line.392"></a>
+<span class="sourceLineNo">393</span>   * can be shared.  The Map of Connections is keyed by the Configuration.  If<a name="line.393"></a>
+<span class="sourceLineNo">394</span>   * say, a Connection was being used against a cluster that had been shutdown,<a name="line.394"></a>
+<span class="sourceLineNo">395</span>   * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.395"></a>
+<span class="sourceLineNo">396</span>   * be wholesome.  Rather than use the return direct, its usually best to<a name="line.396"></a>
+<span class="sourceLineNo">397</span>   * make a copy and use that.  Do<a name="line.397"></a>
+<span class="sourceLineNo">398</span>   * &lt;code&gt;Configuration c = new Configuration(INSTANCE.getConfiguration());&lt;/code&gt;<a name="line.398"></a>
+<span class="sourceLineNo">399</span>   * @return Instance of Configuration.<a name="line.399"></a>
+<span class="sourceLineNo">400</span>   */<a name="line.400"></a>
+<span class="sourceLineNo">401</span>  @Override<a name="line.401"></a>
+<span class="sourceLineNo">402</span>  public Configuration getConfiguration() {<a name="line.402"></a>
+<span class="sourceLineNo">403</span>    return super.getConfiguration();<a name="line.403"></a>
 <span class="sourceLineNo">404</span>  }<a name="line.404"></a>
 <span class="sourceLineNo">405</span><a name="line.405"></a>
-<span class="sourceLineNo">406</span>  /**<a name="line.406"></a>
-<span class="sourceLineNo">407</span>   * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.407"></a>
-<span class="sourceLineNo">408</span>   * Give it a random name so can have many concurrent tests running if<a name="line.408"></a>
-<span class="sourceLineNo">409</span>   * we need to.  It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.409"></a>
-<span class="sourceLineNo">410</span>   * System property, as it's what minidfscluster bases<a name="line.410"></a>
-<span class="sourceLineNo">411</span>   * it data dir on.  Moding a System property is not the way to do concurrent<a name="line.411"></a>
-<span class="sourceLineNo">412</span>   * instances -- another instance could grab the temporary<a name="line.412"></a>
-<span class="sourceLineNo">413</span>   * value unintentionally -- but not anything can do about it at moment;<a name="line.413"></a>
-<span class="sourceLineNo">414</span>   * single instance only is how the minidfscluster works.<a name="line.414"></a>
-<span class="sourceLineNo">415</span>   *<a name="line.415"></a>
-<span class="sourceLineNo">416</span>   * We also create the underlying directory for<a name="line.416"></a>
-<span class="sourceLineNo">417</span>   *  hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.417"></a>
-<span class="sourceLineNo">418</span>   *  in the conf, and as a system property for hadoop.tmp.dir<a name="line.418"></a>
+<span class="sourceLineNo">406</span>  public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    this.hbaseCluster = hbaseCluster;<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>  /**<a name="line.410"></a>
+<span class="sourceLineNo">411</span>   * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.411"></a>
+<span class="sourceLineNo">412</span>   * Give it a random name so can have many concurrent tests running if<a name="line.412"></a>
+<span class="sourceLineNo">413</span>   * we need to.  It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.413"></a>
+<span class="sourceLineNo">414</span>   * System property, as it's what minidfscluster bases<a name="line.414"></a>
+<span class="sourceLineNo">415</span>   * it data dir on.  Moding a System property is not the way to do concurrent<a name="line.415"></a>
+<span class="sourceLineNo">416</span>   * instances -- another instance could grab the temporary<a name="line.416"></a>
+<span class="sourceLineNo">417</span>   * value unintentionally -- but not anything can do about it at moment;<a name="line.417"></a>
+<span class="sourceLineNo">418</span>   * single instance only is how the minidfscluster works.<a name="line.418"></a>
 <span class="sourceLineNo">419</span>   *<a name="line.419"></a>
-<span class="sourceLineNo">420</span>   * @return The calculated data test build directory, if newly-created.<a name="line.420"></a>
-<span class="sourceLineNo">421</span>   */<a name="line.421"></a>
-<span class="sourceLineNo">422</span>  @Override<a name="line.422"></a>
-<span class="sourceLineNo">423</span>  protected Path setupDataTestDir() {<a name="line.423"></a>
-<span class="sourceLineNo">424</span>    Path testPath = super.setupDataTestDir();<a name="line.424"></a>
-<span class="sourceLineNo">425</span>    if (null == testPath) {<a name="line.425"></a>
-<span class="sourceLineNo">426</span>      return null;<a name="line.426"></a>
-<span class="sourceLineNo">427</span>    }<a name="line.427"></a>
-<span class="sourceLineNo">428</span><a name="line.428"></a>
-<span class="sourceLineNo">429</span>    createSubDirAndSystemProperty(<a name="line.429"></a>
-<span class="sourceLineNo">430</span>      "hadoop.log.dir",<a name="line.430"></a>
-<span class="sourceLineNo">431</span>      testPath, "hadoop-log-dir");<a name="line.431"></a>
+<span class="sourceLineNo">420</span>   * We also create the underlying directory for<a name="line.420"></a>
+<span class="sourceLineNo">421</span>   *  hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.421"></a>
+<span class="sourceLineNo">422</span>   *  in the conf, and as a system property for hadoop.tmp.dir<a name="line.422"></a>
+<span class="sourceLineNo">423</span>   *<a name="line.423"></a>
+<span class="sourceLineNo">424</span>   * @return The calculated data test build directory, if newly-created.<a name="line.424"></a>
+<span class="sourceLineNo">425</span>   */<a name="line.425"></a>
+<span class="sourceLineNo">426</span>  @Override<a name="line.426"></a>
+<span class="sourceLineNo">427</span>  protected Path setupDataTestDir() {<a name="line.427"></a>
+<span class="sourceLineNo">428</span>    Path testPath = super.setupDataTestDir();<a name="line.428"></a>
+<span class="sourceLineNo">429</span>    if (null == testPath) {<a name="line.429"></a>
+<span class="sourceLineNo">430</span>      return null;<a name="line.430"></a>
+<span class="sourceLineNo">431</span>    }<a name="line.431"></a>
 <span class="sourceLineNo">432</span><a name="line.432"></a>
-<span class="sourceLineNo">433</span>    // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.433"></a>
-<span class="sourceLineNo">434</span>    //  we want our own value to ensure uniqueness on the same machine<a name="line.434"></a>
-<span class="sourceLineNo">435</span>    createSubDirAndSystemProperty(<a name="line.435"></a>
-<span class="sourceLineNo">436</span>      "hadoop.tmp.dir",<a name="line.436"></a>
-<span class="sourceLineNo">437</span>      testPath, "hadoop-tmp-dir");<a name="line.437"></a>
-<span class="sourceLineNo">438</span><a name="line.438"></a>
-<span class="sourceLineNo">439</span>    // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.439"></a>
-<span class="sourceLineNo">440</span>    createSubDir(<a name="line.440"></a>
-<span class="sourceLineNo">441</span>      "mapreduce.cluster.local.dir",<a name="line.441"></a>
-<span class="sourceLineNo">442</span>      testPath, "mapred-local-dir");<a name="line.442"></a>
-<span class="sourceLineNo">443</span><a name="line.443"></a>
-<span class="sourceLineNo">444</span>    return testPath;<a name="line.444"></a>
-<span class="sourceLineNo">445</span>  }<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span>  private void createSubDirAndSystemProperty(<a name="line.447"></a>
-<span class="sourceLineNo">448</span>    String propertyName, Path parent, String subDirName){<a name="line.448"></a>
-<span class="sourceLineNo">449</span><a name="line.449"></a>
-<span class="sourceLineNo">450</span>    String sysValue = System.getProperty(propertyName);<a name="line.450"></a>
-<span class="sourceLineNo">451</span><a name="line.451"></a>
-<span class="sourceLineNo">452</span>    if (sysValue != null) {<a name="line.452"></a>
-<span class="sourceLineNo">453</span>      // There is already a value set. So we do nothing but hope<a name="line.453"></a>
-<span class="sourceLineNo">454</span>      //  that there will be no conflicts<a name="line.454"></a>
-<span class="sourceLineNo">455</span>      LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.455"></a>
-<span class="sourceLineNo">456</span>        sysValue + " so I do NOT create it in " + parent);<a name="line.456"></a>
-<span class="sourceLineNo">457</span>      String confValue = conf.get(propertyName);<a name="line.457"></a>
-<span class="sourceLineNo">458</span>      if (confValue != null &amp;&amp; !confValue.endsWith(sysValue)){<a name="line.458"></a>
-<span class="sourceLineNo">459</span>       LOG.warn(<a name="line.459"></a>
-<span class="sourceLineNo">460</span>         propertyName + " property value differs in configuration and system: "+<a name="line.460"></a>
-<span class="sourceLineNo">461</span>         "Configuration="+confValue+" while System="+sysValue+<a name="line.461"></a>
-<span class="sourceLineNo">462</span>         " Erasing configuration value by system value."<a name="line.462"></a>
-<span class="sourceLineNo">463</span>       );<a name="line.463"></a>
-<span class="sourceLineNo">464</span>      }<a name="line.464"></a>
-<span class="sourceLineNo">465</span>      conf.set(propertyName, sysValue);<a name="line.465"></a>
-<span class="sourceLineNo">466</span>    } else {<a name="line.466"></a>
-<span class="sourceLineNo">467</span>      // Ok, it's not set, so we create it as a subdirectory<a name="line.467"></a>
-<span class="sourceLineNo">468</span>      createSubDir(propertyName, parent, subDirName);<a name="line.468"></a>
-<span class="sourceLineNo">469</span>      System.setProperty(propertyName, conf.get(propertyName));<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><a name="line.472"></a>
-<span class="sourceLineNo">473</span>  /**<a name="line.473"></a>
-<span class="sourceLineNo">474</span>   * @return Where to write test data on the test filesystem; Returns working directory<a name="line.474"></a>
-<span class="sourceLineNo">475</span>   * for the test filesystem by default<a name="line.475"></a>
-<span class="sourceLineNo">476</span>   * @see #setupDataTestDirOnTestFS()<a name="line.476"></a>
-<span class="sourceLineNo">477</span>   * @see #getTestFileSystem()<a name="line.477"></a>
-<span class="sourceLineNo">478</span>   */<a name="line.478"></a>
-<span class="sourceLineNo">479</span>  private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.479"></a>
-<span class="sourceLineNo">480</span>    FileSystem fs = getTestFileSystem();<a name="line.480"></a>
-<span class="sourceLineNo">481</span>    return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.481"></a>
-<span class="sourceLineNo">482</span>  }<a name="line.482"></a>
-<span class="sourceLineNo">483</span><a name="line.483"></a>
-<span class="sourceLineNo">484</span>  /**<a name="line.484"></a>
-<span class="sourceLineNo">485</span>   * @return META table descriptor<a name="line.485"></a>
-<span class="sourceLineNo">486</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.486"></a>
-<span class="sourceLineNo">487</span>   *             use {@link #getMetaTableDescriptorBuilder()}<a name="line.487"></a>
-<span class="sourceLineNo">488</span>   */<a name="line.488"></a>
-<span class="sourceLineNo">489</span>  @Deprecated<a name="line.489"></a>
-<span class="sourceLineNo">490</span>  public HTableDescriptor getMetaTableDescriptor() {<a name="line.490"></a>
-<span class="sourceLineNo">491</span>    return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.491"></a>
-<span class="sourceLineNo">492</span>  }<a name="line.492"></a>
-<span class="sourceLineNo">493</span><a name="line.493"></a>
-<span class="sourceLineNo">494</span>  /**<a name="line.494"></a>
-<span class="sourceLineNo">495</span>   * @return META table descriptor<a name="line.495"></a>
-<span class="sourceLineNo">496</span>   */<a name="line.496"></a>
-<span class="sourceLineNo">497</span>  public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.497"></a>
-<span class="sourceLineNo">498</span>    try {<a name="line.498"></a>
-<span class="sourceLineNo">499</span>      return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.499"></a>
-<span class="sourceLineNo">500</span>    } catch (IOException e) {<a name="line.500"></a>
-<span class="sourceLineNo">501</span>      throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.501"></a>
-<span class="sourceLineNo">502</span>    }<a name="line.502"></a>
-<span class="sourceLineNo">503</span>  }<a name="line.503"></a>
-<span class="sourceLineNo">504</span><a name="line.504"></a>
-<span class="sourceLineNo">505</span>  /**<a name="line.505"></a>
-<span class="sourceLineNo">506</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.506"></a>
-<span class="sourceLineNo">507</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.507"></a>
-<span class="sourceLineNo">508</span>   * if the test relies on it.<a name="line.508"></a>
-<span class="sourceLineNo">509</span>   * @return a unique path in the test filesystem<a name="line.509"></a>
-<span class="sourceLineNo">510</span>   */<a name="line.510"></a>
-<span class="sourceLineNo">511</span>  public Path getDataTestDirOnTestFS() throws IOException {<a name="line.511"></a>
-<span class="sourceLineNo">512</span>    if (dataTestDirOnTestFS == null) {<a name="line.512"></a>
-<span class="sourceLineNo">513</span>      setupDataTestDirOnTestFS();<a name="line.513"></a>
-<span class="sourceLineNo">514</span>    }<a name="line.514"></a>
-<span class="sourceLineNo">515</span><a name="line.515"></a>
-<span class="sourceLineNo">516</span>    return dataTestDirOnTestFS;<a name="line.516"></a>
-<span class="sourceLineNo">517</span>  }<a name="line.517"></a>
-<span class="sourceLineNo">518</span><a name="line.518"></a>
-<span class="sourceLineNo">519</span>  /**<a name="line.519"></a>
-<span class="sourceLineNo">520</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.520"></a>
-<span class="sourceLineNo">521</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.521"></a>
-<span class="sourceLineNo">522</span>   * if the test relies on it.<a name="line.522"></a>
-<span class="sourceLineNo">523</span>   * @return a unique path in the test filesystem<a name="line.523"></a>
-<span class="sourceLineNo">524</span>   * @param subdirName name of the subdir to create under the base test dir<a name="line.524"></a>
-<span class="sourceLineNo">525</span>   */<a name="line.525"></a>
-<span class="sourceLineNo">526</span>  public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.526"></a>
-<span class="sourceLineNo">527</span>    return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.527"></a>
-<span class="sourceLineNo">528</span>  }<a name="line.528"></a>
-<span class="sourceLineNo">529</span><a name="line.529"></a>
-<span class="sourceLineNo">530</span>  /**<a name="line.530"></a>
-<span class="sourceLineNo">531</span>   * Sets up a path in test filesystem to be used by tests.<a name="line.531"></a>
-<span class="sourceLineNo">532</span>   * Creates a new directory if not already setup.<a name="line.532"></a>
-<span class="sourceLineNo">533</span>   */<a name="line.533"></a>
-<span class="sourceLineNo">534</span>  private void setupDataTestDirOnTestFS() throws IOException {<a name="line.534"></a>
-<span class="sourceLineNo">535</span>    if (dataTestDirOnTestFS != null) {<a name="line.535"></a>
-<span class="sourceLineNo">536</span>      LOG.warn("Data test on test fs dir already setup in "<a name="line.536"></a>
-<span class="sourceLineNo">537</span>          + dataTestDirOnTestFS.toString());<a name="line.537"></a>
-<span class="sourceLineNo">538</span>      return;<a name="line.538"></a>
-<span class="sourceLineNo">539</span>    }<a name="line.539"></a>
-<span class="sourceLineNo">540</span>    dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.540"></a>
-<span class="sourceLineNo">541</span>  }<a name="line.541"></a>
-<span class="sourceLineNo">542</span><a name="line.542"></a>
-<span class="sourceLineNo">543</span>  /**<a name="line.543"></a>
-<span class="sourceLineNo">544</span>   * Sets up a new path in test filesystem to be used by tests.<a name="line.544"></a>
-<span class="sourceLineNo">545</span>   */<a name="line.545"></a>
-<span class="sourceLineNo">546</span>  private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.546"></a>
-<span class="sourceLineNo">547</span>    //The file system can be either local, mini dfs, or if the configuration<a name="line.547"></a>
-<span class="sourceLineNo">548</span>    //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.548"></a>
-<span class="sourceLineNo">549</span>    //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.549"></a>
-<span class="sourceLineNo">550</span>    //the working directory, and create a unique sub dir there<a name="line.550"></a>
-<span class="sourceLineNo">551</span>    FileSystem fs = getTestFileSystem();<a name="line.551"></a>
-<span class="sourceLineNo">552</span>    Path newDataTestDir;<a name="line.552"></a>
-<span class="sourceLineNo">553</span>    String randomStr = getRandomUUID().toString();<a name="line.553"></a>
-<span class="sourceLineNo">554</span>    if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.554"></a>
-<span class="sourceLineNo">555</span>      newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.555"></a>
-<span class="sourceLineNo">556</span>      File dataTestDir = new File(newDataTestDir.toString());<a name="line.556"></a>
-<span class="sourceLineNo">557</span>      if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.557"></a>
-<span class="sourceLineNo">558</span>    } else {<a name="line.558"></a>
-<span class="sourceLineNo">559</span>      Path base = getBaseTestDirOnTestFS();<a name="line.559"></a>
-<span class="sourceLineNo">560</span>      newDataTestDir = new Path(base, randomStr);<a name="line.560"></a>
-<span class="sourceLineNo">561</span>      if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.561"></a>
-<span class="sourceLineNo">562</span>    }<a name="line.562"></a>
-<span class="sourceLineNo">563</span>    return newDataTestDir;<a name="line.563"></a>
-<span class="sourceLineNo">564</span>  }<a name="line.564"></a>
-<span class="sourceLineNo">565</span><a name="line.565"></a>
-<span class="sourceLineNo">566</span>  /**<a name="line.566"></a>
-<span class="sourceLineNo">567</span>   * Cleans the test data directory on the test filesystem.<a name="line.567"></a>
-<span class="sourceLineNo">568</span>   * @return True if we removed the test dirs<a name="line.568"></a>
-<span class="sourceLineNo">569</span>   * @throws IOException<a name="line.569"></a>
-<span class="sourceLineNo">570</span>   */<a name="line.570"></a>
-<span class="sourceLineNo">571</span>  public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.571"></a>
-<span class="sourceLineNo">572</span>    boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.572"></a>
-<span class="sourceLineNo">573</span>    if (ret)<a name="line.573"></a>
-<span class="sourceLineNo">574</span>      dataTestDirOnTestFS = null;<a name="line.574"></a>
-<span class="sourceLineNo">575</span>    return ret;<a name="line.575"></a>
-<span class="sourceLineNo">576</span>  }<a name="line.576"></a>
-<span class="sourceLineNo">577</span><a name="line.577"></a>
-<span class="sourceLineNo">578</span>  /**<a name="line.578"></a>
-<span class="sourceLineNo">579</span>   * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.579"></a>
-<span class="sourceLineNo">580</span>   * @return True if we removed child<a name="line.580"></a>
-<span class="sourceLineNo">581</span>   * @throws IOException<a name="line.581"></a>
-<span class="sourceLineNo">582</span>   */<a name="line.582"></a>
-<span class="sourceLineNo">583</span>  public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.583"></a>
-<span class="sourceLineNo">584</span>    Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.584"></a>
-<span class="sourceLineNo">585</span>    return getTestFileSystem().delete(cpath, true);<a name="line.585"></a>
-<span class="sourceLineNo">586</span>  }<a name="line.586"></a>
-<span class="sourceLineNo">587</span><a name="line.587"></a>
-<span class="sourceLineNo">588</span>  /**<a name="line.588"></a>
-<span class="sourceLineNo">589</span>   * Start a minidfscluster.<a name="line.589"></a>
-<span class="sourceLineNo">590</span>   * @param servers How many DNs to start.<a name="line.590"></a>
-<span class="sourceLineNo">591</span>   * @throws Exception<a name="line.591"></a>
-<span class="sourceLineNo">592</span>   * @see #shutdownMiniDFSCluster()<a name="line.592"></a>
-<span class="sourceLineNo">593</span>   * @return The mini dfs cluster created.<a name="line.593"></a>
-<span class="sourceLineNo">594</span>   */<a name="line.594"></a>
-<span class="sourceLineNo">595</span>  public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.595"></a>
-<span class="sourceLineNo">596</span>    return startMiniDFSCluster(servers, null);<a name="line.596"></a>
-<span class="sourceLineNo">597</span>  }<a name="line.597"></a>
-<span class="sourceLineNo">598</span><a name="line.598"></a>
-<span class="sourceLineNo">599</span>  /**<a name="line.599"></a>
-<span class="sourceLineNo">600</span>   * Start a minidfscluster.<a name="line.600"></a>
-<span class="sourceLineNo">601</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.601"></a>
-<span class="sourceLineNo">602</span>   * like HDFS block location verification.<a name="line.602"></a>
-<span class="sourceLineNo">603</span>   * If you start MiniDFSCluster without host names, all instances of the<a name="line.603"></a>
-<span class="sourceLineNo">604</span>   * datanodes will have the same host name.<a name="line.604"></a>
-<span class="sourceLineNo">605</span>   * @param hosts hostnames DNs to run on.<a name="line.605"></a>
-<span class="sourceLineNo">606</span>   * @throws Exception<a name="line.606"></a>
-<span class="sourceLineNo">607</span>   * @see #shutdownMiniDFSCluster()<a name="line.607"></a>
-<span class="sourceLineNo">608</span>   * @return The mini dfs cluster created.<a name="line.608"></a>
-<span class="sourceLineNo">609</span>   */<a name="line.609"></a>
-<span class="sourceLineNo">610</span>  public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.610"></a>
-<span class="sourceLineNo">611</span>  throws Exception {<a name="line.611"></a>
-<span class="sourceLineNo">612</span>    if ( hosts != null &amp;&amp; hosts.length != 0) {<a name="line.612"></a>
-<span class="sourceLineNo">613</span>      return startMiniDFSCluster(hosts.length, hosts);<a name="line.613"></a>
-<span class="sourceLineNo">614</span>    } else {<a name="line.614"></a>
-<span class="sourceLineNo">615</span>      return startMiniDFSCluster(1, null);<a name="line.615"></a>
-<span class="sourceLineNo">616</span>    }<a name="line.616"></a>
-<span class="sourceLineNo">617</span>  }<a name="line.617"></a>
-<span class="sourceLineNo">618</span><a name="line.618"></a>
-<span class="sourceLineNo">619</span>  /**<a name="line.619"></a>
-<span class="sourceLineNo">620</span>   * Start a minidfscluster.<a name="line.620"></a>
-<span class="sourceLineNo">621</span>   * Can only create one.<a name="line.621"></a>
-<span class="sourceLineNo">622</span>   * @param servers How many DNs to start.<a name="line.622"></a>
-<span class="sourceLineNo">623</span>   * @param hosts hostnames DNs to run on.<a name="line.623"></a>
-<span class="sourceLineNo">624</span>   * @throws Exception<a name="line.624"></a>
-<span class="sourceLineNo">625</span>   * @see #shutdownMiniDFSCluster()<a name="line.625"></a>
-<span class="sourceLineNo">626</span>   * @return The mini dfs cluster created.<a name="line.626"></a>
-<span class="sourceLineNo">627</span>   */<a name="line.627"></a>
-<span class="sourceLineNo">628</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.628"></a>
-<span class="sourceLineNo">629</span>  throws Exception {<a name="line.629"></a>
-<span class="sourceLineNo">630</span>    return startMiniDFSCluster(servers, null, hosts);<a name="line.630"></a>
-<span class="sourceLineNo">631</span>  }<a name="line.631"></a>
-<span class="sourceLineNo">632</span><a name="line.632"></a>
-<span class="sourceLineNo">633</span>  private void setFs() throws IOException {<a name="line.633"></a>
-<span class="sourceLineNo">634</span>    if(this.dfsCluster == null){<a name="line.634"></a>
-<span class="sourceLineNo">635</span>      LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.635"></a>
-<span class="sourceLineNo">636</span>      return;<a name="line.636"></a>
-<span class="sourceLineNo">637</span>    }<a name="line.637"></a>
-<span class="sourceLineNo">638</span>    FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.638"></a>
-<span class="sourceLineNo">639</span>    FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.639"></a>
-<span class="sourceLineNo">640</span><a name="line.640"></a>
-<span class="sourceLineNo">641</span>    // re-enable this check with dfs<a name="line.641"></a>
-<span class="sourceLineNo">642</span>    conf.unset(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE);<a name="line.642"></a>
-<span class="sourceLineNo">643</span>  }<a name="line.643"></a>
+<span class="sourceLineNo">433</span>    createSubDirAndSystemProperty(<a name="line.433"></a>
+<span class="sourceLineNo">434</span>      "hadoop.log.dir",<a name="line.434"></a>
+<span class="sourceLineNo">435</span>      testPath, "hadoop-log-dir");<a name="line.435"></a>
+<span class="sourceLineNo">436</span><a name="line.436"></a>
+<span class="sourceLineNo">437</span>    // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.437"></a>
+<span class="sourceLineNo">438</span>    //  we want our own value to ensure uniqueness on the same machine<a name="line.438"></a>
+<span class="sourceLineNo">439</span>    createSubDirAndSystemProperty(<a name="line.439"></a>
+<span class="sourceLineNo">440</span>      "hadoop.tmp.dir",<a name="line.440"></a>
+<span class="sourceLineNo">441</span>      testPath, "hadoop-tmp-dir");<a name="line.441"></a>
+<span class="sourceLineNo">442</span><a name="line.442"></a>
+<span class="sourceLineNo">443</span>    // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.443"></a>
+<span class="sourceLineNo">444</span>    createSubDir(<a name="line.444"></a>
+<span class="sourceLineNo">445</span>      "mapreduce.cluster.local.dir",<a name="line.445"></a>
+<span class="sourceLineNo">446</span>      testPath, "mapred-local-dir");<a name="line.446"></a>
+<span class="sourceLineNo">447</span><a name="line.447"></a>
+<span class="sourceLineNo">448</span>    return testPath;<a name="line.448"></a>
+<span class="sourceLineNo">449</span>  }<a name="line.449"></a>
+<span class="sourceLineNo">450</span><a name="line.450"></a>
+<span class="sourceLineNo">451</span>  private void createSubDirAndSystemProperty(<a name="line.451"></a>
+<span class="sourceLineNo">452</span>    String propertyName, Path parent, String subDirName){<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span>    String sysValue = System.getProperty(propertyName);<a name="line.454"></a>
+<span class="sourceLineNo">455</span><a name="line.455"></a>
+<span class="sourceLineNo">456</span>    if (sysValue != null) {<a name="line.456"></a>
+<span class="sourceLineNo">457</span>      // There is already a value set. So we do nothing but hope<a name="line.457"></a>
+<span class="sourceLineNo">458</span>      //  that there will be no conflicts<a name="line.458"></a>
+<span class="sourceLineNo">459</span>      LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.459"></a>
+<span class="sourceLineNo">460</span>        sysValue + " so I do NOT create it in " + parent);<a name="line.460"></a>
+<span class="sourceLineNo">461</span>      String confValue = conf.get(propertyName);<a name="line.461"></a>
+<span class="sourceLineNo">462</span>      if (confValue != null &amp;&amp; !confValue.endsWith(sysValue)){<a name="line.462"></a>
+<span class="sourceLineNo">463</span>       LOG.warn(<a name="line.463"></a>
+<span class="sourceLineNo">464</span>         propertyName + " property value differs in configuration and system: "+<a name="line.464"></a>
+<span class="sourceLineNo">465</span>         "Configuration="+confValue+" while System="+sysValue+<a name="line.465"></a>
+<span class="sourceLineNo">466</span>         " Erasing configuration value by system value."<a name="line.466"></a>
+<span class="sourceLineNo">467</span>       );<a name="line.467"></a>
+<span class="sourceLineNo">468</span>      }<a name="line.468"></a>
+<span class="sourceLineNo">469</span>      conf.set(propertyName, sysValue);<a name="line.469"></a>
+<span class="sourceLineNo">470</span>    } else {<a name="line.470"></a>
+<span class="sourceLineNo">471</span>      // Ok, it's not set, so we create it as a subdirectory<a name="line.471"></a>
+<span class="sourceLineNo">472</span>      createSubDir(propertyName, parent, subDirName);<a name="line.472"></a>
+<span class="sourceLineNo">473</span>      System.setProperty(propertyName, conf.get(propertyName));<a name="line.473"></a>
+<span class="sourceLineNo">474</span>    }<a name="line.474"></a>
+<span class="sourceLineNo">475</span>  }<a name="line.475"></a>
+<span class="sourceLineNo">476</span><a name="line.476"></a>
+<span class="sourceLineNo">477</span>  /**<a name="line.477"></a>
+<span class="sourceLineNo">478</span>   * @return Where to write test data on the test filesystem; Returns working directory<a name="line.478"></a>
+<span class="sourceLineNo">479</span>   * for the test filesystem by default<a name="line.479"></a>
+<span class="sourceLineNo">480</span>   * @see #setupDataTestDirOnTestFS()<a name="line.480"></a>
+<span class="sourceLineNo">481</span>   * @see #getTestFileSystem()<a name="line.481"></a>
+<span class="sourceLineNo">482</span>   */<a name="line.482"></a>
+<span class="sourceLineNo">483</span>  private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.483"></a>
+<span class="sourceLineNo">484</span>    FileSystem fs = getTestFileSystem();<a name="line.484"></a>
+<span class="sourceLineNo">485</span>    return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.485"></a>
+<span class="sourceLineNo">486</span>  }<a name="line.486"></a>
+<span class="sourceLineNo">487</span><a name="line.487"></a>
+<span class="sourceLineNo">488</span>  /**<a name="line.488"></a>
+<span class="sourceLineNo">489</span>   * @return META table descriptor<a name="line.489"></a>
+<span class="sourceLineNo">490</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.490"></a>
+<span class="sourceLineNo">491</span>   *             use {@link #getMetaTableDescriptorBuilder()}<a name="line.491"></a>
+<span class="sourceLineNo">492</span>   */<a name="line.492"></a>
+<span class="sourceLineNo">493</span>  @Deprecated<a name="line.493"></a>
+<span class="sourceLineNo">494</span>  public HTableDescriptor getMetaTableDescriptor() {<a name="line.494"></a>
+<span class="sourceLineNo">495</span>    return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.495"></a>
+<span class="sourceLineNo">496</span>  }<a name="line.496"></a>
+<span class="sourceLineNo">497</span><a name="line.497"></a>
+<span class="sourceLineNo">498</span>  /**<a name="line.498"></a>
+<span class="sourceLineNo">499</span>   * @return META table descriptor<a name="line.499"></a>
+<span class="sourceLineNo">500</span>   */<a name="line.500"></a>
+<span class="sourceLineNo">501</span>  public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.501"></a>
+<span class="sourceLineNo">502</span>    try {<a name="line.502"></a>
+<span class="sourceLineNo">503</span>      return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.503"></a>
+<span class="sourceLineNo">504</span>    } catch (IOException e) {<a name="line.504"></a>
+<span class="sourceLineNo">505</span>      throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.505"></a>
+<span class="sourceLineNo">506</span>    }<a name="line.506"></a>
+<span class="sourceLineNo">507</span>  }<a name="line.507"></a>
+<span class="sourceLineNo">508</span><a name="line.508"></a>
+<span class="sourceLineNo">509</span>  /**<a name="line.509"></a>
+<span class="sourceLineNo">510</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.510"></a>
+<span class="sourceLineNo">511</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.511"></a>
+<span class="sourceLineNo">512</span>   * if the test relies on it.<a name="line.512"></a>
+<span class="sourceLineNo">513</span>   * @return a unique path in the test filesystem<a name="line.513"></a>
+<span class="sourceLineNo">514</span>   */<a name="line.514"></a>
+<span class="sourceLineNo">515</span>  public Path getDataTestDirOnTestFS() throws IOException {<a name="line.515"></a>
+<span class="sourceLineNo">516</span>    if (dataTestDirOnTestFS == null) {<a name="line.516"></a>
+<span class="sourceLineNo">517</span>      setupDataTestDirOnTestFS();<a name="line.517"></a>
+<span class="sourceLineNo">518</span>    }<a name="line.518"></a>
+<span class="sourceLineNo">519</span><a name="line.519"></a>
+<span class="sourceLineNo">520</span>    return dataTestDirOnTestFS;<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>  /**<a name="line.523"></a>
+<span class="sourceLineNo">524</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.524"></a>
+<span class="sourceLineNo">525</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.525"></a>
+<span class="sourceLineNo">526</span>   * if the test relies on it.<a name="line.526"></a>
+<span class="sourceLineNo">527</span>   * @return a unique path in the test filesystem<a name="line.527"></a>
+<span class="sourceLineNo">528</span>   * @param subdirName name of the subdir to create under the base test dir<a name="line.528"></a>
+<span class="sourceLineNo">529</span>   */<a name="line.529"></a>
+<span class="sourceLineNo">530</span>  public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.530"></a>
+<span class="sourceLineNo">531</span>    return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.531"></a>
+<span class="sourceLineNo">532</span>  }<a name="line.532"></a>
+<span class="sourceLineNo">533</span><a name="line.533"></a>
+<span class="sourceLineNo">534</span>  /**<a name="line.534"></a>
+<span class="sourceLineNo">535</span>   * Sets up a path in test filesystem to be used by tests.<a name="line.535"></a>
+<span class="sourceLineNo">536</span>   * Creates a new directory if not already setup.<a name="line.536"></a>
+<span class="sourceLineNo">537</span>   */<a name="line.537"></a>
+<span class="sourceLineNo">538</span>  private void setupDataTestDirOnTestFS() throws IOException {<a name="line.538"></a>
+<span class="sourceLineNo">539</span>    if (dataTestDirOnTestFS != null) {<a name="line.539"></a>
+<span class="sourceLineNo">540</span>      LOG.warn("Data test on test fs dir already setup in "<a name="line.540"></a>
+<span class="sourceLineNo">541</span>          + dataTestDirOnTestFS.toString());<a name="line.541"></a>
+<span class="sourceLineNo">542</span>      return;<a name="line.542"></a>
+<span class="sourceLineNo">543</span>    }<a name="line.543"></a>
+<span class="sourceLineNo">544</span>    dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.544"></a>
+<span class="sourceLineNo">545</span>  }<a name="line.545"></a>
+<span class="sourceLineNo">546</span><a name="line.546"></a>
+<span class="sourceLineNo">547</span>  /**<a name="line.547"></a>
+<span class="sourceLineNo">548</span>   * Sets up a new path in test filesystem to be used by tests.<a name="line.548"></a>
+<span class="sourceLineNo">549</span>   */<a name="line.549"></a>
+<span class="sourceLineNo">550</span>  private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.550"></a>
+<span class="sourceLineNo">551</span>    //The file system can be either local, mini dfs, or if the configuration<a name="line.551"></a>
+<span class="sourceLineNo">552</span>    //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.552"></a>
+<span class="sourceLineNo">553</span>    //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.553"></a>
+<span class="sourceLineNo">554</span>    //the working directory, and create a unique sub dir there<a name="line.554"></a>
+<span class="sourceLineNo">555</span>    FileSystem fs = getTestFileSystem();<a name="line.555"></a>
+<span class="sourceLineNo">556</span>    Path newDataTestDir;<a name="line.556"></a>
+<span class="sourceLineNo">557</span>    String randomStr = getRandomUUID().toString();<a name="line.557"></a>
+<span class="sourceLineNo">558</span>    if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.558"></a>
+<span class="sourceLineNo">559</span>      newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.559"></a>
+<span class="sourceLineNo">560</span>      File dataTestDir = new File(newDataTestDir.toString());<a name="line.560"></a>
+<span class="sourceLineNo">561</span>      if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.561"></a>
+<span class="sourceLineNo">562</span>    } else {<a name="line.562"></a>
+<span class="sourceLineNo">563</span>      Path base = getBaseTestDirOnTestFS();<a name="line.563"></a>
+<span class="sourceLineNo">564</span>      newDataTestDir = new Path(base, randomStr);<a name="line.564"></a>
+<span class="sourceLineNo">565</span>      if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.565"></a>
+<span class="sourceLineNo">566</span>    }<a name="line.566"></a>
+<span class="sourceLineNo">567</span>    return newDataTestDir;<a name="line.567"></a>
+<span class="sourceLineNo">568</span>  }<a name="line.568"></a>
+<span class="sourceLineNo">569</span><a name="line.569"></a>
+<span class="sourceLineNo">570</span>  /**<a name="line.570"></a>
+<span class="sourceLineNo">571</span>   * Cleans the test data directory on the test filesystem.<a name="line.571"></a>
+<span class="sourceLineNo">572</span>   * @return True if we removed the test dirs<a name="line.572"></a>
+<span class="sourceLineNo">573</span>   * @throws IOException<a name="line.573"></a>
+<span class="sourceLineNo">574</span>   */<a name="line.574"></a>
+<span class="sourceLineNo">575</span>  public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.575"></a>
+<span class="sourceLineNo">576</span>    boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.576"></a>
+<span class="sourceLineNo">577</span>    if (ret)<a name="line.577"></a>
+<span class="sourceLineNo">578</span>      dataTestDirOnTestFS = null;<a name="line.578"></a>
+<span class="sourceLineNo">579</span>    return ret;<a name="line.579"></a>
+<span class="sourceLineNo">580</span>  }<a name="line.580"></a>
+<span class="sourceLineNo">581</span><a name="line.581"></a>
+<span class="sourceLineNo">582</span>  /**<a name="line.582"></a>
+<span class="sourceLineNo">583</span>   * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.583"></a>
+<span class="sourceLineNo">584</span>   * @return True if we removed child<a name="line.584"></a>
+<span class="sourceLineNo">585</span>   * @throws IOException<a name="line.585"></a>
+<span class="sourceLineNo">586</span>   */<a name="line.586"></a>
+<span class="sourceLineNo">587</span>  public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.587"></a>
+<span class="sourceLineNo">588</span>    Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.588"></a>
+<span class="sourceLineNo">589</span>    return getTestFileSystem().delete(cpath, true);<a name="line.589"></a>
+<span class="sourceLineNo">590</span>  }<a name="line.590"></a>
+<span class="sourceLineNo">591</span><a name="line.591"></a>
+<span class="sourceLineNo">592</span>  /**<a name="line.592"></a>
+<span class="sourceLineNo">593</span>   * Start a minidfscluster.<a name="line.593"></a>
+<span class="sourceLineNo">594</span>   * @param servers How many DNs to start.<a name="line.594"></a>
+<span class="sourceLineNo">595</span>   * @throws Exception<a name="line.595"></a>
+<span class="sourceLineNo">596</span>   * @see #shutdownMiniDFSCluster()<a name="line.596"></a>
+<span class="sourceLineNo">597</span>   * @return The mini dfs cluster created.<a name="line.597"></a>
+<span class="sourceLineNo">598</span>   */<a name="line.598"></a>
+<span class="sourceLineNo">599</span>  public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.599"></a>
+<span class="sourceLineNo">600</span>    return startMiniDFSCluster(servers, null);<a name="line.600"></a>
+<span class="sourceLineNo">601</span>  }<a name="line.601"></a>
+<span class="sourceLineNo">602</span><a name="line.602"></a>
+<span class="sourceLineNo">603</span>  /**<a name="line.603"></a>
+<span class="sourceLineNo">604</span>   * Start a minidfscluster.<a name="line.604"></a>
+<span class="sourceLineNo">605</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.605"></a>
+<span class="sourceLineNo">606</span>   * like HDFS block location verification.<a name="line.606"></a>
+<span class="sourceLineNo">607</span>   * If you start MiniDFSCluster without host names, all instances of the<a name="line.607"></a>
+<span class="sourceLineNo">608</span>   * datanodes will have the same host name.<a name="line.608"></a>
+<span class="sourceLineNo">609</span>   * @param hosts hostnames DNs to run on.<a name="line.609"></a>
+<span class="sourceLineNo">610</span>   * @throws Exception<a name="line.610"></a>
+<span class="sourceLineNo">611</span>   * @see #shutdownMiniDFSCluster()<a name="line.611"></a>
+<span class="sourceLineNo">612</span>   * @return The mini dfs cluster created.<a name="line.612"></a>
+<span class="sourceLineNo">613</span>   */<a name="line.613"></a>
+<span class="sourceLineNo">614</span>  public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.614"></a>
+<span class="sourceLineNo">615</span>  throws Exception {<a name="line.615"></a>
+<span class="sourceLineNo">616</span>    if ( hosts != null &amp;&amp; hosts.length != 0) {<a name="line.616"></a>
+<span class="sourceLineNo">617</span>      return startMiniDFSCluster(hosts.length, hosts);<a name="line.617"></a>
+<span class="sourceLineNo">618</span>    } else {<a name="line.618"></a>
+<span class="sourceLineNo">619</span>      return startMiniDFSCluster(1, null);<a name="line.619"></a>
+<span class="sourceLineNo">620</span>    }<a name="line.620"></a>
+<span class="sourceLineNo">621</span>  }<a name="line.621"></a>
+<span class="sourceLineNo">622</span><a name="line.622"></a>
+<span class="sourceLineNo">623</span>  /**<a name="line.623"></a>
+<span class="sourceLineNo">624</span>   * Start a minidfscluster.<a name="line.624"></a>
+<span class="sourceLineNo">625</span>   * Can only create one.<a name="line.625"></a>
+<span class="sourceLineNo">626</span>   * @param servers How many DNs to start.<a name="line.626"></a>
+<span class="sourceLineNo">627</span>   * @param hosts hostnames DNs to run on.<a name="line.627"></a>
+<span class="sourceLineNo">628</span>   * @throws Exception<a name="line.628"></a>
+<span class="sourceLineNo">629</span>   * @see #shutdownMiniDFSCluster()<a name="line.629"></a>
+<span class="sourceLineNo">630</span>   * @return The mini dfs cluster created.<a name="line.630"></a>
+<span class="sourceLineNo">631</span>   */<a name="line.631"></a>
+<span class="sourceLineNo">632</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.632"></a>
+<span class="sourceLineNo">633</span>  throws Exception {<a name="line.633"></a>
+<span class="sourceLineNo">634</span>    return startMiniDFSCluster(servers, null, hosts);<a name="line.634"></a>
+<span class="sourceLineNo">635</span>  }<a name="line.635"></a>
+<span class="sourceLineNo">636</span><a name="line.636"></a>
+<span class="sourceLineNo">637</span>  private void setFs() throws IOException {<a name="line.637"></a>
+<span class="sourceLineNo">638</span>    if(this.dfsCluster == null){<a name="line.638"></a>
+<span class="sourceLineNo">639</span>      LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.639"></a>
+<span class="sourceLineNo">640</span>      return;<a name="line.640"></a>
+<span class="sourceLineNo">641</span>    }<a name="line.641"></a>
+<span class="sourceLineNo">642</span>    FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.642"></a>
+<span class="sourceLineNo">643</span>    FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.643"></a>
 <span class="sourceLineNo">644</span><a name="line.644"></a>
-<span class="sourceLineNo">645</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final  String racks[], String hosts[])<a name="line.645"></a>
-<span class="sourceLineNo">646</span>      throws Exception {<a name="line.646"></a>
-<span class="sourceLineNo">647</span>    createDirsAndSetProperties();<a name="line.647"></a>
-<span class="sourceLineNo">648</span>    EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);<a name="line.648"></a>
-<span class="sourceLineNo">649</span><a name="line.649"></a>
-<span class="sourceLineNo">650</span>    // Error level to skip some warnings specific to the minicluster. See HBASE-4709<a name="line.650"></a>
-<span class="sourceLineNo">651</span>    org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).<a name="line.651"></a>
-<span class="sourceLineNo">652</span>        setLevel(org.apache.log4j.Level.ERROR);<a name="line.652"></a>
-<span class="sourceLineNo">653</span>    org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.impl.MetricsSystemImpl.class).<a name="line.653"></a>
-<span class="sourceLineNo">654</span>        setLevel(org.apache.log4j.Level.ERROR);<a name="line.654"></a>
-<span class="sourceLineNo">655</span><a name="line.655"></a>
-<span class="sourceLineNo">656</span>    TraceUtil.initTracer(conf);<a name="line.656"></a>
-<span class="sourceLineNo">657</span><a name="line.657"></a>
-<span class="sourceLineNo">658</span>    this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,<a name="line.658"></a>
-<span class="sourceLineNo">659</span>        true, null, racks, hosts, null);<a name="line.659"></a>
-<span class="sourceLineNo">660</span><a name="line.660"></a>
-<span class="sourceLineNo">661</span>    // Set this just-started cluster as our filesystem.<a name="line.661"></a>
-<span class="sourceLineNo">662</span>    setFs();<a name="line.662"></a>
-<span class="sourceLineNo">663</span><a name="line.663"></a>
-<span class="sourceLineNo">664</span>    // Wait for the cluster to be totally up<a name="line.664"></a>
-<span class="sourceLineNo">665</span>    this.dfsCluster.waitClusterUp();<a name="line.665"></a>
-<span class="sourceLineNo">666</span><a name="line.666"></a>
-<span class="sourceLineNo">667</span>    //reset the test directory for test file system<a name="line.667"></a>
-<span class="sourceLineNo">668</span>    dataTestDirOnTestFS = null;<a name="line.668"></a>
-<span class="sourceLineNo">669</span>    String dataTestDir = getDataTestDir().toString();<a name="line.669"></a>
-<span class="sourceLineNo">670</span>    conf.set(HConstants.HBASE_DIR, dataTestDir);<a name="line.670"></a>
-<span class="sourceLineNo">671</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.671"></a>
-<span class="sourceLineNo">672</span><a name="line.672"></a>
-<span class="sourceLineNo">673</span>    return this.dfsCluster;<a name="line.673"></a>
-<span class="sourceLineNo">674</span>  }<a name="line.674"></a>
-<span class="sourceLineNo">675</span><a name="line.675"></a>
-<span class="sourceLineNo">676</span>  public MiniDFSCluster startMiniDFSClusterForTestWAL(int namenodePort) throws IOException {<a name="line.676"></a>
-<span class="sourceLineNo">677</span>    createDirsAndSetProperties();<a name="line.677"></a>
-<span class="sourceLineNo">678</span>    dfsCluster = new MiniDFSCluster(namenodePort, conf, 5, false, true, true, null,<a name="line.678"></a>
-<span class="sourceLineNo">679</span>        null, null, null);<a name="line.679"></a>
-<span class="sourceLineNo">680</span>    return dfsCluster;<a name="line.680"></a>
-<span class="sourceLineNo">681</span>  }<a name="line.681"></a>
-<span class="sourceLineNo">682</span><a name="line.682"></a>
-<span class="sourceLineNo">683</span>  /** This is used before starting HDFS and map-reduce mini-clusters */<a name="line.683"></a>
-<span class="sourceLineNo">684</span>  private void createDirsAndSetProperties() throws IOException {<a name="line.684"></a>
-<span class="sourceLineNo">685</span>    setupClusterTestDir();<a name="line.685"></a>
-<span class="sourceLineNo">686</span>    conf.set(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.686"></a>
-<span class="sourceLineNo">687</span>    System.setProperty(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.687"></a>
-<span class="sourceLineNo">688</span>    createDirAndSetProperty("cache_data", "test.cache.data");<a name="line.688"></a>
-<span class="sourceLineNo">689</span>    createDirAndSetProperty("hadoop_tmp", "hadoop.tmp.dir");<a name="line.689"></a>
-<span class="sourceLineNo">690</span>    hadoopLogDir = createDirAndSetProperty("hadoop_logs", "hadoop.log.dir");<a name="line.690"></a>
-<span class="sourceLineNo">691</span>    createDirAndSetProperty("mapred_local", "mapreduce.cluster.local.dir");<a name="line.691"></a>
-<span class="sourceLineNo">692</span>    createDirAndSetProperty("mapred_temp", "mapreduce.cluster.temp.dir");<a name="line.692"></a>
-<span class="sourceLineNo">693</span>    enableShortCircuit();<a name="line.693"></a>
-<span class="sourceLineNo">694</span><a name="line.694"></a>
-<span class="sourceLineNo">695</span>    Path root = getDataTestDirOnTestFS("hadoop");<a name="line.695"></a>
-<span class="sourceLineNo">696</span>    conf.set(MapreduceTestingShim.getMROutputDirProp(),<a name="line.696"></a>
-<span class="sourceLineNo">697</span>      new Path(root, "mapred-output-dir").toString());<a name="line.697"></a>
-<span class="sourceLineNo">698</span>    conf.set("mapreduce.jobtracker.system.dir", new Path(root, "mapred-system-dir").toString());<a name="line.698"></a>
-<span class="sourceLineNo">699</span>    conf.set("mapreduce.jobtracker.staging.root.dir",<a name="line.699"></a>
-<span class="sourceLineNo">700</span>      new Path(root, "mapreduce-jobtracker-staging-root-dir").toString());<a name="line.700"></a>
-<span class="sourceLineNo">701</span>    conf.set("mapreduce.job.working.dir", new Path(root, "mapred-working-dir").toString());<a name="line.701"></a>
-<span class="sourceLineNo">702</span>    conf.set("yarn.app.mapreduce.am.staging-dir",<a name="line.702"></a>
-<span class="sourceLineNo">703</span>      new Path(root, "mapreduce-am-staging-root-dir").toString());<a name="line.703"></a>
-<span class="sourceLineNo">704</span>  }<a name="line.704"></a>
-<span class="sourceLineNo">705</span><a name="line.705"></a>
-<span class="sourceLineNo">706</span><a name="line.706"></a>
-<span class="sourceLineNo">707</span>  /**<a name="line.707"></a>
-<span class="sourceLineNo">708</span>   *  Get the HBase setting for dfs.client.read.shortcircuit from the conf or a system property.<a name="line.708"></a>
-<span class="sourceLineNo">709</span>   *  This allows to specify this parameter on the command line.<a name="line.709"></a>
-<span class="sourceLineNo">710</span>   *   If not set, default is true.<a name="line.710"></a>
-<span class="sourceLineNo">711</span>   */<a name="line.711"></a>
-<span class="sourceLineNo">712</span>  public boolean isReadShortCircuitOn(){<a name="line.712"></a>
-<span class="sourceLineNo">713</span>    final String propName = "hbase.tests.use.shortcircuit.reads";<a name="line.713"></a>
-<span class="sourceLineNo">714</span>    String readOnProp = System.getProperty(propName);<a name="line.714"></a>
-<span class="sourceLineNo">715</span>    if (readOnProp != null){<a name="line.715"></a>
-<span class="sourceLineNo">716</span>      return  Boolean.parseBoolean(readOnProp);<a name="line.716"></a>
-<span class="sourceLineNo">717</span>    } else {<a name="line.717"></a>
-<span class="sourceLineNo">718</span>      return conf.getBoolean(propName, false);<a name="line.718"></a>
-<span class="sourceLineNo">719</span>    }<a name="line.719"></a>
-<span class="sourceLineNo">720</span>  }<a name="line.720"></a>
-<span class="sourceLineNo">721</span><a name="line.721"></a>
-<span class="sourceLineNo">722</span>  /** Enable the short circuit read, unless configured differently.<a name="line.722"></a>
-<span class="sourceLineNo">723</span>   * Set both HBase and HDFS settings, including skipping the hdfs checksum checks.<a name="line.723"></a>
-<span class="sourceLineNo">724</span>   */<a name="line.724"></a>
-<span class="sourceLineNo">725</span>  private void enableShortCircuit() {<a name="line.725"></a>
-<span class="sourceLineNo">726</span>    if (isReadShortCircuitOn()) {<a name="line.726"></a>
-<span class="sourceLineNo">727</span>      String curUser = System.getProperty("user.name");<a name="line.727"></a>
-<span class="sourceLineNo">728</span>      LOG.info("read short circuit is ON for user " + curUser);<a name="line.728"></a>
-<span class="sourceLineNo">729</span>      // read short circuit, for hdfs<a name="line.729"></a>
-<span class="sourceLineNo">730</span>      conf.set("dfs.block.local-path-access.user", curUser);<a name="line.730"></a>
-<span class="sourceLineNo">731</span>      // read short circuit, for hbase<a name="line.731"></a>
-<span class="sourceLineNo">732</span>      conf.setBoolean("dfs.client.read.shortcircuit", true);<a name="line.732"></a>
-<span class="sourceLineNo">733</span>      // Skip checking checksum, for the hdfs client and the datanode<a name="line.733"></a>
-<span class="sourceLineNo">734</span>      conf.setBoolean("dfs.client.read.shortcircuit.skip.checksum", true);<a name="line.734"></a>
-<span class="sourceLineNo">735</span>    } else {<a name="line.735"></a>
-<span class="sourceLineNo">736</span>      LOG.info("read short circuit is OFF");<a name="line.736"></a>
-<span class="sourceLineNo">737</span>    }<a name="line.737"></a>
-<span class="sourceLineNo">738</span>  }<a name="line.738"></a>
-<span class="sourceLineNo">739</span><a name="line.739"></a>
-<span class="sourceLineNo">740</span>  private String createDirAndSetProperty(final String relPath, String property) {<a name="line.740"></a>
-<span class="sourceLineNo">741</span>    String path = getDataTestDir(relPath).toString();<a name="line.741"></a>
-<span class="sourceLineNo">742</span>    System.setProperty(property, path);<a name="line.742"></a>
-<span class="sourceLineNo">743</span>    conf.set(property, path);<a name="line.743"></a>
-<span class="sourceLineNo">744</span>    new File(path).mkdirs();<a name="line.744"></a>
-<span class="sourceLineNo">745</span>    LOG.info("Setting " + property + " to " + path + " in system properties and HBase conf");<a name="line.745"></a>
-<span class="sourceLineNo">746</span>    return path;<a name="line.746"></a>
-<span class="sourceLineNo">747</span>  }<a name="line.747"></a>
-<span class="sourceLineNo">748</span><a name="line.748"></a>
-<span class="sourceLineNo">749</span>  /**<a name="line.749"></a>
-<span class="sourceLineNo">750</span>   * Shuts down instance created by call to {@link #startMiniDFSCluster(int)}<a name="line.750"></a>
-<span class="sourceLineNo">751</span>   * or does nothing.<a name="line.751"></a>
-<span class="sourceLineNo">752</span>   * @throws IOException<a name="line.752"></a>
-<span class="sourceLineNo">753</span>   */<a name="line.753"></a>
-<span class="sourceLineNo">754</span>  public void shutdownMiniDFSCluster() throws IOException {<a name="line.754"></a>
-<span class="sourceLineNo">755</span>    if (this.dfsCluster != null) {<a name="line.755"></a>
-<span class="sourceLineNo">756</span>      // The below throws an exception per dn, AsynchronousCloseException.<a name="line.756"></a>
-<span class="sourceLineNo">757</span>      this.dfsCluster.shutdown();<a name="line.757"></a>
-<span class="sourceLineNo">758</span>      dfsCluster = null;<a name="line.758"></a>
-<span class="sourceLineNo">759</span>      dataTestDirOnTestFS = null;<a name="line.759"></a>
-<span class="sourceLineNo">760</span>      FSUtils.setFsDefault(this.conf, new Path("file:///"));<a name="line.760"></a>
-<span class="sourceLineNo">761</span>    }<a name="line.761"></a>
-<span class="sourceLineNo">762</span>  }<a name="line.762"></a>
-<span class="sourceLineNo">763</span><a name="line.763"></a>
-<span class="sourceLineNo">764</span><a name="line.764"></a>
-<span class="sourceLineNo">765</span>  /**<a name="line.765"></a>
-<span class="sourceLineNo">766</span>   * Start up a minicluster of hbase, dfs, and zookeeper.<a name="line.766"></a>
-<span class="sourceLineNo">767</span>   * @throws Exception<a name="line.767"></a>
-<span class="sourceLineNo">768</span>   * @return Mini hbase cluster instance created.<a name="line.768"></a>
-<span class="sourceLineNo">769</span>   * @see #shutdownMiniDFSCluster()<a name="line.769"></a>
-<span class="sourceLineNo">770</span>   */<a name="line.770"></a>
-<span class="sourceLineNo">771</span>  public MiniHBaseCluster startMiniCluster() throws Exception {<a name="line.771"></a>
-<span class="sourceLineNo">772</span>    return startMiniCluster(1, 1);<a name="line.772"></a>
-<span class="sourceLineNo">773</span>  }<a name="line.773"></a>
-<span class="sourceLineNo">774</span><a name="line.774"></a>
-<span class="sourceLineNo">775</span>  /**<a name="line.775"></a>
-<span class="sourceLineNo">776</span>   * Start up a minicluster of hbase, dfs, and zookeeper where WAL's walDir is created separately.<a name="line.776"></a>
-<span class="sourceLineNo">777</span>   * @throws Exception<a name="line.777"></a>
-<span class="sourceLineNo">778</span>   * @return Mini hbase cluster instance created.<a name="line.778"></a>
-<span class="sourceLineNo">779</span>   * @see #shutdownMiniDFSCluster()<a name="line.779"></a>
-<span class="sourceLineNo">780</span>   */<a name="line.780"></a>
-<span class="sourceLineNo">781</span>  public MiniHBaseCluster startMiniCluster(boolean withWALDir) throws Exception {<a name="line.781"></a>
-<span class="sourceLineNo">782</span>    return startMiniCluster(1, 1, 1, null, null, null, false, withWALDir);<a name="line.782"></a>
-<span class="sourceLineNo">783</span>  }<a name="line.783"></a>
-<span class="sourceLineNo">784</span><a name="line.784"></a>
-<span class="sourceLineNo">785</span>  /**<a name="line.785"></a>
-<span class="sourceLineNo">786</span>   * Start up a minicluster of hbase, dfs, and zookeeper.<a name="line.786"></a>
-<span class="sourceLineNo">787</span>   * Set the &lt;code&gt;create&lt;/code&gt; flag to create root or data directory path or not<a name="line.787"></a>
-<span class="sourceLineNo">788</span>   * (will overwrite if dir already exists)<a name="line.788"></a>
-<span class="sourceLineNo">789</span>   * @throws Exception<a name="line.789"></a>
-<span class="sourceLineNo">790</span>   * @return Mini hbase cluster instance created.<a name="line.790"></a>
-<span class="sourceLineNo">791</span>   * @see #shutdownMiniDFSCluster()<a name="line.791"></a>
-<span class="sourceLineNo">792</span>   */<a name="line.792"></a>
-<span class="sourceLineNo">793</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves, boolean create)<a name="line.793"></a>
-<span class="sourceLineNo">794</span>  throws Exception {<a name="line.794"></a>
-<span class="sourceLineNo">795</span>    return startMiniCluster(1, numSlaves, create);<a name="line.795"></a>
-<span class="sourceLineNo">796</span>  }<a name="line.796"></a>
-<span class="sourceLineNo">797</span><a name="line.797"></a>
-<span class="sourceLineNo">798</span>  /**<a name="line.798"></a>
-<span class="sourceLineNo">799</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.799"></a>
-<span class="sourceLineNo">800</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.800"></a>
-<span class="sourceLineNo">801</span>   * subdirectory in a directory under System property test.build.data.<a name="line.801"></a>
-<span class="sourceLineNo">802</span>   * Directory is cleaned up on exit.<a name="line.802"></a>
-<span class="sourceLineNo">803</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.803"></a>
-<span class="sourceLineNo">804</span>   * datanodes and regionservers.  If numSlaves is &gt; 1, then make sure<a name="line.804"></a>
-<span class="sourceLineNo">805</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.805"></a>
-<span class="sourceLineNo">806</span>   * bind errors.<a name="line.806"></a>
-<span class="sourceLineNo">807</span>   * @throws Exception<a name="line.807"></a>
-<span class="sourceLineNo">808</span>   * @see #shutdownMiniCluster()<a name="line.808"></a>
-<span class="sourceLineNo">809</span>   * @return Mini hbase cluster instance created.<a name="line.809"></a>
-<span class="sourceLineNo">810</span>   */<a name="line.810"></a>
-<span class="sourceLineNo">811</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves)<a name="line.811"></a>
-<span class="sourceLineNo">812</span>  throws Exception {<a name="line.812"></a>
-<span class="sourceLineNo">813</span>    return startMiniCluster(1, numSlaves, false);<a name="line.813"></a>
-<span class="sourceLineNo">814</span>  }<a name="line.814"></a>
-<span class="sourceLineNo">815</span><a name="line.815"></a>
-<span class="sourceLineNo">816</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves, boolean create, boolean withWALDir)<a name="line.816"></a>
-<span class="sourceLineNo">817</span>          throws Exception {<a name="line.817"></a>
-<span class="sourceLineNo">818</span>    return startMiniCluster(1, numSlaves, numSlaves, null, null, null, create, withWALDir);<a name="line.818"></a>
-<span class="sourceLineNo">819</span>  }<a name="line.819"></a>
-<span class="sourceLineNo">820</span><a name="line.820"></a>
-<span class="sourceLineNo">821</span>  /**<a name="line.821"></a>
-<span class="sourceLineNo">822</span>   * Start minicluster. Whether to create a new root or data dir path even if such a path<a name="line.822"></a>
-<span class="sourceLineNo">823</span>   * has been created earlier is decided based on flag &lt;code&gt;create&lt;/code&gt;<a name="line.823"></a>
-<span class="sourceLineNo">824</span>   * @throws Exception<a name="line.824"></a>
-<span class="sourceLineNo">825</span>   * @see #shutdownMiniCluster()<a name="line.825"></a>
-<span class="sourceLineNo">826</span>   * @return Mini hbase cluster instance created.<a name="line.826"></a>
-<span class="sourceLineNo">827</span>   */<a name="line.827"></a>
-<span class="sourceLineNo">828</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.828"></a>
-<span class="sourceLineNo">829</span>      final int numSlaves, boolean create)<a name="line.829"></a>
-<span class="sourceLineNo">830</span>    throws Exception {<a name="line.830"></a>
-<span class="sourceLineNo">831</span>      return startMiniCluster(numMasters, numSlaves, null, create);<a name="line.831"></a>
-<span class="sourceLineNo">832</span>  }<a name="line.832"></a>
-<span class="sourceLineNo">833</span><a name="line.833"></a>
-<span class="sourceLineNo">834</span>  /**<a name="line.834"></a>
-<span class="sourceLineNo">835</span>   * start minicluster<a name="line.835"></a>
-<span class="sourceLineNo">836</span>   * @throws Exception<a name="line.836"></a>
-<span class="sourceLineNo">837</span>   * @see #shutdownMiniCluster()<a name="line.837"></a>
-<span class="sourceLineNo">838</span>   * @return Mini hbase cluster instance created.<a name="line.838"></a>
-<span class="sourceLineNo">839</span>   */<a name="line.839"></a>
-<span class="sourceLineNo">840</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.840"></a>
-<span class="sourceLineNo">841</span>    final int numSlaves)<a name="line.841"></a>
-<span class="sourceLineNo">842</span>  throws Exception {<a name="line.842"></a>
-<span class="sourceLineNo">843</span>    return startMiniCluster(numMasters, numSlaves, null, false);<a name="line.843"></a>
-<span class="sourceLineNo">844</span>  }<a name="line.844"></a>
-<span class="sourceLineNo">845</span><a name="line.845"></a>
-<span class="sourceLineNo">846</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.846"></a>
-<span class="sourceLineNo">847</span>      final int numSlaves, final String[] dataNodeHosts, boolean create)<a name="line.847"></a>
-<span class="sourceLineNo">848</span>      throws Exception {<a name="line.848"></a>
-<span class="sourceLineNo">849</span>    return startMiniCluster(numMasters, numSlaves, numSlaves, dataNodeHosts,<a name="line.849"></a>
-<span class="sourceLineNo">850</span>        null, null, create, false);<a name="line.850"></a>
-<span class="sourceLineNo">851</span>  }<a name="line.851"></a>
-<span class="sourceLineNo">852</span><a name="line.852"></a>
-<span class="sourceLineNo">853</span>  /**<a name="line.853"></a>
-<span class="sourceLineNo">854</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.854"></a>
-<span class="sourceLineNo">855</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.855"></a>
-<span class="sourceLineNo">856</span>   * subdirectory in a directory under System property test.build.data.<a name="line.856"></a>
-<span class="sourceLineNo">857</span>   * Directory is cleaned up on exit.<a name="line.857"></a>
-<span class="sourceLineNo">858</span>   * @param numMasters Number of masters to start up.  We'll start this many<a name="line.858"></a>
-<span class="sourceLineNo">859</span>   * hbase masters.  If numMasters &gt; 1, you can find the active/primary master<a name="line.859"></a>
-<span class="sourceLineNo">860</span>   * with {@link MiniHBaseCluster#getMaster()}.<a name="line.860"></a>
-<span class="sourceLineNo">861</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.861"></a>
-<span class="sourceLineNo">862</span>   * regionservers. If dataNodeHosts == null, this also indicates the number of<a name="line.862"></a>
-<span class="sourceLineNo">863</span>   * datanodes to start. If dataNodeHosts != null, the number of datanodes is<a name="line.863"></a>
-<span class="sourceLineNo">864</span>   * based on dataNodeHosts.length.<a name="line.864"></a>
-<span class="sourceLineNo">865</span>   * If numSlaves is &gt; 1, then make sure<a name="line.865"></a>
-<span class="sourceLineNo">866</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.866"></a>
-<span class="sourceLineNo">867</span>   * bind errors.<a name="line.867"></a>
-<span class="sourceLineNo">868</span>   * @param dataNodeHosts hostnames DNs to run on.<a name="line.868"></a>
-<span class="sourceLineNo">869</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.869"></a>
-<span class="sourceLineNo">870</span>   * like HDFS block location verification.<a name="line.870"></a>
-<span class="sourceLineNo">871</span>   * If you start MiniDFSCluster without host names,<a name="line.871"></a>
-<span class="sourceLineNo">872</span>   * all instances of the datanodes will have the same host name.<a name="line.872"></a>
-<span class="sourceLineNo">873</span>   * @throws Exception<a name="line.873"></a>
-<span class="sourceLineNo">874</span>   * @see #shutdownMiniCluster()<a name="line.874"></a>
-<span class="sourceLineNo">875</span>   * @return Mini hbase cluster instance created.<a name="line.875"></a>
-<span class="sourceLineNo">876</span>   */<a name="line.876"></a>
-<span class="sourceLineNo">877</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.877"></a>
-<span class="sourceLineNo">878</span>      final int numSlaves, final String[] dataNodeHosts) throws Exception {<a name="line.878"></a>
-<span class="sourceLineNo">879</span>    return startMiniCluster(numMasters, numSlaves, numSlaves, dataNodeHosts,<a name="line.879"></a>
-<span class="sourceLineNo">880</span>        null, null);<a name="line.880"></a>
-<span class="sourceLineNo">881</span>  }<a name="line.881"></a>
-<span class="sourceLineNo">882</span><a name="line.882"></a>
-<span class="sourceLineNo">883</span>  /**<a name="line.883"></a>
-<span class="sourceLineNo">884</span>   * Same as {@link #startMiniCluster(int, int)}, but with custom number of datanodes.<a name="line.884"></a>
-<span class="sourceLineNo">885</span>   * @param numDataNodes Number of data nodes.<a name="line.885"></a>
-<span class="sourceLineNo">886</span>   */<a name="line.886"></a>
-<span class="sourceLineNo">887</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.887"></a>
-<span class="sourceLineNo">888</span>      final int numSlaves, final int numDataNodes) throws Exception {<a name="line.888"></a>
-<span class="sourceLineNo">889</span>    return startMiniCluster(numMasters, numSlaves, numDataNodes, null, null, null);<a name="line.889"></a>
-<span class="sourceLineNo">890</span>  }<a name="line.890"></a>
-<span class="sourceLineNo">891</span><a name="line.891"></a>
-<span class="sourceLineNo">892</span>  /**<a name="line.892"></a>
-<span class="sourceLineNo">893</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.893"></a>
-<span class="sourceLineNo">894</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.894"></a>
-<span class="sourceLineNo">895</span>   * subdirectory in a directory under System property test.build.data.<a name="line.895"></a>
-<span class="sourceLineNo">896</span>   * Directory is cleaned up on exit.<a name="line.896"></a>
-<span class="sourceLineNo">897</span>   * @param numMasters Number of masters to start up.  We'll start this many<a name="line.897"></a>
-<span class="sourceLineNo">898</span>   * hbase masters.  If numMasters &gt; 1, you can find the active/primary master<a name="line.898"></a>
-<span class="sourceLineNo">899</span>   * with {@link MiniHBaseCluster#getMaster()}.<a name="line.899"></a>
-<span class="sourceLineNo">900</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.900"></a>
-<span class="sourceLineNo">901</span>   * regionservers. If dataNodeHosts == null, this also indicates the number of<a name="line.901"></a>
-<span class="sourceLineNo">902</span>   * datanodes to start. If dataNodeHosts != null, the number of datanodes is<a name="line.902"></a>
-<span class="sourceLineNo">903</span>   * based on dataNodeHosts.length.<a name="line.903"></a>
-<span class="sourceLineNo">904</span>   * If numSlaves is &gt; 1, then make sure<a name="line.904"></a>
-<span class="sourceLineNo">905</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.905"></a>
-<span class="sourceLineNo">906</span>   * bind errors.<a name="line.906"></a>
-<span class="sourceLineNo">907</span>   * @param dataNodeHosts hostnames DNs to run on.<a name="line.907"></a>
-<span class="sourceLineNo">908</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.908"></a>
-<span class="sourceLineNo">909</span>   * like HDFS block location verification.<a name="line.909"></a>
-<span class="sourceLineNo">910</span>   * If you start MiniDFSCluster without host names,<a name="line.910"></a>
-<span class="sourceLineNo">911</span>   * all instances of the datanodes will have the same host name.<a name="line.911"></a>
-<span class="sourceLineNo">912</span>   * @param masterClass The class to use as HMaster, or null for default<a name="line.912"></a>
-<span class="sourceLineNo">913</span>   * @param regionserverClass The class to use as HRegionServer, or null for<a name="line.913"></a>
-<span class="sourceLineNo">914</span>   * default<a name="line.914"></a>
-<span class="sourceLineNo">915</span>   * @throws Exception<a name="line.915"></a>
-<span class="sourceLineNo">916</span>   * @see #shutdownMiniCluster()<a name="line.916"></a>
-<span class="sourceLineNo">917</span>   * @return Mini hbase cluster instance created.<a name="line.917"></a>
-<span class="sourceLineNo">918</span>   */<a name="line.918"></a>
-<span class="sourceLineNo">919</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.919"></a>
-<span class="sourceLineNo">920</span>      final int numSlaves, final String[] dataNodeHosts, Class&lt;? extends HMaster&gt; masterClass,<a name="line.920"></a>
-<span class="sourceLineNo">921</span>      Class&lt;? extends MiniHBaseCluster.MiniHBaseClusterRegionServer&gt; regionserverClass)<a name="line.921"></a>
-<span class="sourceLineNo">922</span>          throws Exception {<a name="line.922"></a>
-<span class="sourceLineNo">923</span>    return startMiniCluster(<a name="line.923"></a>
-<span class="sourceLineNo">924</span>        numMasters, numSlaves, numSlaves, dataNodeHosts, masterClass, regionserverClass);<a name="line.924"></a>
-<span class="sourceLineNo">925</span>  }<a name="line.925"></a>
-<span class="sourceLineNo

<TRUNCATED>

[09/10] hbase-site git commit: Published site at 03e596c6694a21768c51a3c52e1a032f51fd637c.

Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/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 f6d8b3d..0d6ed8b 100644
--- a/testapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
+++ b/testapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
@@ -1832,7 +1832,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
 <ul class="blockList">
 <li class="blockList">
 <h4>fam1</h4>
-<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1676">fam1</a></pre>
+<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1680">fam1</a></pre>
 </li>
 </ul>
 <a name="fam2">
@@ -1841,7 +1841,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
 <ul class="blockList">
 <li class="blockList">
 <h4>fam2</h4>
-<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1677">fam2</a></pre>
+<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1681">fam2</a></pre>
 </li>
 </ul>
 <a name="fam3">
@@ -1850,7 +1850,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
 <ul class="blockList">
 <li class="blockList">
 <h4>fam3</h4>
-<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1678">fam3</a></pre>
+<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1682">fam3</a></pre>
 </li>
 </ul>
 <a name="COLUMNS">
@@ -1859,7 +1859,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
 <ul class="blockList">
 <li class="blockList">
 <h4>COLUMNS</h4>
-<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1679">COLUMNS</a></pre>
+<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1683">COLUMNS</a></pre>
 </li>
 </ul>
 <a name="FIRST_CHAR">
@@ -1868,7 +1868,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
 <ul class="blockList">
 <li class="blockList">
 <h4>FIRST_CHAR</h4>
-<pre>public static final&nbsp;char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1682">FIRST_CHAR</a></pre>
+<pre>public static final&nbsp;char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1686">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>
@@ -1881,7 +1881,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
 <ul class="blockList">
 <li class="blockList">
 <h4>LAST_CHAR</h4>
-<pre>public static final&nbsp;char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1683">LAST_CHAR</a></pre>
+<pre>public static final&nbsp;char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1687">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>
@@ -1894,7 +1894,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&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1684">START_KEY_BYTES</a></pre>
+<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1688">START_KEY_BYTES</a></pre>
 </li>
 </ul>
 <a name="START_KEY">
@@ -1903,7 +1903,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
 <ul class="blockList">
 <li class="blockList">
 <h4>START_KEY</h4>
-<pre>public static final&nbsp;<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.1685">START_KEY</a></pre>
+<pre>public static final&nbsp;<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.1689">START_KEY</a></pre>
 </li>
 </ul>
 <a name="ROWS">
@@ -1912,7 +1912,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
 <ul class="blockList">
 <li class="blockList">
 <h4>ROWS</h4>
-<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2238">ROWS</a></pre>
+<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2242">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>
@@ -1922,7 +1922,7 @@ extends <a href="../../../../org/apache/hadoop/hbase/HBaseZKTestingUtility.html"
 <ul class="blockList">
 <li class="blockList">
 <h4>KEYS</h4>
-<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2253">KEYS</a></pre>
+<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2257">KEYS</a></pre>
 </li>
 </ul>
 <a name="KEYS_FOR_HBA_CREATE_TABLE">
@@ -1931,7 +1931,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&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2265">KEYS_FOR_HBA_CREATE_TABLE</a></pre>
+<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2269">KEYS_FOR_HBA_CREATE_TABLE</a></pre>
 </li>
 </ul>
 </li>
@@ -2025,7 +2025,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&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.356">createLocalHTU</a>()</pre>
+public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.360">createLocalHTU</a>()</pre>
 <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<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>
@@ -2040,7 +2040,7 @@ public static&nbsp;<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&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.365">createLocalHTU</a>(org.apache.hadoop.conf.Configuration&nbsp;c)</pre>
+public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.369">createLocalHTU</a>(org.apache.hadoop.conf.Configuration&nbsp;c)</pre>
 <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<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>
@@ -2054,7 +2054,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>closeRegionAndWAL</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.372">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>&nbsp;r)
+<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.376">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>&nbsp;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>
@@ -2069,7 +2069,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>closeRegionAndWAL</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.379">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>&nbsp;r)
+<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.383">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>&nbsp;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>
@@ -2084,7 +2084,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>getConfiguration</h4>
-<pre>public&nbsp;org.apache.hadoop.conf.Configuration&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.398">getConfiguration</a>()</pre>
+<pre>public&nbsp;org.apache.hadoop.conf.Configuration&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.402">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
@@ -2107,7 +2107,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>setHBaseCluster</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.402">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>&nbsp;hbaseCluster)</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.406">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>&nbsp;hbaseCluster)</pre>
 </li>
 </ul>
 <a name="setupDataTestDir--">
@@ -2116,7 +2116,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>setupDataTestDir</h4>
-<pre>protected&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.423">setupDataTestDir</a>()</pre>
+<pre>protected&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.427">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>
@@ -2144,7 +2144,7 @@ public static&nbsp;<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&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescriptor.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">HTableDescriptor</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.490">getMetaTableDescriptor</a>()</pre>
+public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescriptor.html?is-external=true" title="class or interface in org.apache.hadoop.hbase">HTableDescriptor</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.494">getMetaTableDescriptor</a>()</pre>
 <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<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>
@@ -2159,7 +2159,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>getMetaTableDescriptorBuilder</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.497">getMetaTableDescriptorBuilder</a>()</pre>
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.501">getMetaTableDescriptorBuilder</a>()</pre>
 <dl>
 <dt><span class="returnLabel">Returns:</span></dt>
 <dd>META table descriptor</dd>
@@ -2172,7 +2172,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>getDataTestDirOnTestFS</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.511">getDataTestDirOnTestFS</a>()
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.515">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
@@ -2191,7 +2191,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>getDataTestDirOnTestFS</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.526">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>&nbsp;subdirName)
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.530">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>&nbsp;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
@@ -2212,7 +2212,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>cleanupDataTestDirOnTestFS</h4>
-<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.571">cleanupDataTestDirOnTestFS</a>()
+<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.575">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>
@@ -2229,7 +2229,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>cleanupDataTestDirOnTestFS</h4>
-<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.583">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>&nbsp;subdirName)
+<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.587">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>&nbsp;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>
@@ -2246,7 +2246,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniDFSCluster</h4>
-<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.595">startMiniDFSCluster</a>(int&nbsp;servers)
+<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.599">startMiniDFSCluster</a>(int&nbsp;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>
@@ -2267,7 +2267,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniDFSCluster</h4>
-<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.610">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>[]&nbsp;hosts)
+<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.614">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>[]&nbsp;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
@@ -2292,7 +2292,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniDFSCluster</h4>
-<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.628">startMiniDFSCluster</a>(int&nbsp;servers,
+<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.632">startMiniDFSCluster</a>(int&nbsp;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>[]&nbsp;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.
@@ -2316,7 +2316,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniDFSCluster</h4>
-<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.645">startMiniDFSCluster</a>(int&nbsp;servers,
+<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.649">startMiniDFSCluster</a>(int&nbsp;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>[]&nbsp;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>[]&nbsp;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>
@@ -2332,7 +2332,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniDFSClusterForTestWAL</h4>
-<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.676">startMiniDFSClusterForTestWAL</a>(int&nbsp;namenodePort)
+<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.680">startMiniDFSClusterForTestWAL</a>(int&nbsp;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>
@@ -2346,7 +2346,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>isReadShortCircuitOn</h4>
-<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.712">isReadShortCircuitOn</a>()</pre>
+<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.716">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>
@@ -2358,7 +2358,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>shutdownMiniDFSCluster</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.754">shutdownMiniDFSCluster</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.758">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>
@@ -2374,7 +2374,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.771">startMiniCluster</a>()
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.775">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.</div>
 <dl>
@@ -2393,7 +2393,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.781">startMiniCluster</a>(boolean&nbsp;withWALDir)
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.785">startMiniCluster</a>(boolean&nbsp;withWALDir)
                                   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 where WAL's walDir is created separately.</div>
 <dl>
@@ -2412,7 +2412,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.793">startMiniCluster</a>(int&nbsp;numSlaves,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.797">startMiniCluster</a>(int&nbsp;numSlaves,
                                          boolean&nbsp;create)
                                   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.
@@ -2434,7 +2434,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.811">startMiniCluster</a>(int&nbsp;numSlaves)
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.815">startMiniCluster</a>(int&nbsp;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, optionally dfs, and zookeeper.
  Modifies Configuration.  Homes the cluster data directory under a random
@@ -2461,7 +2461,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.816">startMiniCluster</a>(int&nbsp;numSlaves,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.820">startMiniCluster</a>(int&nbsp;numSlaves,
                                          boolean&nbsp;create,
                                          boolean&nbsp;withWALDir)
                                   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>
@@ -2477,7 +2477,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.828">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.832">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;numSlaves,
                                          boolean&nbsp;create)
                                   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>
@@ -2499,7 +2499,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.840">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.844">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;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 minicluster</div>
@@ -2519,7 +2519,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.846">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.850">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;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>[]&nbsp;dataNodeHosts,
                                          boolean&nbsp;create)
@@ -2536,7 +2536,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.877">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.881">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;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>[]&nbsp;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>
@@ -2576,7 +2576,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.887">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.891">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;numSlaves,
                                          int&nbsp;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>
@@ -2595,7 +2595,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.919">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.923">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;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>[]&nbsp;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>&lt;? 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>&gt;&nbsp;masterClass,
@@ -2640,7 +2640,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.927">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.931">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;numSlaves,
                                          int&nbsp;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>[]&nbsp;dataNodeHosts,
@@ -2659,7 +2659,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.943">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.947">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;numSlaves,
                                          int&nbsp;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>[]&nbsp;dataNodeHosts,
@@ -2686,7 +2686,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniHBaseCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.982">startMiniHBaseCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.986">startMiniHBaseCluster</a>(int&nbsp;numMasters,
                                               int&nbsp;numSlaves)
                                        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>
@@ -2703,7 +2703,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniHBaseCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.987">startMiniHBaseCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.991">startMiniHBaseCluster</a>(int&nbsp;numMasters,
                                               int&nbsp;numSlaves,
                                               <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>&lt;<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>&gt;&nbsp;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>,
@@ -2721,7 +2721,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniHBaseCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1007">startMiniHBaseCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1011">startMiniHBaseCluster</a>(int&nbsp;numMasters,
                                               int&nbsp;numSlaves,
                                               <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>&lt;<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>&gt;&nbsp;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>&lt;? 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>&gt;&nbsp;masterClass,
@@ -2757,7 +2757,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>restartHBaseCluster</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1054">restartHBaseCluster</a>(int&nbsp;servers)
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1058">restartHBaseCluster</a>(int&nbsp;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
@@ -2777,7 +2777,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>getMiniHBaseCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1082">getMiniHBaseCluster</a>()</pre>
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1086">getMiniHBaseCluster</a>()</pre>
 <dl>
 <dt><span class="returnLabel">Returns:</span></dt>
 <dd>Current mini hbase cluster. Only has something in it after a call
@@ -2793,7 +2793,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>shutdownMiniCluster</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1095">shutdownMiniCluster</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1099">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>
@@ -2811,7 +2811,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>shutdownMiniHBaseCluster</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1109">shutdownMiniHBaseCluster</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1113">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>
@@ -2826,7 +2826,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>getDefaultRootDirPath</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1141">getDefaultRootDirPath</a>(boolean&nbsp;create)
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1145">getDefaultRootDirPath</a>(boolean&nbsp;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
@@ -2846,7 +2846,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>getDefaultRootDirPath</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1156">getDefaultRootDirPath</a>()
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1160">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.
@@ -2865,7 +2865,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createRootDir</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1172">createRootDir</a>(boolean&nbsp;create)
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1176">createRootDir</a>(boolean&nbsp;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
@@ -2890,7 +2890,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createRootDir</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1187">createRootDir</a>()
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1191">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>
@@ -2908,7 +2908,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createWALRootDir</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1200">createWALRootDir</a>()
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1204">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
@@ -2928,7 +2928,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>flush</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1222">flush</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1226">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>
@@ -2943,7 +2943,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>flush</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1230">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>&nbsp;tableName)
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1234">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>&nbsp;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>
@@ -2958,7 +2958,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>compact</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1238">compact</a>(boolean&nbsp;major)
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1242">compact</a>(boolean&nbsp;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>
@@ -2973,7 +2973,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>compact</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1246">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>&nbsp;tableName,
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1250">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>&nbsp;tableName,
                     boolean&nbsp;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>
@@ -2989,7 +2989,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1257">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1261">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>&nbsp;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>&nbsp;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>
@@ -3010,7 +3010,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1269">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1273">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>&nbsp;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>[]&nbsp;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>
@@ -3031,7 +3031,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1285">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1289">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>&nbsp;tableName,
                          byte[]&nbsp;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>
@@ -3052,7 +3052,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createMultiRegionTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1298">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1302">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>&nbsp;tableName,
                                     byte[]&nbsp;family,
                                     int&nbsp;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>
@@ -3075,7 +3075,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1315">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1319">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>&nbsp;tableName,
                          byte[][]&nbsp;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>
@@ -3096,7 +3096,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createMultiRegionTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1327">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1331">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>&nbsp;tableName,
                                     byte[][]&nbsp;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>
@@ -3117,7 +3117,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1339">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1343">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>&nbsp;tableName,
                          byte[][]&nbsp;families,
                          byte[][]&nbsp;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>
@@ -3140,7 +3140,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1344">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1348">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>&nbsp;tableName,
                          byte[][]&nbsp;families,
                          int&nbsp;numVersions,
                          byte[]&nbsp;startKey,
@@ -3159,7 +3159,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1364">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>&nbsp;htd,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1368">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>&nbsp;htd,
                          byte[][]&nbsp;families,
                          org.apache.hadoop.conf.Configuration&nbsp;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>
@@ -3182,7 +3182,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1378">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>&nbsp;htd,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1382">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>&nbsp;htd,
                          byte[][]&nbsp;families,
                          byte[][]&nbsp;splitKeys,
                          org.apache.hadoop.conf.Configuration&nbsp;c)
@@ -3207,7 +3207,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1398">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>&nbsp;htd,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1402">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>&nbsp;htd,
                          byte[][]&nbsp;families,
                          byte[][]&nbsp;splitKeys,
                          <a href="../../../../../apidocs/org/apache/hadoop/hbase/regionserver/BloomType.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.regionserver">BloomType</a>&nbsp;type,
@@ -3236,7 +3236,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1421">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>&nbsp;htd,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1425">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>&nbsp;htd,
                          byte[][]&nbsp;splitRows)
                   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>
@@ -3257,7 +3257,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1439">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1443">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>&nbsp;tableName,
                          byte[][]&nbsp;families,
                          byte[][]&nbsp;splitKeys,
                          org.apache.hadoop.conf.Configuration&nbsp;c)
@@ -3282,7 +3282,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1452">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1456">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>&nbsp;tableName,
                          byte[]&nbsp;family,
                          int&nbsp;numVersions)
                   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>
@@ -3305,7 +3305,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1465">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1469">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>&nbsp;tableName,
                          byte[][]&nbsp;families,
                          int&nbsp;numVersions)
                   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>
@@ -3328,7 +3328,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1479">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1483">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>&nbsp;tableName,
                          byte[][]&nbsp;families,
                          int&nbsp;numVersions,
                          byte[][]&nbsp;splitKeys)
@@ -3353,7 +3353,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createMultiRegionTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1501">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1505">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>&nbsp;tableName,
                                     byte[][]&nbsp;families,
                                     int&nbsp;numVersions)
                              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>
@@ -3376,7 +3376,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1515">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1519">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>&nbsp;tableName,
                          byte[][]&nbsp;families,
                          int&nbsp;numVersions,
                          int&nbsp;blockSize)
@@ -3401,7 +3401,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1531">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1535">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>&nbsp;tableName,
                          byte[][]&nbsp;families,
                          int&nbsp;numVersions,
                          int&nbsp;blockSize,
@@ -3419,7 +3419,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1558">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1562">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>&nbsp;tableName,
                          byte[][]&nbsp;families,
                          int[]&nbsp;numVersions)
                   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>
@@ -3442,7 +3442,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1584">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1588">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>&nbsp;tableName,
                          byte[]&nbsp;family,
                          byte[][]&nbsp;splitRows)
                   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>
@@ -3465,7 +3465,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>createMultiRegionTable</h4>
-<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1603">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>&nbsp;tableName,
+<pre>public&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1607">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>&nbsp;tableName,
                                     byte[]&nbsp;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 with multiple regions.</div>
@@ -3486,7 +3486,7 @@ public&nbsp;<a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri
 <ul class="blockList">
 <li class="blockList">
 <h4>modifyTableSync</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1611">modifyTableSync</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Admin.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Admin</a>&nbsp;admin,
+<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1615">modifyTableSync</a>(<a href="../../../../../apidocs/org/apache/hadoop/hbase/client/Admin.html?is-external=true" title="class or interface in org.apache.hadoop.hbase.client">Admin</a>&nbsp;admin,
                                    <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>&nbsp;desc)
                             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>
@@ -3504,7 +3504,7 @@ pu

<TRUNCATED>

[07/10] hbase-site git commit: Published site at 03e596c6694a21768c51a3c52e1a032f51fd637c.

Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/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 ffc2371..849304d 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.3612">HBaseTestingUtility.PortAllocator.AvailablePortChecker</a></pre>
+<pre>static interface <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3616">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&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html#line.3613">available</a>(int&nbsp;port)</pre>
+<pre>boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html#line.3617">available</a>(int&nbsp;port)</pre>
 </li>
 </ul>
 </li>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/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 baf3bb4..6ece270 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.3551">HBaseTestingUtility.PortAllocator</a>
+<pre>static class <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.3555">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&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3552">MIN_RANDOM_PORT</a></pre>
+<pre>private static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3556">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&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3553">MAX_RANDOM_PORT</a></pre>
+<pre>private static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3557">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&nbsp;<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>&lt;<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>&gt; <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3556">takenRandomPorts</a></pre>
+<pre>private final&nbsp;<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>&lt;<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>&gt; <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3560">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&nbsp;<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.3558">random</a></pre>
+<pre>private final&nbsp;<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.3562">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&nbsp;<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.3559">portChecker</a></pre>
+<pre>private final&nbsp;<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.3563">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&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3561">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>&nbsp;random)</pre>
+<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3565">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>&nbsp;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&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3577">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>&nbsp;random,
+<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3581">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>&nbsp;random,
                      <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.AvailablePortChecker.html" title="interface in org.apache.hadoop.hbase">HBaseTestingUtility.PortAllocator.AvailablePortChecker</a>&nbsp;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&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3586">randomFreePort</a>()</pre>
+<pre>public&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3590">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&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3607">randomPort</a>()</pre>
+<pre>private&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html#line.3611">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/a5e2ad1d/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 f2a4e84..a668ca4 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.1972">HBaseTestingUtility.SeenRowTracker</a>
+<pre>public static class <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1976">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.1973">dim</a></pre>
+<pre>int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1977">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.1974">seenRows</a></pre>
+<pre>int[][][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1978">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.1975">startRow</a></pre>
+<pre>byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1979">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.1976">stopRow</a></pre>
+<pre>byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1980">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&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1978">SeenRowTracker</a>(byte[]&nbsp;startRow,
+<pre>public&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1982">SeenRowTracker</a>(byte[]&nbsp;startRow,
                       byte[]&nbsp;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&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1983">reset</a>()</pre>
+<pre>void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1987">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&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1989">i</a>(byte&nbsp;b)</pre>
+<pre>int&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1993">i</a>(byte&nbsp;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&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1993">addRow</a>(byte[]&nbsp;row)</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.1997">addRow</a>(byte[]&nbsp;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&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2000">validate</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html#line.2004">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>


[10/10] hbase-site git commit: Published site at 03e596c6694a21768c51a3c52e1a032f51fd637c.

Posted by gi...@apache.org.
Published site at 03e596c6694a21768c51a3c52e1a032f51fd637c.


Project: http://git-wip-us.apache.org/repos/asf/hbase-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase-site/commit/a5e2ad1d
Tree: http://git-wip-us.apache.org/repos/asf/hbase-site/tree/a5e2ad1d
Diff: http://git-wip-us.apache.org/repos/asf/hbase-site/diff/a5e2ad1d

Branch: refs/heads/asf-site
Commit: a5e2ad1d59a71fabce347000c223b54f67b895ff
Parents: 767291b
Author: jenkins <bu...@apache.org>
Authored: Fri Jul 20 14:49:36 2018 +0000
Committer: jenkins <bu...@apache.org>
Committed: Fri Jul 20 14:49:36 2018 +0000

----------------------------------------------------------------------
 apache_hbase_reference_guide.pdf                |    4 +-
 book.html                                       |    2 +-
 checkstyle-aggregate.html                       |  552 +-
 devapidocs/constant-values.html                 |    4 +-
 .../org/apache/hadoop/hbase/Version.html        |    4 +-
 .../hadoop/hbase/HBaseTestingUtility.html       |  434 +-
 .../hadoop/hbase/HBaseTestingUtility.html       | 7516 +++++++++---------
 ...lity.PortAllocator.AvailablePortChecker.html |    4 +-
 .../HBaseTestingUtility.PortAllocator.html      |   20 +-
 .../HBaseTestingUtility.SeenRowTracker.html     |   20 +-
 .../hadoop/hbase/HBaseTestingUtility.html       |  470 +-
 ...lity.PortAllocator.AvailablePortChecker.html | 7516 +++++++++---------
 .../HBaseTestingUtility.PortAllocator.html      | 7516 +++++++++---------
 .../HBaseTestingUtility.SeenRowTracker.html     | 7516 +++++++++---------
 .../hadoop/hbase/HBaseTestingUtility.html       | 7516 +++++++++---------
 .../hadoop/hbase/IntegrationTestingUtility.html |   34 +-
 16 files changed, 19580 insertions(+), 19548 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/apache_hbase_reference_guide.pdf
----------------------------------------------------------------------
diff --git a/apache_hbase_reference_guide.pdf b/apache_hbase_reference_guide.pdf
index d67a327..8cdf880 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:20180720013941+00'00')
-/CreationDate (D:20180720015517+00'00')
+/ModDate (D:20180720142958+00'00')
+/CreationDate (D:20180720144607+00'00')
 >>
 endobj
 2 0 obj

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/book.html
----------------------------------------------------------------------
diff --git a/book.html b/book.html
index 8c367ef..2e76d94 100644
--- a/book.html
+++ b/book.html
@@ -40807,7 +40807,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-07-20 01:39:41 UTC
+Last updated 2018-07-20 14:29:58 UTC
 </div>
 </div>
 </body>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/checkstyle-aggregate.html
----------------------------------------------------------------------
diff --git a/checkstyle-aggregate.html b/checkstyle-aggregate.html
index 6f21b86..0072320 100644
--- a/checkstyle-aggregate.html
+++ b/checkstyle-aggregate.html
@@ -11460,1657 +11460,1657 @@
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>380</td></tr>
+<td>384</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>382</td></tr>
+<td>386</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 7, expected level should be 8.</td>
-<td>459</td></tr>
+<td>463</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method call' child has incorrect indentation level 9, expected level should be 10.</td>
-<td>460</td></tr>
+<td>464</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method call' child has incorrect indentation level 9, expected level should be 10.</td>
-<td>461</td></tr>
+<td>465</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method call' child has incorrect indentation level 9, expected level should be 10.</td>
-<td>462</td></tr>
+<td>466</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method call rparen' has incorrect indentation level 7, expected level should be 8.</td>
-<td>463</td></tr>
+<td>467</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>475</td></tr>
+<td>479</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>557</td></tr>
+<td>561</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>561</td></tr>
+<td>565</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>569</td></tr>
+<td>573</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>573</td></tr>
+<td>577</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>581</td></tr>
+<td>585</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>591</td></tr>
+<td>595</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>606</td></tr>
+<td>610</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
-<td>610</td></tr>
+<td>614</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>611</td></tr>
+<td>615</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>whitespace</td>
 <td>ParenPad</td>
 <td>'(' is followed by whitespace.</td>
-<td>612</td></tr>
+<td>616</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>624</td></tr>
+<td>628</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
-<td>628</td></tr>
+<td>632</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>629</td></tr>
+<td>633</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
-<td>645</td></tr>
+<td>649</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>misc</td>
 <td>ArrayTypeStyle</td>
 <td>Array brackets at illegal position.</td>
-<td>645</td></tr>
+<td>649</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>752</td></tr>
+<td>756</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>767</td></tr>
+<td>771</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>777</td></tr>
+<td>781</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>789</td></tr>
+<td>793</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>794</td></tr>
+<td>798</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>804</td></tr>
+<td>808</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>805</td></tr>
+<td>809</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>806</td></tr>
+<td>810</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>807</td></tr>
+<td>811</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>812</td></tr>
+<td>816</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>824</td></tr>
+<td>828</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method def' child has incorrect indentation level 6, expected level should be 4.</td>
-<td>831</td></tr>
+<td>835</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>836</td></tr>
+<td>840</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>842</td></tr>
+<td>846</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>859</td></tr>
+<td>863</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>860</td></tr>
+<td>864</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>862</td></tr>
+<td>866</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>863</td></tr>
+<td>867</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>864</td></tr>
+<td>868</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>865</td></tr>
+<td>869</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>866</td></tr>
+<td>870</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>867</td></tr>
+<td>871</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>869</td></tr>
+<td>873</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>870</td></tr>
+<td>874</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>871</td></tr>
+<td>875</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>872</td></tr>
+<td>876</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>873</td></tr>
+<td>877</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>898</td></tr>
+<td>902</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>899</td></tr>
+<td>903</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>901</td></tr>
+<td>905</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>902</td></tr>
+<td>906</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>903</td></tr>
+<td>907</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>904</td></tr>
+<td>908</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>905</td></tr>
+<td>909</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>906</td></tr>
+<td>910</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>908</td></tr>
+<td>912</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>909</td></tr>
+<td>913</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>910</td></tr>
+<td>914</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>911</td></tr>
+<td>915</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>914</td></tr>
+<td>918</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>915</td></tr>
+<td>919</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>941</td></tr>
+<td>945</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>948</td></tr>
+<td>952</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'else' construct must use '{}'s.</td>
-<td>970</td></tr>
+<td>974</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method def' child has incorrect indentation level 5, expected level should be 4.</td>
-<td>984</td></tr>
+<td>988</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>1001</td></tr>
+<td>1005</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1003</td></tr>
+<td>1007</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1004</td></tr>
+<td>1008</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1011</td></tr>
+<td>1015</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
 <td>Must have at least one statement.</td>
-<td>1068</td></tr>
+<td>1072</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>1079</td></tr>
+<td>1083</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1092</td></tr>
+<td>1096</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1139</td></tr>
+<td>1143</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1154</td></tr>
+<td>1158</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>1166</td></tr>
+<td>1170</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>1167</td></tr>
+<td>1171</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>1168</td></tr>
+<td>1172</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1170</td></tr>
+<td>1174</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1185</td></tr>
+<td>1189</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1198</td></tr>
+<td>1202</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1220</td></tr>
+<td>1224</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1228</td></tr>
+<td>1232</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1236</td></tr>
+<td>1240</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1244</td></tr>
+<td>1248</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1252</td></tr>
+<td>1256</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1253</td></tr>
+<td>1257</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1255</td></tr>
+<td>1259</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1258</td></tr>
+<td>1262</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1264</td></tr>
+<td>1268</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1265</td></tr>
+<td>1269</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1267</td></tr>
+<td>1271</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1270</td></tr>
+<td>1274</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1280</td></tr>
+<td>1284</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1281</td></tr>
+<td>1285</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1283</td></tr>
+<td>1287</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1286</td></tr>
+<td>1290</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1292</td></tr>
+<td>1296</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1293</td></tr>
+<td>1297</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1294</td></tr>
+<td>1298</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1296</td></tr>
+<td>1300</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>1300</td></tr>
+<td>1304</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1310</td></tr>
+<td>1314</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1311</td></tr>
+<td>1315</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1313</td></tr>
+<td>1317</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1316</td></tr>
+<td>1320</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1322</td></tr>
+<td>1326</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1323</td></tr>
+<td>1327</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1325</td></tr>
+<td>1329</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1333</td></tr>
+<td>1337</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1334</td></tr>
+<td>1338</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1335</td></tr>
+<td>1339</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1337</td></tr>
+<td>1341</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1346</td></tr>
+<td>1350</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1358</td></tr>
+<td>1362</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1359</td></tr>
+<td>1363</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1362</td></tr>
+<td>1366</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1365</td></tr>
+<td>1369</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1419</td></tr>
+<td>1423</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1432</td></tr>
+<td>1436</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1433</td></tr>
+<td>1437</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1434</td></tr>
+<td>1438</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1437</td></tr>
+<td>1441</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1446</td></tr>
+<td>1450</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1447</td></tr>
+<td>1451</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1448</td></tr>
+<td>1452</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1450</td></tr>
+<td>1454</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1453</td></tr>
+<td>1457</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1459</td></tr>
+<td>1463</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1460</td></tr>
+<td>1464</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1461</td></tr>
+<td>1465</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1463</td></tr>
+<td>1467</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1472</td></tr>
+<td>1476</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1473</td></tr>
+<td>1477</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1474</td></tr>
+<td>1478</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1475</td></tr>
+<td>1479</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1477</td></tr>
+<td>1481</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1495</td></tr>
+<td>1499</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1496</td></tr>
+<td>1500</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1497</td></tr>
+<td>1501</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1499</td></tr>
+<td>1503</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1508</td></tr>
+<td>1512</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1509</td></tr>
+<td>1513</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1510</td></tr>
+<td>1514</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1511</td></tr>
+<td>1515</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1513</td></tr>
+<td>1517</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method def' child has incorrect indentation level 6, expected level should be 4.</td>
-<td>1533</td></tr>
+<td>1537</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'for' has incorrect indentation level 6, expected level should be 4.</td>
-<td>1534</td></tr>
+<td>1538</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'for' child has incorrect indentation level 8, expected level should be 6.</td>
-<td>1535</td></tr>
+<td>1539</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'for' child has incorrect indentation level 8, expected level should be 6.</td>
-<td>1538</td></tr>
+<td>1542</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'for rcurly' has incorrect indentation level 6, expected level should be 4.</td>
-<td>1539</td></tr>
+<td>1543</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' has incorrect indentation level 6, expected level should be 4.</td>
-<td>1540</td></tr>
+<td>1544</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if' child has incorrect indentation level 8, expected level should be 6.</td>
-<td>1541</td></tr>
+<td>1545</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'if rcurly' has incorrect indentation level 6, expected level should be 4.</td>
-<td>1542</td></tr>
+<td>1546</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method def' child has incorrect indentation level 6, expected level should be 4.</td>
-<td>1543</td></tr>
+<td>1547</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method def' child has incorrect indentation level 6, expected level should be 4.</td>
-<td>1546</td></tr>
+<td>1550</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method def' child has incorrect indentation level 6, expected level should be 4.</td>
-<td>1547</td></tr>
+<td>1551</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method def rcurly' has incorrect indentation level 4, expected level should be 2.</td>
-<td>1548</td></tr>
+<td>1552</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1552</td></tr>
+<td>1556</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1553</td></tr>
+<td>1557</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1554</td></tr>
+<td>1558</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1556</td></tr>
+<td>1560</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1560</td></tr>
+<td>1564</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1578</td></tr>
+<td>1582</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1579</td></tr>
+<td>1583</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1580</td></tr>
+<td>1584</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1582</td></tr>
+<td>1586</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1598</td></tr>
+<td>1602</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1599</td></tr>
+<td>1603</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1601</td></tr>
+<td>1605</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;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>1615</td></tr>
+<td>1619</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;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>1616</td></tr>
+<td>1620</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;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>1617</td></tr>
+<td>1621</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>annotation</td>
 <td>MissingDeprecated</td>
 <td>Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description.</td>
-<td>1687</td></tr>
+<td>1691</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>annotation</td>
 <td>MissingDeprecated</td>
 <td>Must include both @java.lang.Deprecated annotation and @deprecated Javadoc tag with description.</td>
-<td>1699</td></tr>
+<td>1703</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1752</td></tr>
+<td>1756</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>1756</td></tr>
+<td>1760</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1775</td></tr>
+<td>1779</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1783</td></tr>
+<td>1787</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1784</td></tr>
+<td>1788</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1785</td></tr>
+<td>1789</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1786</td></tr>
+<td>1790</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1787</td></tr>
+<td>1791</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1788</td></tr>
+<td>1792</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1789</td></tr>
+<td>1793</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1790</td></tr>
+<td>1794</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1806</td></tr>
+<td>1810</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1807</td></tr>
+<td>1811</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1808</td></tr>
+<td>1812</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1809</td></tr>
+<td>1813</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1810</td></tr>
+<td>1814</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1813</td></tr>
+<td>1817</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1855</td></tr>
+<td>1859</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1905</td></tr>
+<td>1909</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1916</td></tr>
+<td>1920</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1927</td></tr>
+<td>1931</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1939</td></tr>
+<td>1943</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>1951</td></tr>
+<td>1955</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2035</td></tr>
+<td>2039</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>2038</td></tr>
+<td>2042</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>2139</td></tr>
+<td>2143</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2281</td></tr>
+<td>2285</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2282</td></tr>
+<td>2286</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2283</td></tr>
+<td>2287</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2285</td></tr>
+<td>2289</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2299</td></tr>
+<td>2303</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2300</td></tr>
+<td>2304</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2301</td></tr>
+<td>2305</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2303</td></tr>
+<td>2307</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>2307</td></tr>
+<td>2311</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2433</td></tr>
+<td>2437</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2434</td></tr>
+<td>2438</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2637</td></tr>
+<td>2641</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method def' child has incorrect indentation level 3, expected level should be 4.</td>
-<td>2675</td></tr>
+<td>2679</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;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>2706</td></tr>
+<td>2710</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;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>2708</td></tr>
+<td>2712</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;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>2709</td></tr>
+<td>2713</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;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>2710</td></tr>
+<td>2714</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'while' child has incorrect indentation level 7, expected level should be 6.</td>
-<td>2721</td></tr>
+<td>2725</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2762</td></tr>
+<td>2766</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>2783</td></tr>
+<td>2787</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2838</td></tr>
+<td>2842</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>2870</td></tr>
+<td>2874</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>JavadocTagContinuationIndentation</td>
 <td>Line continuation have incorrect indentation level, expected level should be 2.</td>
-<td>2897</td></tr>
+<td>2901</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2918</td></tr>
+<td>2922</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2919</td></tr>
+<td>2923</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2935</td></tr>
+<td>2939</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>2936</td></tr>
+<td>2940</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>2939</td></tr>
+<td>2943</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>2990</td></tr>
+<td>2994</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>2993</td></tr>
+<td>2997</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3010</td></tr>
+<td>3014</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3011</td></tr>
+<td>3015</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3012</td></tr>
+<td>3016</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3025</td></tr>
+<td>3029</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3026</td></tr>
+<td>3030</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>3029</td></tr>
+<td>3033</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>3034</td></tr>
+<td>3038</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3042</td></tr>
+<td>3046</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3043</td></tr>
+<td>3047</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3059</td></tr>
+<td>3063</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3060</td></tr>
+<td>3064</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3072</td></tr>
+<td>3076</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3093</td></tr>
+<td>3097</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3125</td></tr>
+<td>3129</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'throws' has incorrect indentation level 2, expected level should be 4.</td>
-<td>3129</td></tr>
+<td>3133</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3181</td></tr>
+<td>3185</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3182</td></tr>
+<td>3186</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3183</td></tr>
+<td>3187</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3184</td></tr>
+<td>3188</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3185</td></tr>
+<td>3189</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3211</td></tr>
+<td>3215</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3227</td></tr>
+<td>3231</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3228</td></tr>
+<td>3232</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3254</td></tr>
+<td>3258</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3263</td></tr>
+<td>3267</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3277</td></tr>
+<td>3281</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>coding</td>
 <td>InnerAssignment</td>
 <td>Inner assignments should be avoided.</td>
-<td>3297</td></tr>
+<td>3301</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 104).</td>
-<td>3328</td></tr>
+<td>3332</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3387</td></tr>
+<td>3391</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3388</td></tr>
+<td>3392</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3390</td></tr>
+<td>3394</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>indentation</td>
 <td>Indentation</td>
 <td>'method def rparen' has incorrect indentation level 48, expected level should be 2.</td>
-<td>3408</td></tr>
+<td>3412</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>EmptyBlock</td>
 <td>Must have at least one statement.</td>
-<td>3426</td></tr>
+<td>3430</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>sizes</td>
 <td>LineLength</td>
 <td>Line is longer than 100 characters (found 101).</td>
-<td>3717</td></tr>
+<td>3721</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>3804</td></tr>
+<td>3808</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>3806</td></tr>
+<td>3810</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>3840</td></tr>
+<td>3844</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>3877</td></tr>
+<td>3881</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>blocks</td>
 <td>NeedBraces</td>
 <td>'if' construct must use '{}'s.</td>
-<td>3879</td></tr>
+<td>3883</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3957</td></tr>
+<td>3961</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3965</td></tr>
+<td>3969</td></tr>
 <tr class="b">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3973</td></tr>
+<td>3977</td></tr>
 <tr class="a">
 <td><img src="images/icon_error_sml.gif" alt="" />&#160;Error</td>
 <td>javadoc</td>
 <td>NonEmptyAtclauseDescription</td>
 <td>At-clause should have a non-empty description.</td>
-<td>3974</td></tr></table></div>
+<td>3978</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">

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/devapidocs/constant-values.html
----------------------------------------------------------------------
diff --git a/devapidocs/constant-values.html b/devapidocs/constant-values.html
index 2897d60..4b37b51 100644
--- a/devapidocs/constant-values.html
+++ b/devapidocs/constant-values.html
@@ -3789,14 +3789,14 @@
 <!--   -->
 </a><code>public&nbsp;static&nbsp;final&nbsp;<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>"Fri Jul 20 01:49:10 UTC 2018"</code></td>
+<td class="colLast"><code>"Fri Jul 20 14:39:51 UTC 2018"</code></td>
 </tr>
 <tr class="rowColor">
 <td class="colFirst"><a name="org.apache.hadoop.hbase.Version.revision">
 <!--   -->
 </a><code>public&nbsp;static&nbsp;final&nbsp;<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>"e66a6603e36ecd67237ca16acd5e2de03f0d372d"</code></td>
+<td class="colLast"><code>"03e596c6694a21768c51a3c52e1a032f51fd637c"</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/a5e2ad1d/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 9988c20..51e1434 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 = "e66a6603e36ecd67237ca16acd5e2de03f0d372d";<a name="line.11"></a>
+<span class="sourceLineNo">011</span>  public static final String revision = "03e596c6694a21768c51a3c52e1a032f51fd637c";<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 = "Fri Jul 20 01:49:10 UTC 2018";<a name="line.13"></a>
+<span class="sourceLineNo">013</span>  public static final String date = "Fri Jul 20 14:39:51 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 = "a65d367fbccbdba17726b7d3fb69e5b3";<a name="line.15"></a>
 <span class="sourceLineNo">016</span>}<a name="line.16"></a>


[02/10] hbase-site git commit: Published site at 03e596c6694a21768c51a3c52e1a032f51fd637c.

Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/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 b9dc38a..a93e27f 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html
@@ -341,3814 +341,3818 @@
 <span class="sourceLineNo">333</span>    ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.333"></a>
 <span class="sourceLineNo">334</span><a name="line.334"></a>
 <span class="sourceLineNo">335</span>    // Save this for when setting default file:// breaks things<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.336"></a>
-<span class="sourceLineNo">337</span><a name="line.337"></a>
-<span class="sourceLineNo">338</span>    // Every cluster is a local cluster until we start DFS<a name="line.338"></a>
-<span class="sourceLineNo">339</span>    // Note that conf could be null, but this.conf will not be<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    String dataTestDir = getDataTestDir().toString();<a name="line.340"></a>
-<span class="sourceLineNo">341</span>    this.conf.set("fs.defaultFS","file:///");<a name="line.341"></a>
-<span class="sourceLineNo">342</span>    this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.342"></a>
-<span class="sourceLineNo">343</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    // If the value for random ports isn't set set it to true, thus making<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    // tests opt-out for random port assignment<a name="line.346"></a>
-<span class="sourceLineNo">347</span>    this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.347"></a>
-<span class="sourceLineNo">348</span>        this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.348"></a>
-<span class="sourceLineNo">349</span>  }<a name="line.349"></a>
-<span class="sourceLineNo">350</span><a name="line.350"></a>
-<span class="sourceLineNo">351</span>  /**<a name="line.351"></a>
-<span class="sourceLineNo">352</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.352"></a>
-<span class="sourceLineNo">353</span>   * @return a normal HBaseTestingUtility<a name="line.353"></a>
-<span class="sourceLineNo">354</span>   */<a name="line.354"></a>
-<span class="sourceLineNo">355</span>  @Deprecated<a name="line.355"></a>
-<span class="sourceLineNo">356</span>  public static HBaseTestingUtility createLocalHTU() {<a name="line.356"></a>
-<span class="sourceLineNo">357</span>    return new HBaseTestingUtility();<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>  /**<a name="line.360"></a>
-<span class="sourceLineNo">361</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.361"></a>
-<span class="sourceLineNo">362</span>   * @return a normal HBaseTestingUtility<a name="line.362"></a>
-<span class="sourceLineNo">363</span>   */<a name="line.363"></a>
-<span class="sourceLineNo">364</span>  @Deprecated<a name="line.364"></a>
-<span class="sourceLineNo">365</span>  public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    return new HBaseTestingUtility(c);<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>  /**<a name="line.369"></a>
-<span class="sourceLineNo">370</span>   * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.370"></a>
-<span class="sourceLineNo">371</span>   */<a name="line.371"></a>
-<span class="sourceLineNo">372</span>  public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.372"></a>
-<span class="sourceLineNo">373</span>    closeRegionAndWAL((HRegion)r);<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 HRegion {@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 HRegion r) throws IOException {<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    if (r == null) return;<a name="line.380"></a>
-<span class="sourceLineNo">381</span>    r.close();<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    if (r.getWAL() == null) return;<a name="line.382"></a>
-<span class="sourceLineNo">383</span>    r.getWAL().close();<a name="line.383"></a>
-<span class="sourceLineNo">384</span>  }<a name="line.384"></a>
-<span class="sourceLineNo">385</span><a name="line.385"></a>
-<span class="sourceLineNo">386</span>  /**<a name="line.386"></a>
-<span class="sourceLineNo">387</span>   * Returns this classes's instance of {@link Configuration}.  Be careful how<a name="line.387"></a>
-<span class="sourceLineNo">388</span>   * you use the returned Configuration since {@link Connection} instances<a name="line.388"></a>
-<span class="sourceLineNo">389</span>   * can be shared.  The Map of Connections is keyed by the Configuration.  If<a name="line.389"></a>
-<span class="sourceLineNo">390</span>   * say, a Connection was being used against a cluster that had been shutdown,<a name="line.390"></a>
-<span class="sourceLineNo">391</span>   * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.391"></a>
-<span class="sourceLineNo">392</span>   * be wholesome.  Rather than use the return direct, its usually best to<a name="line.392"></a>
-<span class="sourceLineNo">393</span>   * make a copy and use that.  Do<a name="line.393"></a>
-<span class="sourceLineNo">394</span>   * &lt;code&gt;Configuration c = new Configuration(INSTANCE.getConfiguration());&lt;/code&gt;<a name="line.394"></a>
-<span class="sourceLineNo">395</span>   * @return Instance of Configuration.<a name="line.395"></a>
-<span class="sourceLineNo">396</span>   */<a name="line.396"></a>
-<span class="sourceLineNo">397</span>  @Override<a name="line.397"></a>
-<span class="sourceLineNo">398</span>  public Configuration getConfiguration() {<a name="line.398"></a>
-<span class="sourceLineNo">399</span>    return super.getConfiguration();<a name="line.399"></a>
-<span class="sourceLineNo">400</span>  }<a name="line.400"></a>
-<span class="sourceLineNo">401</span><a name="line.401"></a>
-<span class="sourceLineNo">402</span>  public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    this.hbaseCluster = hbaseCluster;<a name="line.403"></a>
+<span class="sourceLineNo">336</span>    if (this.conf.get("fs.defaultFS") != null) {<a name="line.336"></a>
+<span class="sourceLineNo">337</span>      this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.337"></a>
+<span class="sourceLineNo">338</span>    }<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.339"></a>
+<span class="sourceLineNo">340</span>      this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.340"></a>
+<span class="sourceLineNo">341</span>    }<a name="line.341"></a>
+<span class="sourceLineNo">342</span>    // Every cluster is a local cluster until we start DFS<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    // Note that conf could be null, but this.conf will not be<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    String dataTestDir = getDataTestDir().toString();<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    this.conf.set("fs.defaultFS","file:///");<a name="line.345"></a>
+<span class="sourceLineNo">346</span>    this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.347"></a>
+<span class="sourceLineNo">348</span>    this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.348"></a>
+<span class="sourceLineNo">349</span>    // If the value for random ports isn't set set it to true, thus making<a name="line.349"></a>
+<span class="sourceLineNo">350</span>    // tests opt-out for random port assignment<a name="line.350"></a>
+<span class="sourceLineNo">351</span>    this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.351"></a>
+<span class="sourceLineNo">352</span>        this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.352"></a>
+<span class="sourceLineNo">353</span>  }<a name="line.353"></a>
+<span class="sourceLineNo">354</span><a name="line.354"></a>
+<span class="sourceLineNo">355</span>  /**<a name="line.355"></a>
+<span class="sourceLineNo">356</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.356"></a>
+<span class="sourceLineNo">357</span>   * @return a normal HBaseTestingUtility<a name="line.357"></a>
+<span class="sourceLineNo">358</span>   */<a name="line.358"></a>
+<span class="sourceLineNo">359</span>  @Deprecated<a name="line.359"></a>
+<span class="sourceLineNo">360</span>  public static HBaseTestingUtility createLocalHTU() {<a name="line.360"></a>
+<span class="sourceLineNo">361</span>    return new HBaseTestingUtility();<a name="line.361"></a>
+<span class="sourceLineNo">362</span>  }<a name="line.362"></a>
+<span class="sourceLineNo">363</span><a name="line.363"></a>
+<span class="sourceLineNo">364</span>  /**<a name="line.364"></a>
+<span class="sourceLineNo">365</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.365"></a>
+<span class="sourceLineNo">366</span>   * @return a normal HBaseTestingUtility<a name="line.366"></a>
+<span class="sourceLineNo">367</span>   */<a name="line.367"></a>
+<span class="sourceLineNo">368</span>  @Deprecated<a name="line.368"></a>
+<span class="sourceLineNo">369</span>  public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.369"></a>
+<span class="sourceLineNo">370</span>    return new HBaseTestingUtility(c);<a name="line.370"></a>
+<span class="sourceLineNo">371</span>  }<a name="line.371"></a>
+<span class="sourceLineNo">372</span><a name="line.372"></a>
+<span class="sourceLineNo">373</span>  /**<a name="line.373"></a>
+<span class="sourceLineNo">374</span>   * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.374"></a>
+<span class="sourceLineNo">375</span>   */<a name="line.375"></a>
+<span class="sourceLineNo">376</span>  public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.376"></a>
+<span class="sourceLineNo">377</span>    closeRegionAndWAL((HRegion)r);<a name="line.377"></a>
+<span class="sourceLineNo">378</span>  }<a name="line.378"></a>
+<span class="sourceLineNo">379</span><a name="line.379"></a>
+<span class="sourceLineNo">380</span>  /**<a name="line.380"></a>
+<span class="sourceLineNo">381</span>   * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.381"></a>
+<span class="sourceLineNo">382</span>   */<a name="line.382"></a>
+<span class="sourceLineNo">383</span>  public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.383"></a>
+<span class="sourceLineNo">384</span>    if (r == null) return;<a name="line.384"></a>
+<span class="sourceLineNo">385</span>    r.close();<a name="line.385"></a>
+<span class="sourceLineNo">386</span>    if (r.getWAL() == null) return;<a name="line.386"></a>
+<span class="sourceLineNo">387</span>    r.getWAL().close();<a name="line.387"></a>
+<span class="sourceLineNo">388</span>  }<a name="line.388"></a>
+<span class="sourceLineNo">389</span><a name="line.389"></a>
+<span class="sourceLineNo">390</span>  /**<a name="line.390"></a>
+<span class="sourceLineNo">391</span>   * Returns this classes's instance of {@link Configuration}.  Be careful how<a name="line.391"></a>
+<span class="sourceLineNo">392</span>   * you use the returned Configuration since {@link Connection} instances<a name="line.392"></a>
+<span class="sourceLineNo">393</span>   * can be shared.  The Map of Connections is keyed by the Configuration.  If<a name="line.393"></a>
+<span class="sourceLineNo">394</span>   * say, a Connection was being used against a cluster that had been shutdown,<a name="line.394"></a>
+<span class="sourceLineNo">395</span>   * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.395"></a>
+<span class="sourceLineNo">396</span>   * be wholesome.  Rather than use the return direct, its usually best to<a name="line.396"></a>
+<span class="sourceLineNo">397</span>   * make a copy and use that.  Do<a name="line.397"></a>
+<span class="sourceLineNo">398</span>   * &lt;code&gt;Configuration c = new Configuration(INSTANCE.getConfiguration());&lt;/code&gt;<a name="line.398"></a>
+<span class="sourceLineNo">399</span>   * @return Instance of Configuration.<a name="line.399"></a>
+<span class="sourceLineNo">400</span>   */<a name="line.400"></a>
+<span class="sourceLineNo">401</span>  @Override<a name="line.401"></a>
+<span class="sourceLineNo">402</span>  public Configuration getConfiguration() {<a name="line.402"></a>
+<span class="sourceLineNo">403</span>    return super.getConfiguration();<a name="line.403"></a>
 <span class="sourceLineNo">404</span>  }<a name="line.404"></a>
 <span class="sourceLineNo">405</span><a name="line.405"></a>
-<span class="sourceLineNo">406</span>  /**<a name="line.406"></a>
-<span class="sourceLineNo">407</span>   * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.407"></a>
-<span class="sourceLineNo">408</span>   * Give it a random name so can have many concurrent tests running if<a name="line.408"></a>
-<span class="sourceLineNo">409</span>   * we need to.  It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.409"></a>
-<span class="sourceLineNo">410</span>   * System property, as it's what minidfscluster bases<a name="line.410"></a>
-<span class="sourceLineNo">411</span>   * it data dir on.  Moding a System property is not the way to do concurrent<a name="line.411"></a>
-<span class="sourceLineNo">412</span>   * instances -- another instance could grab the temporary<a name="line.412"></a>
-<span class="sourceLineNo">413</span>   * value unintentionally -- but not anything can do about it at moment;<a name="line.413"></a>
-<span class="sourceLineNo">414</span>   * single instance only is how the minidfscluster works.<a name="line.414"></a>
-<span class="sourceLineNo">415</span>   *<a name="line.415"></a>
-<span class="sourceLineNo">416</span>   * We also create the underlying directory for<a name="line.416"></a>
-<span class="sourceLineNo">417</span>   *  hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.417"></a>
-<span class="sourceLineNo">418</span>   *  in the conf, and as a system property for hadoop.tmp.dir<a name="line.418"></a>
+<span class="sourceLineNo">406</span>  public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    this.hbaseCluster = hbaseCluster;<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>  /**<a name="line.410"></a>
+<span class="sourceLineNo">411</span>   * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.411"></a>
+<span class="sourceLineNo">412</span>   * Give it a random name so can have many concurrent tests running if<a name="line.412"></a>
+<span class="sourceLineNo">413</span>   * we need to.  It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.413"></a>
+<span class="sourceLineNo">414</span>   * System property, as it's what minidfscluster bases<a name="line.414"></a>
+<span class="sourceLineNo">415</span>   * it data dir on.  Moding a System property is not the way to do concurrent<a name="line.415"></a>
+<span class="sourceLineNo">416</span>   * instances -- another instance could grab the temporary<a name="line.416"></a>
+<span class="sourceLineNo">417</span>   * value unintentionally -- but not anything can do about it at moment;<a name="line.417"></a>
+<span class="sourceLineNo">418</span>   * single instance only is how the minidfscluster works.<a name="line.418"></a>
 <span class="sourceLineNo">419</span>   *<a name="line.419"></a>
-<span class="sourceLineNo">420</span>   * @return The calculated data test build directory, if newly-created.<a name="line.420"></a>
-<span class="sourceLineNo">421</span>   */<a name="line.421"></a>
-<span class="sourceLineNo">422</span>  @Override<a name="line.422"></a>
-<span class="sourceLineNo">423</span>  protected Path setupDataTestDir() {<a name="line.423"></a>
-<span class="sourceLineNo">424</span>    Path testPath = super.setupDataTestDir();<a name="line.424"></a>
-<span class="sourceLineNo">425</span>    if (null == testPath) {<a name="line.425"></a>
-<span class="sourceLineNo">426</span>      return null;<a name="line.426"></a>
-<span class="sourceLineNo">427</span>    }<a name="line.427"></a>
-<span class="sourceLineNo">428</span><a name="line.428"></a>
-<span class="sourceLineNo">429</span>    createSubDirAndSystemProperty(<a name="line.429"></a>
-<span class="sourceLineNo">430</span>      "hadoop.log.dir",<a name="line.430"></a>
-<span class="sourceLineNo">431</span>      testPath, "hadoop-log-dir");<a name="line.431"></a>
+<span class="sourceLineNo">420</span>   * We also create the underlying directory for<a name="line.420"></a>
+<span class="sourceLineNo">421</span>   *  hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.421"></a>
+<span class="sourceLineNo">422</span>   *  in the conf, and as a system property for hadoop.tmp.dir<a name="line.422"></a>
+<span class="sourceLineNo">423</span>   *<a name="line.423"></a>
+<span class="sourceLineNo">424</span>   * @return The calculated data test build directory, if newly-created.<a name="line.424"></a>
+<span class="sourceLineNo">425</span>   */<a name="line.425"></a>
+<span class="sourceLineNo">426</span>  @Override<a name="line.426"></a>
+<span class="sourceLineNo">427</span>  protected Path setupDataTestDir() {<a name="line.427"></a>
+<span class="sourceLineNo">428</span>    Path testPath = super.setupDataTestDir();<a name="line.428"></a>
+<span class="sourceLineNo">429</span>    if (null == testPath) {<a name="line.429"></a>
+<span class="sourceLineNo">430</span>      return null;<a name="line.430"></a>
+<span class="sourceLineNo">431</span>    }<a name="line.431"></a>
 <span class="sourceLineNo">432</span><a name="line.432"></a>
-<span class="sourceLineNo">433</span>    // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.433"></a>
-<span class="sourceLineNo">434</span>    //  we want our own value to ensure uniqueness on the same machine<a name="line.434"></a>
-<span class="sourceLineNo">435</span>    createSubDirAndSystemProperty(<a name="line.435"></a>
-<span class="sourceLineNo">436</span>      "hadoop.tmp.dir",<a name="line.436"></a>
-<span class="sourceLineNo">437</span>      testPath, "hadoop-tmp-dir");<a name="line.437"></a>
-<span class="sourceLineNo">438</span><a name="line.438"></a>
-<span class="sourceLineNo">439</span>    // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.439"></a>
-<span class="sourceLineNo">440</span>    createSubDir(<a name="line.440"></a>
-<span class="sourceLineNo">441</span>      "mapreduce.cluster.local.dir",<a name="line.441"></a>
-<span class="sourceLineNo">442</span>      testPath, "mapred-local-dir");<a name="line.442"></a>
-<span class="sourceLineNo">443</span><a name="line.443"></a>
-<span class="sourceLineNo">444</span>    return testPath;<a name="line.444"></a>
-<span class="sourceLineNo">445</span>  }<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span>  private void createSubDirAndSystemProperty(<a name="line.447"></a>
-<span class="sourceLineNo">448</span>    String propertyName, Path parent, String subDirName){<a name="line.448"></a>
-<span class="sourceLineNo">449</span><a name="line.449"></a>
-<span class="sourceLineNo">450</span>    String sysValue = System.getProperty(propertyName);<a name="line.450"></a>
-<span class="sourceLineNo">451</span><a name="line.451"></a>
-<span class="sourceLineNo">452</span>    if (sysValue != null) {<a name="line.452"></a>
-<span class="sourceLineNo">453</span>      // There is already a value set. So we do nothing but hope<a name="line.453"></a>
-<span class="sourceLineNo">454</span>      //  that there will be no conflicts<a name="line.454"></a>
-<span class="sourceLineNo">455</span>      LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.455"></a>
-<span class="sourceLineNo">456</span>        sysValue + " so I do NOT create it in " + parent);<a name="line.456"></a>
-<span class="sourceLineNo">457</span>      String confValue = conf.get(propertyName);<a name="line.457"></a>
-<span class="sourceLineNo">458</span>      if (confValue != null &amp;&amp; !confValue.endsWith(sysValue)){<a name="line.458"></a>
-<span class="sourceLineNo">459</span>       LOG.warn(<a name="line.459"></a>
-<span class="sourceLineNo">460</span>         propertyName + " property value differs in configuration and system: "+<a name="line.460"></a>
-<span class="sourceLineNo">461</span>         "Configuration="+confValue+" while System="+sysValue+<a name="line.461"></a>
-<span class="sourceLineNo">462</span>         " Erasing configuration value by system value."<a name="line.462"></a>
-<span class="sourceLineNo">463</span>       );<a name="line.463"></a>
-<span class="sourceLineNo">464</span>      }<a name="line.464"></a>
-<span class="sourceLineNo">465</span>      conf.set(propertyName, sysValue);<a name="line.465"></a>
-<span class="sourceLineNo">466</span>    } else {<a name="line.466"></a>
-<span class="sourceLineNo">467</span>      // Ok, it's not set, so we create it as a subdirectory<a name="line.467"></a>
-<span class="sourceLineNo">468</span>      createSubDir(propertyName, parent, subDirName);<a name="line.468"></a>
-<span class="sourceLineNo">469</span>      System.setProperty(propertyName, conf.get(propertyName));<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><a name="line.472"></a>
-<span class="sourceLineNo">473</span>  /**<a name="line.473"></a>
-<span class="sourceLineNo">474</span>   * @return Where to write test data on the test filesystem; Returns working directory<a name="line.474"></a>
-<span class="sourceLineNo">475</span>   * for the test filesystem by default<a name="line.475"></a>
-<span class="sourceLineNo">476</span>   * @see #setupDataTestDirOnTestFS()<a name="line.476"></a>
-<span class="sourceLineNo">477</span>   * @see #getTestFileSystem()<a name="line.477"></a>
-<span class="sourceLineNo">478</span>   */<a name="line.478"></a>
-<span class="sourceLineNo">479</span>  private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.479"></a>
-<span class="sourceLineNo">480</span>    FileSystem fs = getTestFileSystem();<a name="line.480"></a>
-<span class="sourceLineNo">481</span>    return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.481"></a>
-<span class="sourceLineNo">482</span>  }<a name="line.482"></a>
-<span class="sourceLineNo">483</span><a name="line.483"></a>
-<span class="sourceLineNo">484</span>  /**<a name="line.484"></a>
-<span class="sourceLineNo">485</span>   * @return META table descriptor<a name="line.485"></a>
-<span class="sourceLineNo">486</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.486"></a>
-<span class="sourceLineNo">487</span>   *             use {@link #getMetaTableDescriptorBuilder()}<a name="line.487"></a>
-<span class="sourceLineNo">488</span>   */<a name="line.488"></a>
-<span class="sourceLineNo">489</span>  @Deprecated<a name="line.489"></a>
-<span class="sourceLineNo">490</span>  public HTableDescriptor getMetaTableDescriptor() {<a name="line.490"></a>
-<span class="sourceLineNo">491</span>    return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.491"></a>
-<span class="sourceLineNo">492</span>  }<a name="line.492"></a>
-<span class="sourceLineNo">493</span><a name="line.493"></a>
-<span class="sourceLineNo">494</span>  /**<a name="line.494"></a>
-<span class="sourceLineNo">495</span>   * @return META table descriptor<a name="line.495"></a>
-<span class="sourceLineNo">496</span>   */<a name="line.496"></a>
-<span class="sourceLineNo">497</span>  public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.497"></a>
-<span class="sourceLineNo">498</span>    try {<a name="line.498"></a>
-<span class="sourceLineNo">499</span>      return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.499"></a>
-<span class="sourceLineNo">500</span>    } catch (IOException e) {<a name="line.500"></a>
-<span class="sourceLineNo">501</span>      throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.501"></a>
-<span class="sourceLineNo">502</span>    }<a name="line.502"></a>
-<span class="sourceLineNo">503</span>  }<a name="line.503"></a>
-<span class="sourceLineNo">504</span><a name="line.504"></a>
-<span class="sourceLineNo">505</span>  /**<a name="line.505"></a>
-<span class="sourceLineNo">506</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.506"></a>
-<span class="sourceLineNo">507</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.507"></a>
-<span class="sourceLineNo">508</span>   * if the test relies on it.<a name="line.508"></a>
-<span class="sourceLineNo">509</span>   * @return a unique path in the test filesystem<a name="line.509"></a>
-<span class="sourceLineNo">510</span>   */<a name="line.510"></a>
-<span class="sourceLineNo">511</span>  public Path getDataTestDirOnTestFS() throws IOException {<a name="line.511"></a>
-<span class="sourceLineNo">512</span>    if (dataTestDirOnTestFS == null) {<a name="line.512"></a>
-<span class="sourceLineNo">513</span>      setupDataTestDirOnTestFS();<a name="line.513"></a>
-<span class="sourceLineNo">514</span>    }<a name="line.514"></a>
-<span class="sourceLineNo">515</span><a name="line.515"></a>
-<span class="sourceLineNo">516</span>    return dataTestDirOnTestFS;<a name="line.516"></a>
-<span class="sourceLineNo">517</span>  }<a name="line.517"></a>
-<span class="sourceLineNo">518</span><a name="line.518"></a>
-<span class="sourceLineNo">519</span>  /**<a name="line.519"></a>
-<span class="sourceLineNo">520</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.520"></a>
-<span class="sourceLineNo">521</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.521"></a>
-<span class="sourceLineNo">522</span>   * if the test relies on it.<a name="line.522"></a>
-<span class="sourceLineNo">523</span>   * @return a unique path in the test filesystem<a name="line.523"></a>
-<span class="sourceLineNo">524</span>   * @param subdirName name of the subdir to create under the base test dir<a name="line.524"></a>
-<span class="sourceLineNo">525</span>   */<a name="line.525"></a>
-<span class="sourceLineNo">526</span>  public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.526"></a>
-<span class="sourceLineNo">527</span>    return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.527"></a>
-<span class="sourceLineNo">528</span>  }<a name="line.528"></a>
-<span class="sourceLineNo">529</span><a name="line.529"></a>
-<span class="sourceLineNo">530</span>  /**<a name="line.530"></a>
-<span class="sourceLineNo">531</span>   * Sets up a path in test filesystem to be used by tests.<a name="line.531"></a>
-<span class="sourceLineNo">532</span>   * Creates a new directory if not already setup.<a name="line.532"></a>
-<span class="sourceLineNo">533</span>   */<a name="line.533"></a>
-<span class="sourceLineNo">534</span>  private void setupDataTestDirOnTestFS() throws IOException {<a name="line.534"></a>
-<span class="sourceLineNo">535</span>    if (dataTestDirOnTestFS != null) {<a name="line.535"></a>
-<span class="sourceLineNo">536</span>      LOG.warn("Data test on test fs dir already setup in "<a name="line.536"></a>
-<span class="sourceLineNo">537</span>          + dataTestDirOnTestFS.toString());<a name="line.537"></a>
-<span class="sourceLineNo">538</span>      return;<a name="line.538"></a>
-<span class="sourceLineNo">539</span>    }<a name="line.539"></a>
-<span class="sourceLineNo">540</span>    dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.540"></a>
-<span class="sourceLineNo">541</span>  }<a name="line.541"></a>
-<span class="sourceLineNo">542</span><a name="line.542"></a>
-<span class="sourceLineNo">543</span>  /**<a name="line.543"></a>
-<span class="sourceLineNo">544</span>   * Sets up a new path in test filesystem to be used by tests.<a name="line.544"></a>
-<span class="sourceLineNo">545</span>   */<a name="line.545"></a>
-<span class="sourceLineNo">546</span>  private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.546"></a>
-<span class="sourceLineNo">547</span>    //The file system can be either local, mini dfs, or if the configuration<a name="line.547"></a>
-<span class="sourceLineNo">548</span>    //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.548"></a>
-<span class="sourceLineNo">549</span>    //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.549"></a>
-<span class="sourceLineNo">550</span>    //the working directory, and create a unique sub dir there<a name="line.550"></a>
-<span class="sourceLineNo">551</span>    FileSystem fs = getTestFileSystem();<a name="line.551"></a>
-<span class="sourceLineNo">552</span>    Path newDataTestDir;<a name="line.552"></a>
-<span class="sourceLineNo">553</span>    String randomStr = getRandomUUID().toString();<a name="line.553"></a>
-<span class="sourceLineNo">554</span>    if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.554"></a>
-<span class="sourceLineNo">555</span>      newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.555"></a>
-<span class="sourceLineNo">556</span>      File dataTestDir = new File(newDataTestDir.toString());<a name="line.556"></a>
-<span class="sourceLineNo">557</span>      if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.557"></a>
-<span class="sourceLineNo">558</span>    } else {<a name="line.558"></a>
-<span class="sourceLineNo">559</span>      Path base = getBaseTestDirOnTestFS();<a name="line.559"></a>
-<span class="sourceLineNo">560</span>      newDataTestDir = new Path(base, randomStr);<a name="line.560"></a>
-<span class="sourceLineNo">561</span>      if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.561"></a>
-<span class="sourceLineNo">562</span>    }<a name="line.562"></a>
-<span class="sourceLineNo">563</span>    return newDataTestDir;<a name="line.563"></a>
-<span class="sourceLineNo">564</span>  }<a name="line.564"></a>
-<span class="sourceLineNo">565</span><a name="line.565"></a>
-<span class="sourceLineNo">566</span>  /**<a name="line.566"></a>
-<span class="sourceLineNo">567</span>   * Cleans the test data directory on the test filesystem.<a name="line.567"></a>
-<span class="sourceLineNo">568</span>   * @return True if we removed the test dirs<a name="line.568"></a>
-<span class="sourceLineNo">569</span>   * @throws IOException<a name="line.569"></a>
-<span class="sourceLineNo">570</span>   */<a name="line.570"></a>
-<span class="sourceLineNo">571</span>  public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.571"></a>
-<span class="sourceLineNo">572</span>    boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.572"></a>
-<span class="sourceLineNo">573</span>    if (ret)<a name="line.573"></a>
-<span class="sourceLineNo">574</span>      dataTestDirOnTestFS = null;<a name="line.574"></a>
-<span class="sourceLineNo">575</span>    return ret;<a name="line.575"></a>
-<span class="sourceLineNo">576</span>  }<a name="line.576"></a>
-<span class="sourceLineNo">577</span><a name="line.577"></a>
-<span class="sourceLineNo">578</span>  /**<a name="line.578"></a>
-<span class="sourceLineNo">579</span>   * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.579"></a>
-<span class="sourceLineNo">580</span>   * @return True if we removed child<a name="line.580"></a>
-<span class="sourceLineNo">581</span>   * @throws IOException<a name="line.581"></a>
-<span class="sourceLineNo">582</span>   */<a name="line.582"></a>
-<span class="sourceLineNo">583</span>  public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.583"></a>
-<span class="sourceLineNo">584</span>    Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.584"></a>
-<span class="sourceLineNo">585</span>    return getTestFileSystem().delete(cpath, true);<a name="line.585"></a>
-<span class="sourceLineNo">586</span>  }<a name="line.586"></a>
-<span class="sourceLineNo">587</span><a name="line.587"></a>
-<span class="sourceLineNo">588</span>  /**<a name="line.588"></a>
-<span class="sourceLineNo">589</span>   * Start a minidfscluster.<a name="line.589"></a>
-<span class="sourceLineNo">590</span>   * @param servers How many DNs to start.<a name="line.590"></a>
-<span class="sourceLineNo">591</span>   * @throws Exception<a name="line.591"></a>
-<span class="sourceLineNo">592</span>   * @see #shutdownMiniDFSCluster()<a name="line.592"></a>
-<span class="sourceLineNo">593</span>   * @return The mini dfs cluster created.<a name="line.593"></a>
-<span class="sourceLineNo">594</span>   */<a name="line.594"></a>
-<span class="sourceLineNo">595</span>  public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.595"></a>
-<span class="sourceLineNo">596</span>    return startMiniDFSCluster(servers, null);<a name="line.596"></a>
-<span class="sourceLineNo">597</span>  }<a name="line.597"></a>
-<span class="sourceLineNo">598</span><a name="line.598"></a>
-<span class="sourceLineNo">599</span>  /**<a name="line.599"></a>
-<span class="sourceLineNo">600</span>   * Start a minidfscluster.<a name="line.600"></a>
-<span class="sourceLineNo">601</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.601"></a>
-<span class="sourceLineNo">602</span>   * like HDFS block location verification.<a name="line.602"></a>
-<span class="sourceLineNo">603</span>   * If you start MiniDFSCluster without host names, all instances of the<a name="line.603"></a>
-<span class="sourceLineNo">604</span>   * datanodes will have the same host name.<a name="line.604"></a>
-<span class="sourceLineNo">605</span>   * @param hosts hostnames DNs to run on.<a name="line.605"></a>
-<span class="sourceLineNo">606</span>   * @throws Exception<a name="line.606"></a>
-<span class="sourceLineNo">607</span>   * @see #shutdownMiniDFSCluster()<a name="line.607"></a>
-<span class="sourceLineNo">608</span>   * @return The mini dfs cluster created.<a name="line.608"></a>
-<span class="sourceLineNo">609</span>   */<a name="line.609"></a>
-<span class="sourceLineNo">610</span>  public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.610"></a>
-<span class="sourceLineNo">611</span>  throws Exception {<a name="line.611"></a>
-<span class="sourceLineNo">612</span>    if ( hosts != null &amp;&amp; hosts.length != 0) {<a name="line.612"></a>
-<span class="sourceLineNo">613</span>      return startMiniDFSCluster(hosts.length, hosts);<a name="line.613"></a>
-<span class="sourceLineNo">614</span>    } else {<a name="line.614"></a>
-<span class="sourceLineNo">615</span>      return startMiniDFSCluster(1, null);<a name="line.615"></a>
-<span class="sourceLineNo">616</span>    }<a name="line.616"></a>
-<span class="sourceLineNo">617</span>  }<a name="line.617"></a>
-<span class="sourceLineNo">618</span><a name="line.618"></a>
-<span class="sourceLineNo">619</span>  /**<a name="line.619"></a>
-<span class="sourceLineNo">620</span>   * Start a minidfscluster.<a name="line.620"></a>
-<span class="sourceLineNo">621</span>   * Can only create one.<a name="line.621"></a>
-<span class="sourceLineNo">622</span>   * @param servers How many DNs to start.<a name="line.622"></a>
-<span class="sourceLineNo">623</span>   * @param hosts hostnames DNs to run on.<a name="line.623"></a>
-<span class="sourceLineNo">624</span>   * @throws Exception<a name="line.624"></a>
-<span class="sourceLineNo">625</span>   * @see #shutdownMiniDFSCluster()<a name="line.625"></a>
-<span class="sourceLineNo">626</span>   * @return The mini dfs cluster created.<a name="line.626"></a>
-<span class="sourceLineNo">627</span>   */<a name="line.627"></a>
-<span class="sourceLineNo">628</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.628"></a>
-<span class="sourceLineNo">629</span>  throws Exception {<a name="line.629"></a>
-<span class="sourceLineNo">630</span>    return startMiniDFSCluster(servers, null, hosts);<a name="line.630"></a>
-<span class="sourceLineNo">631</span>  }<a name="line.631"></a>
-<span class="sourceLineNo">632</span><a name="line.632"></a>
-<span class="sourceLineNo">633</span>  private void setFs() throws IOException {<a name="line.633"></a>
-<span class="sourceLineNo">634</span>    if(this.dfsCluster == null){<a name="line.634"></a>
-<span class="sourceLineNo">635</span>      LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.635"></a>
-<span class="sourceLineNo">636</span>      return;<a name="line.636"></a>
-<span class="sourceLineNo">637</span>    }<a name="line.637"></a>
-<span class="sourceLineNo">638</span>    FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.638"></a>
-<span class="sourceLineNo">639</span>    FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.639"></a>
-<span class="sourceLineNo">640</span><a name="line.640"></a>
-<span class="sourceLineNo">641</span>    // re-enable this check with dfs<a name="line.641"></a>
-<span class="sourceLineNo">642</span>    conf.unset(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE);<a name="line.642"></a>
-<span class="sourceLineNo">643</span>  }<a name="line.643"></a>
+<span class="sourceLineNo">433</span>    createSubDirAndSystemProperty(<a name="line.433"></a>
+<span class="sourceLineNo">434</span>      "hadoop.log.dir",<a name="line.434"></a>
+<span class="sourceLineNo">435</span>      testPath, "hadoop-log-dir");<a name="line.435"></a>
+<span class="sourceLineNo">436</span><a name="line.436"></a>
+<span class="sourceLineNo">437</span>    // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.437"></a>
+<span class="sourceLineNo">438</span>    //  we want our own value to ensure uniqueness on the same machine<a name="line.438"></a>
+<span class="sourceLineNo">439</span>    createSubDirAndSystemProperty(<a name="line.439"></a>
+<span class="sourceLineNo">440</span>      "hadoop.tmp.dir",<a name="line.440"></a>
+<span class="sourceLineNo">441</span>      testPath, "hadoop-tmp-dir");<a name="line.441"></a>
+<span class="sourceLineNo">442</span><a name="line.442"></a>
+<span class="sourceLineNo">443</span>    // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.443"></a>
+<span class="sourceLineNo">444</span>    createSubDir(<a name="line.444"></a>
+<span class="sourceLineNo">445</span>      "mapreduce.cluster.local.dir",<a name="line.445"></a>
+<span class="sourceLineNo">446</span>      testPath, "mapred-local-dir");<a name="line.446"></a>
+<span class="sourceLineNo">447</span><a name="line.447"></a>
+<span class="sourceLineNo">448</span>    return testPath;<a name="line.448"></a>
+<span class="sourceLineNo">449</span>  }<a name="line.449"></a>
+<span class="sourceLineNo">450</span><a name="line.450"></a>
+<span class="sourceLineNo">451</span>  private void createSubDirAndSystemProperty(<a name="line.451"></a>
+<span class="sourceLineNo">452</span>    String propertyName, Path parent, String subDirName){<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span>    String sysValue = System.getProperty(propertyName);<a name="line.454"></a>
+<span class="sourceLineNo">455</span><a name="line.455"></a>
+<span class="sourceLineNo">456</span>    if (sysValue != null) {<a name="line.456"></a>
+<span class="sourceLineNo">457</span>      // There is already a value set. So we do nothing but hope<a name="line.457"></a>
+<span class="sourceLineNo">458</span>      //  that there will be no conflicts<a name="line.458"></a>
+<span class="sourceLineNo">459</span>      LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.459"></a>
+<span class="sourceLineNo">460</span>        sysValue + " so I do NOT create it in " + parent);<a name="line.460"></a>
+<span class="sourceLineNo">461</span>      String confValue = conf.get(propertyName);<a name="line.461"></a>
+<span class="sourceLineNo">462</span>      if (confValue != null &amp;&amp; !confValue.endsWith(sysValue)){<a name="line.462"></a>
+<span class="sourceLineNo">463</span>       LOG.warn(<a name="line.463"></a>
+<span class="sourceLineNo">464</span>         propertyName + " property value differs in configuration and system: "+<a name="line.464"></a>
+<span class="sourceLineNo">465</span>         "Configuration="+confValue+" while System="+sysValue+<a name="line.465"></a>
+<span class="sourceLineNo">466</span>         " Erasing configuration value by system value."<a name="line.466"></a>
+<span class="sourceLineNo">467</span>       );<a name="line.467"></a>
+<span class="sourceLineNo">468</span>      }<a name="line.468"></a>
+<span class="sourceLineNo">469</span>      conf.set(propertyName, sysValue);<a name="line.469"></a>
+<span class="sourceLineNo">470</span>    } else {<a name="line.470"></a>
+<span class="sourceLineNo">471</span>      // Ok, it's not set, so we create it as a subdirectory<a name="line.471"></a>
+<span class="sourceLineNo">472</span>      createSubDir(propertyName, parent, subDirName);<a name="line.472"></a>
+<span class="sourceLineNo">473</span>      System.setProperty(propertyName, conf.get(propertyName));<a name="line.473"></a>
+<span class="sourceLineNo">474</span>    }<a name="line.474"></a>
+<span class="sourceLineNo">475</span>  }<a name="line.475"></a>
+<span class="sourceLineNo">476</span><a name="line.476"></a>
+<span class="sourceLineNo">477</span>  /**<a name="line.477"></a>
+<span class="sourceLineNo">478</span>   * @return Where to write test data on the test filesystem; Returns working directory<a name="line.478"></a>
+<span class="sourceLineNo">479</span>   * for the test filesystem by default<a name="line.479"></a>
+<span class="sourceLineNo">480</span>   * @see #setupDataTestDirOnTestFS()<a name="line.480"></a>
+<span class="sourceLineNo">481</span>   * @see #getTestFileSystem()<a name="line.481"></a>
+<span class="sourceLineNo">482</span>   */<a name="line.482"></a>
+<span class="sourceLineNo">483</span>  private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.483"></a>
+<span class="sourceLineNo">484</span>    FileSystem fs = getTestFileSystem();<a name="line.484"></a>
+<span class="sourceLineNo">485</span>    return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.485"></a>
+<span class="sourceLineNo">486</span>  }<a name="line.486"></a>
+<span class="sourceLineNo">487</span><a name="line.487"></a>
+<span class="sourceLineNo">488</span>  /**<a name="line.488"></a>
+<span class="sourceLineNo">489</span>   * @return META table descriptor<a name="line.489"></a>
+<span class="sourceLineNo">490</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.490"></a>
+<span class="sourceLineNo">491</span>   *             use {@link #getMetaTableDescriptorBuilder()}<a name="line.491"></a>
+<span class="sourceLineNo">492</span>   */<a name="line.492"></a>
+<span class="sourceLineNo">493</span>  @Deprecated<a name="line.493"></a>
+<span class="sourceLineNo">494</span>  public HTableDescriptor getMetaTableDescriptor() {<a name="line.494"></a>
+<span class="sourceLineNo">495</span>    return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.495"></a>
+<span class="sourceLineNo">496</span>  }<a name="line.496"></a>
+<span class="sourceLineNo">497</span><a name="line.497"></a>
+<span class="sourceLineNo">498</span>  /**<a name="line.498"></a>
+<span class="sourceLineNo">499</span>   * @return META table descriptor<a name="line.499"></a>
+<span class="sourceLineNo">500</span>   */<a name="line.500"></a>
+<span class="sourceLineNo">501</span>  public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.501"></a>
+<span class="sourceLineNo">502</span>    try {<a name="line.502"></a>
+<span class="sourceLineNo">503</span>      return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.503"></a>
+<span class="sourceLineNo">504</span>    } catch (IOException e) {<a name="line.504"></a>
+<span class="sourceLineNo">505</span>      throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.505"></a>
+<span class="sourceLineNo">506</span>    }<a name="line.506"></a>
+<span class="sourceLineNo">507</span>  }<a name="line.507"></a>
+<span class="sourceLineNo">508</span><a name="line.508"></a>
+<span class="sourceLineNo">509</span>  /**<a name="line.509"></a>
+<span class="sourceLineNo">510</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.510"></a>
+<span class="sourceLineNo">511</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.511"></a>
+<span class="sourceLineNo">512</span>   * if the test relies on it.<a name="line.512"></a>
+<span class="sourceLineNo">513</span>   * @return a unique path in the test filesystem<a name="line.513"></a>
+<span class="sourceLineNo">514</span>   */<a name="line.514"></a>
+<span class="sourceLineNo">515</span>  public Path getDataTestDirOnTestFS() throws IOException {<a name="line.515"></a>
+<span class="sourceLineNo">516</span>    if (dataTestDirOnTestFS == null) {<a name="line.516"></a>
+<span class="sourceLineNo">517</span>      setupDataTestDirOnTestFS();<a name="line.517"></a>
+<span class="sourceLineNo">518</span>    }<a name="line.518"></a>
+<span class="sourceLineNo">519</span><a name="line.519"></a>
+<span class="sourceLineNo">520</span>    return dataTestDirOnTestFS;<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>  /**<a name="line.523"></a>
+<span class="sourceLineNo">524</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.524"></a>
+<span class="sourceLineNo">525</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.525"></a>
+<span class="sourceLineNo">526</span>   * if the test relies on it.<a name="line.526"></a>
+<span class="sourceLineNo">527</span>   * @return a unique path in the test filesystem<a name="line.527"></a>
+<span class="sourceLineNo">528</span>   * @param subdirName name of the subdir to create under the base test dir<a name="line.528"></a>
+<span class="sourceLineNo">529</span>   */<a name="line.529"></a>
+<span class="sourceLineNo">530</span>  public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.530"></a>
+<span class="sourceLineNo">531</span>    return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.531"></a>
+<span class="sourceLineNo">532</span>  }<a name="line.532"></a>
+<span class="sourceLineNo">533</span><a name="line.533"></a>
+<span class="sourceLineNo">534</span>  /**<a name="line.534"></a>
+<span class="sourceLineNo">535</span>   * Sets up a path in test filesystem to be used by tests.<a name="line.535"></a>
+<span class="sourceLineNo">536</span>   * Creates a new directory if not already setup.<a name="line.536"></a>
+<span class="sourceLineNo">537</span>   */<a name="line.537"></a>
+<span class="sourceLineNo">538</span>  private void setupDataTestDirOnTestFS() throws IOException {<a name="line.538"></a>
+<span class="sourceLineNo">539</span>    if (dataTestDirOnTestFS != null) {<a name="line.539"></a>
+<span class="sourceLineNo">540</span>      LOG.warn("Data test on test fs dir already setup in "<a name="line.540"></a>
+<span class="sourceLineNo">541</span>          + dataTestDirOnTestFS.toString());<a name="line.541"></a>
+<span class="sourceLineNo">542</span>      return;<a name="line.542"></a>
+<span class="sourceLineNo">543</span>    }<a name="line.543"></a>
+<span class="sourceLineNo">544</span>    dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.544"></a>
+<span class="sourceLineNo">545</span>  }<a name="line.545"></a>
+<span class="sourceLineNo">546</span><a name="line.546"></a>
+<span class="sourceLineNo">547</span>  /**<a name="line.547"></a>
+<span class="sourceLineNo">548</span>   * Sets up a new path in test filesystem to be used by tests.<a name="line.548"></a>
+<span class="sourceLineNo">549</span>   */<a name="line.549"></a>
+<span class="sourceLineNo">550</span>  private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.550"></a>
+<span class="sourceLineNo">551</span>    //The file system can be either local, mini dfs, or if the configuration<a name="line.551"></a>
+<span class="sourceLineNo">552</span>    //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.552"></a>
+<span class="sourceLineNo">553</span>    //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.553"></a>
+<span class="sourceLineNo">554</span>    //the working directory, and create a unique sub dir there<a name="line.554"></a>
+<span class="sourceLineNo">555</span>    FileSystem fs = getTestFileSystem();<a name="line.555"></a>
+<span class="sourceLineNo">556</span>    Path newDataTestDir;<a name="line.556"></a>
+<span class="sourceLineNo">557</span>    String randomStr = getRandomUUID().toString();<a name="line.557"></a>
+<span class="sourceLineNo">558</span>    if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.558"></a>
+<span class="sourceLineNo">559</span>      newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.559"></a>
+<span class="sourceLineNo">560</span>      File dataTestDir = new File(newDataTestDir.toString());<a name="line.560"></a>
+<span class="sourceLineNo">561</span>      if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.561"></a>
+<span class="sourceLineNo">562</span>    } else {<a name="line.562"></a>
+<span class="sourceLineNo">563</span>      Path base = getBaseTestDirOnTestFS();<a name="line.563"></a>
+<span class="sourceLineNo">564</span>      newDataTestDir = new Path(base, randomStr);<a name="line.564"></a>
+<span class="sourceLineNo">565</span>      if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.565"></a>
+<span class="sourceLineNo">566</span>    }<a name="line.566"></a>
+<span class="sourceLineNo">567</span>    return newDataTestDir;<a name="line.567"></a>
+<span class="sourceLineNo">568</span>  }<a name="line.568"></a>
+<span class="sourceLineNo">569</span><a name="line.569"></a>
+<span class="sourceLineNo">570</span>  /**<a name="line.570"></a>
+<span class="sourceLineNo">571</span>   * Cleans the test data directory on the test filesystem.<a name="line.571"></a>
+<span class="sourceLineNo">572</span>   * @return True if we removed the test dirs<a name="line.572"></a>
+<span class="sourceLineNo">573</span>   * @throws IOException<a name="line.573"></a>
+<span class="sourceLineNo">574</span>   */<a name="line.574"></a>
+<span class="sourceLineNo">575</span>  public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.575"></a>
+<span class="sourceLineNo">576</span>    boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.576"></a>
+<span class="sourceLineNo">577</span>    if (ret)<a name="line.577"></a>
+<span class="sourceLineNo">578</span>      dataTestDirOnTestFS = null;<a name="line.578"></a>
+<span class="sourceLineNo">579</span>    return ret;<a name="line.579"></a>
+<span class="sourceLineNo">580</span>  }<a name="line.580"></a>
+<span class="sourceLineNo">581</span><a name="line.581"></a>
+<span class="sourceLineNo">582</span>  /**<a name="line.582"></a>
+<span class="sourceLineNo">583</span>   * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.583"></a>
+<span class="sourceLineNo">584</span>   * @return True if we removed child<a name="line.584"></a>
+<span class="sourceLineNo">585</span>   * @throws IOException<a name="line.585"></a>
+<span class="sourceLineNo">586</span>   */<a name="line.586"></a>
+<span class="sourceLineNo">587</span>  public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.587"></a>
+<span class="sourceLineNo">588</span>    Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.588"></a>
+<span class="sourceLineNo">589</span>    return getTestFileSystem().delete(cpath, true);<a name="line.589"></a>
+<span class="sourceLineNo">590</span>  }<a name="line.590"></a>
+<span class="sourceLineNo">591</span><a name="line.591"></a>
+<span class="sourceLineNo">592</span>  /**<a name="line.592"></a>
+<span class="sourceLineNo">593</span>   * Start a minidfscluster.<a name="line.593"></a>
+<span class="sourceLineNo">594</span>   * @param servers How many DNs to start.<a name="line.594"></a>
+<span class="sourceLineNo">595</span>   * @throws Exception<a name="line.595"></a>
+<span class="sourceLineNo">596</span>   * @see #shutdownMiniDFSCluster()<a name="line.596"></a>
+<span class="sourceLineNo">597</span>   * @return The mini dfs cluster created.<a name="line.597"></a>
+<span class="sourceLineNo">598</span>   */<a name="line.598"></a>
+<span class="sourceLineNo">599</span>  public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.599"></a>
+<span class="sourceLineNo">600</span>    return startMiniDFSCluster(servers, null);<a name="line.600"></a>
+<span class="sourceLineNo">601</span>  }<a name="line.601"></a>
+<span class="sourceLineNo">602</span><a name="line.602"></a>
+<span class="sourceLineNo">603</span>  /**<a name="line.603"></a>
+<span class="sourceLineNo">604</span>   * Start a minidfscluster.<a name="line.604"></a>
+<span class="sourceLineNo">605</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.605"></a>
+<span class="sourceLineNo">606</span>   * like HDFS block location verification.<a name="line.606"></a>
+<span class="sourceLineNo">607</span>   * If you start MiniDFSCluster without host names, all instances of the<a name="line.607"></a>
+<span class="sourceLineNo">608</span>   * datanodes will have the same host name.<a name="line.608"></a>
+<span class="sourceLineNo">609</span>   * @param hosts hostnames DNs to run on.<a name="line.609"></a>
+<span class="sourceLineNo">610</span>   * @throws Exception<a name="line.610"></a>
+<span class="sourceLineNo">611</span>   * @see #shutdownMiniDFSCluster()<a name="line.611"></a>
+<span class="sourceLineNo">612</span>   * @return The mini dfs cluster created.<a name="line.612"></a>
+<span class="sourceLineNo">613</span>   */<a name="line.613"></a>
+<span class="sourceLineNo">614</span>  public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.614"></a>
+<span class="sourceLineNo">615</span>  throws Exception {<a name="line.615"></a>
+<span class="sourceLineNo">616</span>    if ( hosts != null &amp;&amp; hosts.length != 0) {<a name="line.616"></a>
+<span class="sourceLineNo">617</span>      return startMiniDFSCluster(hosts.length, hosts);<a name="line.617"></a>
+<span class="sourceLineNo">618</span>    } else {<a name="line.618"></a>
+<span class="sourceLineNo">619</span>      return startMiniDFSCluster(1, null);<a name="line.619"></a>
+<span class="sourceLineNo">620</span>    }<a name="line.620"></a>
+<span class="sourceLineNo">621</span>  }<a name="line.621"></a>
+<span class="sourceLineNo">622</span><a name="line.622"></a>
+<span class="sourceLineNo">623</span>  /**<a name="line.623"></a>
+<span class="sourceLineNo">624</span>   * Start a minidfscluster.<a name="line.624"></a>
+<span class="sourceLineNo">625</span>   * Can only create one.<a name="line.625"></a>
+<span class="sourceLineNo">626</span>   * @param servers How many DNs to start.<a name="line.626"></a>
+<span class="sourceLineNo">627</span>   * @param hosts hostnames DNs to run on.<a name="line.627"></a>
+<span class="sourceLineNo">628</span>   * @throws Exception<a name="line.628"></a>
+<span class="sourceLineNo">629</span>   * @see #shutdownMiniDFSCluster()<a name="line.629"></a>
+<span class="sourceLineNo">630</span>   * @return The mini dfs cluster created.<a name="line.630"></a>
+<span class="sourceLineNo">631</span>   */<a name="line.631"></a>
+<span class="sourceLineNo">632</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.632"></a>
+<span class="sourceLineNo">633</span>  throws Exception {<a name="line.633"></a>
+<span class="sourceLineNo">634</span>    return startMiniDFSCluster(servers, null, hosts);<a name="line.634"></a>
+<span class="sourceLineNo">635</span>  }<a name="line.635"></a>
+<span class="sourceLineNo">636</span><a name="line.636"></a>
+<span class="sourceLineNo">637</span>  private void setFs() throws IOException {<a name="line.637"></a>
+<span class="sourceLineNo">638</span>    if(this.dfsCluster == null){<a name="line.638"></a>
+<span class="sourceLineNo">639</span>      LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.639"></a>
+<span class="sourceLineNo">640</span>      return;<a name="line.640"></a>
+<span class="sourceLineNo">641</span>    }<a name="line.641"></a>
+<span class="sourceLineNo">642</span>    FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.642"></a>
+<span class="sourceLineNo">643</span>    FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.643"></a>
 <span class="sourceLineNo">644</span><a name="line.644"></a>
-<span class="sourceLineNo">645</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final  String racks[], String hosts[])<a name="line.645"></a>
-<span class="sourceLineNo">646</span>      throws Exception {<a name="line.646"></a>
-<span class="sourceLineNo">647</span>    createDirsAndSetProperties();<a name="line.647"></a>
-<span class="sourceLineNo">648</span>    EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);<a name="line.648"></a>
-<span class="sourceLineNo">649</span><a name="line.649"></a>
-<span class="sourceLineNo">650</span>    // Error level to skip some warnings specific to the minicluster. See HBASE-4709<a name="line.650"></a>
-<span class="sourceLineNo">651</span>    org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).<a name="line.651"></a>
-<span class="sourceLineNo">652</span>        setLevel(org.apache.log4j.Level.ERROR);<a name="line.652"></a>
-<span class="sourceLineNo">653</span>    org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.impl.MetricsSystemImpl.class).<a name="line.653"></a>
-<span class="sourceLineNo">654</span>        setLevel(org.apache.log4j.Level.ERROR);<a name="line.654"></a>
-<span class="sourceLineNo">655</span><a name="line.655"></a>
-<span class="sourceLineNo">656</span>    TraceUtil.initTracer(conf);<a name="line.656"></a>
-<span class="sourceLineNo">657</span><a name="line.657"></a>
-<span class="sourceLineNo">658</span>    this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,<a name="line.658"></a>
-<span class="sourceLineNo">659</span>        true, null, racks, hosts, null);<a name="line.659"></a>
-<span class="sourceLineNo">660</span><a name="line.660"></a>
-<span class="sourceLineNo">661</span>    // Set this just-started cluster as our filesystem.<a name="line.661"></a>
-<span class="sourceLineNo">662</span>    setFs();<a name="line.662"></a>
-<span class="sourceLineNo">663</span><a name="line.663"></a>
-<span class="sourceLineNo">664</span>    // Wait for the cluster to be totally up<a name="line.664"></a>
-<span class="sourceLineNo">665</span>    this.dfsCluster.waitClusterUp();<a name="line.665"></a>
-<span class="sourceLineNo">666</span><a name="line.666"></a>
-<span class="sourceLineNo">667</span>    //reset the test directory for test file system<a name="line.667"></a>
-<span class="sourceLineNo">668</span>    dataTestDirOnTestFS = null;<a name="line.668"></a>
-<span class="sourceLineNo">669</span>    String dataTestDir = getDataTestDir().toString();<a name="line.669"></a>
-<span class="sourceLineNo">670</span>    conf.set(HConstants.HBASE_DIR, dataTestDir);<a name="line.670"></a>
-<span class="sourceLineNo">671</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.671"></a>
-<span class="sourceLineNo">672</span><a name="line.672"></a>
-<span class="sourceLineNo">673</span>    return this.dfsCluster;<a name="line.673"></a>
-<span class="sourceLineNo">674</span>  }<a name="line.674"></a>
-<span class="sourceLineNo">675</span><a name="line.675"></a>
-<span class="sourceLineNo">676</span>  public MiniDFSCluster startMiniDFSClusterForTestWAL(int namenodePort) throws IOException {<a name="line.676"></a>
-<span class="sourceLineNo">677</span>    createDirsAndSetProperties();<a name="line.677"></a>
-<span class="sourceLineNo">678</span>    dfsCluster = new MiniDFSCluster(namenodePort, conf, 5, false, true, true, null,<a name="line.678"></a>
-<span class="sourceLineNo">679</span>        null, null, null);<a name="line.679"></a>
-<span class="sourceLineNo">680</span>    return dfsCluster;<a name="line.680"></a>
-<span class="sourceLineNo">681</span>  }<a name="line.681"></a>
-<span class="sourceLineNo">682</span><a name="line.682"></a>
-<span class="sourceLineNo">683</span>  /** This is used before starting HDFS and map-reduce mini-clusters */<a name="line.683"></a>
-<span class="sourceLineNo">684</span>  private void createDirsAndSetProperties() throws IOException {<a name="line.684"></a>
-<span class="sourceLineNo">685</span>    setupClusterTestDir();<a name="line.685"></a>
-<span class="sourceLineNo">686</span>    conf.set(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.686"></a>
-<span class="sourceLineNo">687</span>    System.setProperty(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.687"></a>
-<span class="sourceLineNo">688</span>    createDirAndSetProperty("cache_data", "test.cache.data");<a name="line.688"></a>
-<span class="sourceLineNo">689</span>    createDirAndSetProperty("hadoop_tmp", "hadoop.tmp.dir");<a name="line.689"></a>
-<span class="sourceLineNo">690</span>    hadoopLogDir = createDirAndSetProperty("hadoop_logs", "hadoop.log.dir");<a name="line.690"></a>
-<span class="sourceLineNo">691</span>    createDirAndSetProperty("mapred_local", "mapreduce.cluster.local.dir");<a name="line.691"></a>
-<span class="sourceLineNo">692</span>    createDirAndSetProperty("mapred_temp", "mapreduce.cluster.temp.dir");<a name="line.692"></a>
-<span class="sourceLineNo">693</span>    enableShortCircuit();<a name="line.693"></a>
-<span class="sourceLineNo">694</span><a name="line.694"></a>
-<span class="sourceLineNo">695</span>    Path root = getDataTestDirOnTestFS("hadoop");<a name="line.695"></a>
-<span class="sourceLineNo">696</span>    conf.set(MapreduceTestingShim.getMROutputDirProp(),<a name="line.696"></a>
-<span class="sourceLineNo">697</span>      new Path(root, "mapred-output-dir").toString());<a name="line.697"></a>
-<span class="sourceLineNo">698</span>    conf.set("mapreduce.jobtracker.system.dir", new Path(root, "mapred-system-dir").toString());<a name="line.698"></a>
-<span class="sourceLineNo">699</span>    conf.set("mapreduce.jobtracker.staging.root.dir",<a name="line.699"></a>
-<span class="sourceLineNo">700</span>      new Path(root, "mapreduce-jobtracker-staging-root-dir").toString());<a name="line.700"></a>
-<span class="sourceLineNo">701</span>    conf.set("mapreduce.job.working.dir", new Path(root, "mapred-working-dir").toString());<a name="line.701"></a>
-<span class="sourceLineNo">702</span>    conf.set("yarn.app.mapreduce.am.staging-dir",<a name="line.702"></a>
-<span class="sourceLineNo">703</span>      new Path(root, "mapreduce-am-staging-root-dir").toString());<a name="line.703"></a>
-<span class="sourceLineNo">704</span>  }<a name="line.704"></a>
-<span class="sourceLineNo">705</span><a name="line.705"></a>
-<span class="sourceLineNo">706</span><a name="line.706"></a>
-<span class="sourceLineNo">707</span>  /**<a name="line.707"></a>
-<span class="sourceLineNo">708</span>   *  Get the HBase setting for dfs.client.read.shortcircuit from the conf or a system property.<a name="line.708"></a>
-<span class="sourceLineNo">709</span>   *  This allows to specify this parameter on the command line.<a name="line.709"></a>
-<span class="sourceLineNo">710</span>   *   If not set, default is true.<a name="line.710"></a>
-<span class="sourceLineNo">711</span>   */<a name="line.711"></a>
-<span class="sourceLineNo">712</span>  public boolean isReadShortCircuitOn(){<a name="line.712"></a>
-<span class="sourceLineNo">713</span>    final String propName = "hbase.tests.use.shortcircuit.reads";<a name="line.713"></a>
-<span class="sourceLineNo">714</span>    String readOnProp = System.getProperty(propName);<a name="line.714"></a>
-<span class="sourceLineNo">715</span>    if (readOnProp != null){<a name="line.715"></a>
-<span class="sourceLineNo">716</span>      return  Boolean.parseBoolean(readOnProp);<a name="line.716"></a>
-<span class="sourceLineNo">717</span>    } else {<a name="line.717"></a>
-<span class="sourceLineNo">718</span>      return conf.getBoolean(propName, false);<a name="line.718"></a>
-<span class="sourceLineNo">719</span>    }<a name="line.719"></a>
-<span class="sourceLineNo">720</span>  }<a name="line.720"></a>
-<span class="sourceLineNo">721</span><a name="line.721"></a>
-<span class="sourceLineNo">722</span>  /** Enable the short circuit read, unless configured differently.<a name="line.722"></a>
-<span class="sourceLineNo">723</span>   * Set both HBase and HDFS settings, including skipping the hdfs checksum checks.<a name="line.723"></a>
-<span class="sourceLineNo">724</span>   */<a name="line.724"></a>
-<span class="sourceLineNo">725</span>  private void enableShortCircuit() {<a name="line.725"></a>
-<span class="sourceLineNo">726</span>    if (isReadShortCircuitOn()) {<a name="line.726"></a>
-<span class="sourceLineNo">727</span>      String curUser = System.getProperty("user.name");<a name="line.727"></a>
-<span class="sourceLineNo">728</span>      LOG.info("read short circuit is ON for user " + curUser);<a name="line.728"></a>
-<span class="sourceLineNo">729</span>      // read short circuit, for hdfs<a name="line.729"></a>
-<span class="sourceLineNo">730</span>      conf.set("dfs.block.local-path-access.user", curUser);<a name="line.730"></a>
-<span class="sourceLineNo">731</span>      // read short circuit, for hbase<a name="line.731"></a>
-<span class="sourceLineNo">732</span>      conf.setBoolean("dfs.client.read.shortcircuit", true);<a name="line.732"></a>
-<span class="sourceLineNo">733</span>      // Skip checking checksum, for the hdfs client and the datanode<a name="line.733"></a>
-<span class="sourceLineNo">734</span>      conf.setBoolean("dfs.client.read.shortcircuit.skip.checksum", true);<a name="line.734"></a>
-<span class="sourceLineNo">735</span>    } else {<a name="line.735"></a>
-<span class="sourceLineNo">736</span>      LOG.info("read short circuit is OFF");<a name="line.736"></a>
-<span class="sourceLineNo">737</span>    }<a name="line.737"></a>
-<span class="sourceLineNo">738</span>  }<a name="line.738"></a>
-<span class="sourceLineNo">739</span><a name="line.739"></a>
-<span class="sourceLineNo">740</span>  private String createDirAndSetProperty(final String relPath, String property) {<a name="line.740"></a>
-<span class="sourceLineNo">741</span>    String path = getDataTestDir(relPath).toString();<a name="line.741"></a>
-<span class="sourceLineNo">742</span>    System.setProperty(property, path);<a name="line.742"></a>
-<span class="sourceLineNo">743</span>    conf.set(property, path);<a name="line.743"></a>
-<span class="sourceLineNo">744</span>    new File(path).mkdirs();<a name="line.744"></a>
-<span class="sourceLineNo">745</span>    LOG.info("Setting " + property + " to " + path + " in system properties and HBase conf");<a name="line.745"></a>
-<span class="sourceLineNo">746</span>    return path;<a name="line.746"></a>
-<span class="sourceLineNo">747</span>  }<a name="line.747"></a>
-<span class="sourceLineNo">748</span><a name="line.748"></a>
-<span class="sourceLineNo">749</span>  /**<a name="line.749"></a>
-<span class="sourceLineNo">750</span>   * Shuts down instance created by call to {@link #startMiniDFSCluster(int)}<a name="line.750"></a>
-<span class="sourceLineNo">751</span>   * or does nothing.<a name="line.751"></a>
-<span class="sourceLineNo">752</span>   * @throws IOException<a name="line.752"></a>
-<span class="sourceLineNo">753</span>   */<a name="line.753"></a>
-<span class="sourceLineNo">754</span>  public void shutdownMiniDFSCluster() throws IOException {<a name="line.754"></a>
-<span class="sourceLineNo">755</span>    if (this.dfsCluster != null) {<a name="line.755"></a>
-<span class="sourceLineNo">756</span>      // The below throws an exception per dn, AsynchronousCloseException.<a name="line.756"></a>
-<span class="sourceLineNo">757</span>      this.dfsCluster.shutdown();<a name="line.757"></a>
-<span class="sourceLineNo">758</span>      dfsCluster = null;<a name="line.758"></a>
-<span class="sourceLineNo">759</span>      dataTestDirOnTestFS = null;<a name="line.759"></a>
-<span class="sourceLineNo">760</span>      FSUtils.setFsDefault(this.conf, new Path("file:///"));<a name="line.760"></a>
-<span class="sourceLineNo">761</span>    }<a name="line.761"></a>
-<span class="sourceLineNo">762</span>  }<a name="line.762"></a>
-<span class="sourceLineNo">763</span><a name="line.763"></a>
-<span class="sourceLineNo">764</span><a name="line.764"></a>
-<span class="sourceLineNo">765</span>  /**<a name="line.765"></a>
-<span class="sourceLineNo">766</span>   * Start up a minicluster of hbase, dfs, and zookeeper.<a name="line.766"></a>
-<span class="sourceLineNo">767</span>   * @throws Exception<a name="line.767"></a>
-<span class="sourceLineNo">768</span>   * @return Mini hbase cluster instance created.<a name="line.768"></a>
-<span class="sourceLineNo">769</span>   * @see #shutdownMiniDFSCluster()<a name="line.769"></a>
-<span class="sourceLineNo">770</span>   */<a name="line.770"></a>
-<span class="sourceLineNo">771</span>  public MiniHBaseCluster startMiniCluster() throws Exception {<a name="line.771"></a>
-<span class="sourceLineNo">772</span>    return startMiniCluster(1, 1);<a name="line.772"></a>
-<span class="sourceLineNo">773</span>  }<a name="line.773"></a>
-<span class="sourceLineNo">774</span><a name="line.774"></a>
-<span class="sourceLineNo">775</span>  /**<a name="line.775"></a>
-<span class="sourceLineNo">776</span>   * Start up a minicluster of hbase, dfs, and zookeeper where WAL's walDir is created separately.<a name="line.776"></a>
-<span class="sourceLineNo">777</span>   * @throws Exception<a name="line.777"></a>
-<span class="sourceLineNo">778</span>   * @return Mini hbase cluster instance created.<a name="line.778"></a>
-<span class="sourceLineNo">779</span>   * @see #shutdownMiniDFSCluster()<a name="line.779"></a>
-<span class="sourceLineNo">780</span>   */<a name="line.780"></a>
-<span class="sourceLineNo">781</span>  public MiniHBaseCluster startMiniCluster(boolean withWALDir) throws Exception {<a name="line.781"></a>
-<span class="sourceLineNo">782</span>    return startMiniCluster(1, 1, 1, null, null, null, false, withWALDir);<a name="line.782"></a>
-<span class="sourceLineNo">783</span>  }<a name="line.783"></a>
-<span class="sourceLineNo">784</span><a name="line.784"></a>
-<span class="sourceLineNo">785</span>  /**<a name="line.785"></a>
-<span class="sourceLineNo">786</span>   * Start up a minicluster of hbase, dfs, and zookeeper.<a name="line.786"></a>
-<span class="sourceLineNo">787</span>   * Set the &lt;code&gt;create&lt;/code&gt; flag to create root or data directory path or not<a name="line.787"></a>
-<span class="sourceLineNo">788</span>   * (will overwrite if dir already exists)<a name="line.788"></a>
-<span class="sourceLineNo">789</span>   * @throws Exception<a name="line.789"></a>
-<span class="sourceLineNo">790</span>   * @return Mini hbase cluster instance created.<a name="line.790"></a>
-<span class="sourceLineNo">791</span>   * @see #shutdownMiniDFSCluster()<a name="line.791"></a>
-<span class="sourceLineNo">792</span>   */<a name="line.792"></a>
-<span class="sourceLineNo">793</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves, boolean create)<a name="line.793"></a>
-<span class="sourceLineNo">794</span>  throws Exception {<a name="line.794"></a>
-<span class="sourceLineNo">795</span>    return startMiniCluster(1, numSlaves, create);<a name="line.795"></a>
-<span class="sourceLineNo">796</span>  }<a name="line.796"></a>
-<span class="sourceLineNo">797</span><a name="line.797"></a>
-<span class="sourceLineNo">798</span>  /**<a name="line.798"></a>
-<span class="sourceLineNo">799</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.799"></a>
-<span class="sourceLineNo">800</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.800"></a>
-<span class="sourceLineNo">801</span>   * subdirectory in a directory under System property test.build.data.<a name="line.801"></a>
-<span class="sourceLineNo">802</span>   * Directory is cleaned up on exit.<a name="line.802"></a>
-<span class="sourceLineNo">803</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.803"></a>
-<span class="sourceLineNo">804</span>   * datanodes and regionservers.  If numSlaves is &gt; 1, then make sure<a name="line.804"></a>
-<span class="sourceLineNo">805</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.805"></a>
-<span class="sourceLineNo">806</span>   * bind errors.<a name="line.806"></a>
-<span class="sourceLineNo">807</span>   * @throws Exception<a name="line.807"></a>
-<span class="sourceLineNo">808</span>   * @see #shutdownMiniCluster()<a name="line.808"></a>
-<span class="sourceLineNo">809</span>   * @return Mini hbase cluster instance created.<a name="line.809"></a>
-<span class="sourceLineNo">810</span>   */<a name="line.810"></a>
-<span class="sourceLineNo">811</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves)<a name="line.811"></a>
-<span class="sourceLineNo">812</span>  throws Exception {<a name="line.812"></a>
-<span class="sourceLineNo">813</span>    return startMiniCluster(1, numSlaves, false);<a name="line.813"></a>
-<span class="sourceLineNo">814</span>  }<a name="line.814"></a>
-<span class="sourceLineNo">815</span><a name="line.815"></a>
-<span class="sourceLineNo">816</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves, boolean create, boolean withWALDir)<a name="line.816"></a>
-<span class="sourceLineNo">817</span>          throws Exception {<a name="line.817"></a>
-<span class="sourceLineNo">818</span>    return startMiniCluster(1, numSlaves, numSlaves, null, null, null, create, withWALDir);<a name="line.818"></a>
-<span class="sourceLineNo">819</span>  }<a name="line.819"></a>
-<span class="sourceLineNo">820</span><a name="line.820"></a>
-<span class="sourceLineNo">821</span>  /**<a name="line.821"></a>
-<span class="sourceLineNo">822</span>   * Start minicluster. Whether to create a new root or data dir path even if such a path<a name="line.822"></a>
-<span class="sourceLineNo">823</span>   * has been created earlier is decided based on flag &lt;code&gt;create&lt;/code&gt;<a name="line.823"></a>
-<span class="sourceLineNo">824</span>   * @throws Exception<a name="line.824"></a>
-<span class="sourceLineNo">825</span>   * @see #shutdownMiniCluster()<a name="line.825"></a>
-<span class="sourceLineNo">826</span>   * @return Mini hbase cluster instance created.<a name="line.826"></a>
-<span class="sourceLineNo">827</span>   */<a name="line.827"></a>
-<span class="sourceLineNo">828</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.828"></a>
-<span class="sourceLineNo">829</span>      final int numSlaves, boolean create)<a name="line.829"></a>
-<span class="sourceLineNo">830</span>    throws Exception {<a name="line.830"></a>
-<span class="sourceLineNo">831</span>      return startMiniCluster(numMasters, numSlaves, null, create);<a name="line.831"></a>
-<span class="sourceLineNo">832</span>  }<a name="line.832"></a>
-<span class="sourceLineNo">833</span><a name="line.833"></a>
-<span class="sourceLineNo">834</span>  /**<a name="line.834"></a>
-<span class="sourceLineNo">835</span>   * start minicluster<a name="line.835"></a>
-<span class="sourceLineNo">836</span>   * @throws Exception<a name="line.836"></a>
-<span class="sourceLineNo">837</span>   * @see #shutdownMiniCluster()<a name="line.837"></a>
-<span class="sourceLineNo">838</span>   * @return Mini hbase cluster instance created.<a name="line.838"></a>
-<span class="sourceLineNo">839</span>   */<a name="line.839"></a>
-<span class="sourceLineNo">840</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.840"></a>
-<span class="sourceLineNo">841</span>    final int numSlaves)<a name="line.841"></a>
-<span class="sourceLineNo">842</span>  throws Exception {<a name="line.842"></a>
-<span class="sourceLineNo">843</span>    return startMiniCluster(numMasters, numSlaves, null, false);<a name="line.843"></a>
-<span class="sourceLineNo">844</span>  }<a name="line.844"></a>
-<span class="sourceLineNo">845</span><a name="line.845"></a>
-<span class="sourceLineNo">846</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.846"></a>
-<span class="sourceLineNo">847</span>      final int numSlaves, final String[] dataNodeHosts, boolean create)<a name="line.847"></a>
-<span class="sourceLineNo">848</span>      throws Exception {<a name="line.848"></a>
-<span class="sourceLineNo">849</span>    return startMiniCluster(numMasters, numSlaves, numSlaves, dataNodeHosts,<a name="line.849"></a>
-<span class="sourceLineNo">850</span>        null, null, create, false);<a name="line.850"></a>
-<span class="sourceLineNo">851</span>  }<a name="line.851"></a>
-<span class="sourceLineNo">852</span><a name="line.852"></a>
-<span class="sourceLineNo">853</span>  /**<a name="line.853"></a>
-<span class="sourceLineNo">854</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.854"></a>
-<span class="sourceLineNo">855</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.855"></a>
-<span class="sourceLineNo">856</span>   * subdirectory in a directory under System property test.build.data.<a name="line.856"></a>
-<span class="sourceLineNo">857</span>   * Directory is cleaned up on exit.<a name="line.857"></a>
-<span class="sourceLineNo">858</span>   * @param numMasters Number of masters to start up.  We'll start this many<a name="line.858"></a>
-<span class="sourceLineNo">859</span>   * hbase masters.  If numMasters &gt; 1, you can find the active/primary master<a name="line.859"></a>
-<span class="sourceLineNo">860</span>   * with {@link MiniHBaseCluster#getMaster()}.<a name="line.860"></a>
-<span class="sourceLineNo">861</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.861"></a>
-<span class="sourceLineNo">862</span>   * regionservers. If dataNodeHosts == null, this also indicates the number of<a name="line.862"></a>
-<span class="sourceLineNo">863</span>   * datanodes to start. If dataNodeHosts != null, the number of datanodes is<a name="line.863"></a>
-<span class="sourceLineNo">864</span>   * based on dataNodeHosts.length.<a name="line.864"></a>
-<span class="sourceLineNo">865</span>   * If numSlaves is &gt; 1, then make sure<a name="line.865"></a>
-<span class="sourceLineNo">866</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.866"></a>
-<span class="sourceLineNo">867</span>   * bind errors.<a name="line.867"></a>
-<span class="sourceLineNo">868</span>   * @param dataNodeHosts hostnames DNs to run on.<a name="line.868"></a>
-<span class="sourceLineNo">869</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.869"></a>
-<span class="sourceLineNo">870</span>   * like HDFS block location verification.<a name="line.870"></a>
-<span class="sourceLineNo">871</span>   * If you start MiniDFSCluster without host names,<a name="line.871"></a>
-<span class="sourceLineNo">872</span>   * all instances of the datanodes will have the same host name.<a name="line.872"></a>
-<span class="sourceLineNo">873</span>   * @throws Exception<a name="line.873"></a>
-<span class="sourceLineNo">874</span>   * @see #shutdownMiniCluster()<a name="line.874"></a>
-<span class="sourceLineNo">875</span>   * @return Mini hbase cluster instance created.<a name="line.875"></a>
-<span class="sourceLineNo">876</span>   */<a name="line.876"></a>
-<span class="sourceLineNo">877</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.877"></a>
-<span class="sourceLineNo">878</span>      final int numSlaves, final String[] dataNodeHosts) throws Exception {<a name="line.878"></a>
-<span class="sourceLineNo">879</span>    return startMiniCluster(numMasters, numSlaves, numSlaves, dataNodeHosts,<a name="line.879"></a>
-<span class="sourceLineNo">880</span>        null, null);<a name="line.880"></a>
-<span class="sourceLineNo">881</span>  }<a name="line.881"></a>
-<span class="sourceLineNo">882</span><a name="line.882"></a>
-<span class="sourceLineNo">883</span>  /**<a name="line.883"></a>
-<span class="sourceLineNo">884</span>   * Same as {@link #startMiniCluster(int, int)}, but with custom number of datanodes.<a name="line.884"></a>
-<span class="sourceLineNo">885</span>   * @param numDataNodes Number of data nodes.<a name="line.885"></a>
-<span class="sourceLineNo">886</span>   */<a name="line.886"></a>
-<span class="sourceLineNo">887</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.887"></a>
-<span class="sourceLineNo">888</span>      final int numSlaves, final int numDataNodes) throws Exception {<a name="line.888"></a>
-<span class="sourceLineNo">889</span>    return startMiniCluster(numMasters, numSlaves, numDataNodes, null, null, null);<a name="line.889"></a>
-<span class="sourceLineNo">890</span>  }<a name="line.890"></a>
-<span class="sourceLineNo">891</span><a name="line.891"></a>
-<span class="sourceLineNo">892</span>  /**<a name="line.892"></a>
-<span class="sourceLineNo">893</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.893"></a>
-<span class="sourceLineNo">894</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.894"></a>
-<span class="sourceLineNo">895</span>   * subdirectory in a directory under System property test.build.data.<a name="line.895"></a>
-<span class="sourceLineNo">896</span>   * Directory is cleaned up on exit.<a name="line.896"></a>
-<span class="sourceLineNo">897</span>   * @param numMasters Number of masters to start up.  We'll start this many<a name="line.897"></a>
-<span class="sourceLineNo">898</span>   * hbase masters.  If numMasters &gt; 1, you can find the active/primary master<a name="line.898"></a>
-<span class="sourceLineNo">899</span>   * with {@link MiniHBaseCluster#getMaster()}.<a name="line.899"></a>
-<span class="sourceLineNo">900</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.900"></a>
-<span class="sourceLineNo">901</span>   * regionservers. If dataNodeHosts == null, this also indicates the number of<a name="line.901"></a>
-<span class="sourceLineNo">902</span>   * datanodes to start. If dataNodeHosts != null, the number of datanodes is<a name="line.902"></a>
-<span class="sourceLineNo">903</span>   * based on dataNodeHosts.length.<a name="line.903"></a>
-<span class="sourceLineNo">904</span>   * If numSlaves is &gt; 1, then make sure<a name="line.904"></a>
-<span class="sourceLineNo">905</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.905"></a>
-<span class="sourceLineNo">906</span>   * bind errors.<a name="line.906"></a>
-<span class="sourceLineNo">907</span>   * @param dataNodeHosts hostnames DNs to run on.<a name="line.907"></a>
-<span class="sourceLineNo">908</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.908"></a>
-<span class="sourceLineNo">909</span>   * like HDFS block location verification.<a name="line.909"></a>
-<span class="sourceLineNo">910</span>   * If you start MiniDFSCluster without host names,<a name="line.910"></a>
-<span class="sourceLineNo">911</span>   * all instances of the datanodes will have the same host name.<a name="line.911"></a>
-<span class="sourceLineNo">912</span>   * @param masterClass The class to use as HMaster, or null for default<a name="line.912"></a>
-<span class="sourceLineNo">913</span>   * @param regionserverClass The class to use as HRegionServer, or null for<a name="line.913"></a>
-<span class="sourceLineNo">914</span>   * default<a name="line.914"></a>
-<span class="sourceLineNo">915</span>   * @throws Exception<a name="line.915"></a>
-<span class="sourceLineNo">916</span>   * @see #shutdownMiniCluster()<a name="line.916"></a>
-<span class="sourceLineNo">917</span>   * @return Mini hbase cluster instance created.<a name="line.917"></a>
-<span class="sourceLineNo">918</span>   */<a name="line.918"></a>
-<span class="sourceLineNo">919</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.919"></a>
-<span class="sourceLineNo">920</span>      final int numSlaves, final String[] dataNodeHosts, Class&lt;? extends HMaster&gt; masterClass,<a name="line.920"></a>
-<span class="sourceLineNo">921</span>      Class&lt;? extends MiniHBaseCluster.MiniHBaseClusterRegionServer&gt; regionserverClass)<a name="line.921"></a>
-<span class="sourceLineNo">922</span>          throws Exception {<a name="line.922"></a>
-<span class="sourceLineNo">923</span>    return startMiniCluster(<a name="line.923"></a>
-<span class="sourceLineNo">924</span>        numMasters, numSlaves, numSlaves, dataNodeHosts, masterClass, regionserverClass);<a name="line.924"></a>
-<span class="sourceLineNo">925</span>  }<a name="line.925"></a>
-<span clas

<TRUNCATED>

[04/10] hbase-site git commit: Published site at 03e596c6694a21768c51a3c52e1a032f51fd637c.

Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/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 b9dc38a..a93e27f 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html
@@ -341,3814 +341,3818 @@
 <span class="sourceLineNo">333</span>    ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.333"></a>
 <span class="sourceLineNo">334</span><a name="line.334"></a>
 <span class="sourceLineNo">335</span>    // Save this for when setting default file:// breaks things<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.336"></a>
-<span class="sourceLineNo">337</span><a name="line.337"></a>
-<span class="sourceLineNo">338</span>    // Every cluster is a local cluster until we start DFS<a name="line.338"></a>
-<span class="sourceLineNo">339</span>    // Note that conf could be null, but this.conf will not be<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    String dataTestDir = getDataTestDir().toString();<a name="line.340"></a>
-<span class="sourceLineNo">341</span>    this.conf.set("fs.defaultFS","file:///");<a name="line.341"></a>
-<span class="sourceLineNo">342</span>    this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.342"></a>
-<span class="sourceLineNo">343</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    // If the value for random ports isn't set set it to true, thus making<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    // tests opt-out for random port assignment<a name="line.346"></a>
-<span class="sourceLineNo">347</span>    this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.347"></a>
-<span class="sourceLineNo">348</span>        this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.348"></a>
-<span class="sourceLineNo">349</span>  }<a name="line.349"></a>
-<span class="sourceLineNo">350</span><a name="line.350"></a>
-<span class="sourceLineNo">351</span>  /**<a name="line.351"></a>
-<span class="sourceLineNo">352</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.352"></a>
-<span class="sourceLineNo">353</span>   * @return a normal HBaseTestingUtility<a name="line.353"></a>
-<span class="sourceLineNo">354</span>   */<a name="line.354"></a>
-<span class="sourceLineNo">355</span>  @Deprecated<a name="line.355"></a>
-<span class="sourceLineNo">356</span>  public static HBaseTestingUtility createLocalHTU() {<a name="line.356"></a>
-<span class="sourceLineNo">357</span>    return new HBaseTestingUtility();<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>  /**<a name="line.360"></a>
-<span class="sourceLineNo">361</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.361"></a>
-<span class="sourceLineNo">362</span>   * @return a normal HBaseTestingUtility<a name="line.362"></a>
-<span class="sourceLineNo">363</span>   */<a name="line.363"></a>
-<span class="sourceLineNo">364</span>  @Deprecated<a name="line.364"></a>
-<span class="sourceLineNo">365</span>  public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    return new HBaseTestingUtility(c);<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>  /**<a name="line.369"></a>
-<span class="sourceLineNo">370</span>   * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.370"></a>
-<span class="sourceLineNo">371</span>   */<a name="line.371"></a>
-<span class="sourceLineNo">372</span>  public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.372"></a>
-<span class="sourceLineNo">373</span>    closeRegionAndWAL((HRegion)r);<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 HRegion {@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 HRegion r) throws IOException {<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    if (r == null) return;<a name="line.380"></a>
-<span class="sourceLineNo">381</span>    r.close();<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    if (r.getWAL() == null) return;<a name="line.382"></a>
-<span class="sourceLineNo">383</span>    r.getWAL().close();<a name="line.383"></a>
-<span class="sourceLineNo">384</span>  }<a name="line.384"></a>
-<span class="sourceLineNo">385</span><a name="line.385"></a>
-<span class="sourceLineNo">386</span>  /**<a name="line.386"></a>
-<span class="sourceLineNo">387</span>   * Returns this classes's instance of {@link Configuration}.  Be careful how<a name="line.387"></a>
-<span class="sourceLineNo">388</span>   * you use the returned Configuration since {@link Connection} instances<a name="line.388"></a>
-<span class="sourceLineNo">389</span>   * can be shared.  The Map of Connections is keyed by the Configuration.  If<a name="line.389"></a>
-<span class="sourceLineNo">390</span>   * say, a Connection was being used against a cluster that had been shutdown,<a name="line.390"></a>
-<span class="sourceLineNo">391</span>   * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.391"></a>
-<span class="sourceLineNo">392</span>   * be wholesome.  Rather than use the return direct, its usually best to<a name="line.392"></a>
-<span class="sourceLineNo">393</span>   * make a copy and use that.  Do<a name="line.393"></a>
-<span class="sourceLineNo">394</span>   * &lt;code&gt;Configuration c = new Configuration(INSTANCE.getConfiguration());&lt;/code&gt;<a name="line.394"></a>
-<span class="sourceLineNo">395</span>   * @return Instance of Configuration.<a name="line.395"></a>
-<span class="sourceLineNo">396</span>   */<a name="line.396"></a>
-<span class="sourceLineNo">397</span>  @Override<a name="line.397"></a>
-<span class="sourceLineNo">398</span>  public Configuration getConfiguration() {<a name="line.398"></a>
-<span class="sourceLineNo">399</span>    return super.getConfiguration();<a name="line.399"></a>
-<span class="sourceLineNo">400</span>  }<a name="line.400"></a>
-<span class="sourceLineNo">401</span><a name="line.401"></a>
-<span class="sourceLineNo">402</span>  public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    this.hbaseCluster = hbaseCluster;<a name="line.403"></a>
+<span class="sourceLineNo">336</span>    if (this.conf.get("fs.defaultFS") != null) {<a name="line.336"></a>
+<span class="sourceLineNo">337</span>      this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.337"></a>
+<span class="sourceLineNo">338</span>    }<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.339"></a>
+<span class="sourceLineNo">340</span>      this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.340"></a>
+<span class="sourceLineNo">341</span>    }<a name="line.341"></a>
+<span class="sourceLineNo">342</span>    // Every cluster is a local cluster until we start DFS<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    // Note that conf could be null, but this.conf will not be<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    String dataTestDir = getDataTestDir().toString();<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    this.conf.set("fs.defaultFS","file:///");<a name="line.345"></a>
+<span class="sourceLineNo">346</span>    this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.347"></a>
+<span class="sourceLineNo">348</span>    this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.348"></a>
+<span class="sourceLineNo">349</span>    // If the value for random ports isn't set set it to true, thus making<a name="line.349"></a>
+<span class="sourceLineNo">350</span>    // tests opt-out for random port assignment<a name="line.350"></a>
+<span class="sourceLineNo">351</span>    this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.351"></a>
+<span class="sourceLineNo">352</span>        this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.352"></a>
+<span class="sourceLineNo">353</span>  }<a name="line.353"></a>
+<span class="sourceLineNo">354</span><a name="line.354"></a>
+<span class="sourceLineNo">355</span>  /**<a name="line.355"></a>
+<span class="sourceLineNo">356</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.356"></a>
+<span class="sourceLineNo">357</span>   * @return a normal HBaseTestingUtility<a name="line.357"></a>
+<span class="sourceLineNo">358</span>   */<a name="line.358"></a>
+<span class="sourceLineNo">359</span>  @Deprecated<a name="line.359"></a>
+<span class="sourceLineNo">360</span>  public static HBaseTestingUtility createLocalHTU() {<a name="line.360"></a>
+<span class="sourceLineNo">361</span>    return new HBaseTestingUtility();<a name="line.361"></a>
+<span class="sourceLineNo">362</span>  }<a name="line.362"></a>
+<span class="sourceLineNo">363</span><a name="line.363"></a>
+<span class="sourceLineNo">364</span>  /**<a name="line.364"></a>
+<span class="sourceLineNo">365</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.365"></a>
+<span class="sourceLineNo">366</span>   * @return a normal HBaseTestingUtility<a name="line.366"></a>
+<span class="sourceLineNo">367</span>   */<a name="line.367"></a>
+<span class="sourceLineNo">368</span>  @Deprecated<a name="line.368"></a>
+<span class="sourceLineNo">369</span>  public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.369"></a>
+<span class="sourceLineNo">370</span>    return new HBaseTestingUtility(c);<a name="line.370"></a>
+<span class="sourceLineNo">371</span>  }<a name="line.371"></a>
+<span class="sourceLineNo">372</span><a name="line.372"></a>
+<span class="sourceLineNo">373</span>  /**<a name="line.373"></a>
+<span class="sourceLineNo">374</span>   * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.374"></a>
+<span class="sourceLineNo">375</span>   */<a name="line.375"></a>
+<span class="sourceLineNo">376</span>  public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.376"></a>
+<span class="sourceLineNo">377</span>    closeRegionAndWAL((HRegion)r);<a name="line.377"></a>
+<span class="sourceLineNo">378</span>  }<a name="line.378"></a>
+<span class="sourceLineNo">379</span><a name="line.379"></a>
+<span class="sourceLineNo">380</span>  /**<a name="line.380"></a>
+<span class="sourceLineNo">381</span>   * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.381"></a>
+<span class="sourceLineNo">382</span>   */<a name="line.382"></a>
+<span class="sourceLineNo">383</span>  public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.383"></a>
+<span class="sourceLineNo">384</span>    if (r == null) return;<a name="line.384"></a>
+<span class="sourceLineNo">385</span>    r.close();<a name="line.385"></a>
+<span class="sourceLineNo">386</span>    if (r.getWAL() == null) return;<a name="line.386"></a>
+<span class="sourceLineNo">387</span>    r.getWAL().close();<a name="line.387"></a>
+<span class="sourceLineNo">388</span>  }<a name="line.388"></a>
+<span class="sourceLineNo">389</span><a name="line.389"></a>
+<span class="sourceLineNo">390</span>  /**<a name="line.390"></a>
+<span class="sourceLineNo">391</span>   * Returns this classes's instance of {@link Configuration}.  Be careful how<a name="line.391"></a>
+<span class="sourceLineNo">392</span>   * you use the returned Configuration since {@link Connection} instances<a name="line.392"></a>
+<span class="sourceLineNo">393</span>   * can be shared.  The Map of Connections is keyed by the Configuration.  If<a name="line.393"></a>
+<span class="sourceLineNo">394</span>   * say, a Connection was being used against a cluster that had been shutdown,<a name="line.394"></a>
+<span class="sourceLineNo">395</span>   * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.395"></a>
+<span class="sourceLineNo">396</span>   * be wholesome.  Rather than use the return direct, its usually best to<a name="line.396"></a>
+<span class="sourceLineNo">397</span>   * make a copy and use that.  Do<a name="line.397"></a>
+<span class="sourceLineNo">398</span>   * &lt;code&gt;Configuration c = new Configuration(INSTANCE.getConfiguration());&lt;/code&gt;<a name="line.398"></a>
+<span class="sourceLineNo">399</span>   * @return Instance of Configuration.<a name="line.399"></a>
+<span class="sourceLineNo">400</span>   */<a name="line.400"></a>
+<span class="sourceLineNo">401</span>  @Override<a name="line.401"></a>
+<span class="sourceLineNo">402</span>  public Configuration getConfiguration() {<a name="line.402"></a>
+<span class="sourceLineNo">403</span>    return super.getConfiguration();<a name="line.403"></a>
 <span class="sourceLineNo">404</span>  }<a name="line.404"></a>
 <span class="sourceLineNo">405</span><a name="line.405"></a>
-<span class="sourceLineNo">406</span>  /**<a name="line.406"></a>
-<span class="sourceLineNo">407</span>   * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.407"></a>
-<span class="sourceLineNo">408</span>   * Give it a random name so can have many concurrent tests running if<a name="line.408"></a>
-<span class="sourceLineNo">409</span>   * we need to.  It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.409"></a>
-<span class="sourceLineNo">410</span>   * System property, as it's what minidfscluster bases<a name="line.410"></a>
-<span class="sourceLineNo">411</span>   * it data dir on.  Moding a System property is not the way to do concurrent<a name="line.411"></a>
-<span class="sourceLineNo">412</span>   * instances -- another instance could grab the temporary<a name="line.412"></a>
-<span class="sourceLineNo">413</span>   * value unintentionally -- but not anything can do about it at moment;<a name="line.413"></a>
-<span class="sourceLineNo">414</span>   * single instance only is how the minidfscluster works.<a name="line.414"></a>
-<span class="sourceLineNo">415</span>   *<a name="line.415"></a>
-<span class="sourceLineNo">416</span>   * We also create the underlying directory for<a name="line.416"></a>
-<span class="sourceLineNo">417</span>   *  hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.417"></a>
-<span class="sourceLineNo">418</span>   *  in the conf, and as a system property for hadoop.tmp.dir<a name="line.418"></a>
+<span class="sourceLineNo">406</span>  public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    this.hbaseCluster = hbaseCluster;<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>  /**<a name="line.410"></a>
+<span class="sourceLineNo">411</span>   * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.411"></a>
+<span class="sourceLineNo">412</span>   * Give it a random name so can have many concurrent tests running if<a name="line.412"></a>
+<span class="sourceLineNo">413</span>   * we need to.  It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.413"></a>
+<span class="sourceLineNo">414</span>   * System property, as it's what minidfscluster bases<a name="line.414"></a>
+<span class="sourceLineNo">415</span>   * it data dir on.  Moding a System property is not the way to do concurrent<a name="line.415"></a>
+<span class="sourceLineNo">416</span>   * instances -- another instance could grab the temporary<a name="line.416"></a>
+<span class="sourceLineNo">417</span>   * value unintentionally -- but not anything can do about it at moment;<a name="line.417"></a>
+<span class="sourceLineNo">418</span>   * single instance only is how the minidfscluster works.<a name="line.418"></a>
 <span class="sourceLineNo">419</span>   *<a name="line.419"></a>
-<span class="sourceLineNo">420</span>   * @return The calculated data test build directory, if newly-created.<a name="line.420"></a>
-<span class="sourceLineNo">421</span>   */<a name="line.421"></a>
-<span class="sourceLineNo">422</span>  @Override<a name="line.422"></a>
-<span class="sourceLineNo">423</span>  protected Path setupDataTestDir() {<a name="line.423"></a>
-<span class="sourceLineNo">424</span>    Path testPath = super.setupDataTestDir();<a name="line.424"></a>
-<span class="sourceLineNo">425</span>    if (null == testPath) {<a name="line.425"></a>
-<span class="sourceLineNo">426</span>      return null;<a name="line.426"></a>
-<span class="sourceLineNo">427</span>    }<a name="line.427"></a>
-<span class="sourceLineNo">428</span><a name="line.428"></a>
-<span class="sourceLineNo">429</span>    createSubDirAndSystemProperty(<a name="line.429"></a>
-<span class="sourceLineNo">430</span>      "hadoop.log.dir",<a name="line.430"></a>
-<span class="sourceLineNo">431</span>      testPath, "hadoop-log-dir");<a name="line.431"></a>
+<span class="sourceLineNo">420</span>   * We also create the underlying directory for<a name="line.420"></a>
+<span class="sourceLineNo">421</span>   *  hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.421"></a>
+<span class="sourceLineNo">422</span>   *  in the conf, and as a system property for hadoop.tmp.dir<a name="line.422"></a>
+<span class="sourceLineNo">423</span>   *<a name="line.423"></a>
+<span class="sourceLineNo">424</span>   * @return The calculated data test build directory, if newly-created.<a name="line.424"></a>
+<span class="sourceLineNo">425</span>   */<a name="line.425"></a>
+<span class="sourceLineNo">426</span>  @Override<a name="line.426"></a>
+<span class="sourceLineNo">427</span>  protected Path setupDataTestDir() {<a name="line.427"></a>
+<span class="sourceLineNo">428</span>    Path testPath = super.setupDataTestDir();<a name="line.428"></a>
+<span class="sourceLineNo">429</span>    if (null == testPath) {<a name="line.429"></a>
+<span class="sourceLineNo">430</span>      return null;<a name="line.430"></a>
+<span class="sourceLineNo">431</span>    }<a name="line.431"></a>
 <span class="sourceLineNo">432</span><a name="line.432"></a>
-<span class="sourceLineNo">433</span>    // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.433"></a>
-<span class="sourceLineNo">434</span>    //  we want our own value to ensure uniqueness on the same machine<a name="line.434"></a>
-<span class="sourceLineNo">435</span>    createSubDirAndSystemProperty(<a name="line.435"></a>
-<span class="sourceLineNo">436</span>      "hadoop.tmp.dir",<a name="line.436"></a>
-<span class="sourceLineNo">437</span>      testPath, "hadoop-tmp-dir");<a name="line.437"></a>
-<span class="sourceLineNo">438</span><a name="line.438"></a>
-<span class="sourceLineNo">439</span>    // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.439"></a>
-<span class="sourceLineNo">440</span>    createSubDir(<a name="line.440"></a>
-<span class="sourceLineNo">441</span>      "mapreduce.cluster.local.dir",<a name="line.441"></a>
-<span class="sourceLineNo">442</span>      testPath, "mapred-local-dir");<a name="line.442"></a>
-<span class="sourceLineNo">443</span><a name="line.443"></a>
-<span class="sourceLineNo">444</span>    return testPath;<a name="line.444"></a>
-<span class="sourceLineNo">445</span>  }<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span>  private void createSubDirAndSystemProperty(<a name="line.447"></a>
-<span class="sourceLineNo">448</span>    String propertyName, Path parent, String subDirName){<a name="line.448"></a>
-<span class="sourceLineNo">449</span><a name="line.449"></a>
-<span class="sourceLineNo">450</span>    String sysValue = System.getProperty(propertyName);<a name="line.450"></a>
-<span class="sourceLineNo">451</span><a name="line.451"></a>
-<span class="sourceLineNo">452</span>    if (sysValue != null) {<a name="line.452"></a>
-<span class="sourceLineNo">453</span>      // There is already a value set. So we do nothing but hope<a name="line.453"></a>
-<span class="sourceLineNo">454</span>      //  that there will be no conflicts<a name="line.454"></a>
-<span class="sourceLineNo">455</span>      LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.455"></a>
-<span class="sourceLineNo">456</span>        sysValue + " so I do NOT create it in " + parent);<a name="line.456"></a>
-<span class="sourceLineNo">457</span>      String confValue = conf.get(propertyName);<a name="line.457"></a>
-<span class="sourceLineNo">458</span>      if (confValue != null &amp;&amp; !confValue.endsWith(sysValue)){<a name="line.458"></a>
-<span class="sourceLineNo">459</span>       LOG.warn(<a name="line.459"></a>
-<span class="sourceLineNo">460</span>         propertyName + " property value differs in configuration and system: "+<a name="line.460"></a>
-<span class="sourceLineNo">461</span>         "Configuration="+confValue+" while System="+sysValue+<a name="line.461"></a>
-<span class="sourceLineNo">462</span>         " Erasing configuration value by system value."<a name="line.462"></a>
-<span class="sourceLineNo">463</span>       );<a name="line.463"></a>
-<span class="sourceLineNo">464</span>      }<a name="line.464"></a>
-<span class="sourceLineNo">465</span>      conf.set(propertyName, sysValue);<a name="line.465"></a>
-<span class="sourceLineNo">466</span>    } else {<a name="line.466"></a>
-<span class="sourceLineNo">467</span>      // Ok, it's not set, so we create it as a subdirectory<a name="line.467"></a>
-<span class="sourceLineNo">468</span>      createSubDir(propertyName, parent, subDirName);<a name="line.468"></a>
-<span class="sourceLineNo">469</span>      System.setProperty(propertyName, conf.get(propertyName));<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><a name="line.472"></a>
-<span class="sourceLineNo">473</span>  /**<a name="line.473"></a>
-<span class="sourceLineNo">474</span>   * @return Where to write test data on the test filesystem; Returns working directory<a name="line.474"></a>
-<span class="sourceLineNo">475</span>   * for the test filesystem by default<a name="line.475"></a>
-<span class="sourceLineNo">476</span>   * @see #setupDataTestDirOnTestFS()<a name="line.476"></a>
-<span class="sourceLineNo">477</span>   * @see #getTestFileSystem()<a name="line.477"></a>
-<span class="sourceLineNo">478</span>   */<a name="line.478"></a>
-<span class="sourceLineNo">479</span>  private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.479"></a>
-<span class="sourceLineNo">480</span>    FileSystem fs = getTestFileSystem();<a name="line.480"></a>
-<span class="sourceLineNo">481</span>    return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.481"></a>
-<span class="sourceLineNo">482</span>  }<a name="line.482"></a>
-<span class="sourceLineNo">483</span><a name="line.483"></a>
-<span class="sourceLineNo">484</span>  /**<a name="line.484"></a>
-<span class="sourceLineNo">485</span>   * @return META table descriptor<a name="line.485"></a>
-<span class="sourceLineNo">486</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.486"></a>
-<span class="sourceLineNo">487</span>   *             use {@link #getMetaTableDescriptorBuilder()}<a name="line.487"></a>
-<span class="sourceLineNo">488</span>   */<a name="line.488"></a>
-<span class="sourceLineNo">489</span>  @Deprecated<a name="line.489"></a>
-<span class="sourceLineNo">490</span>  public HTableDescriptor getMetaTableDescriptor() {<a name="line.490"></a>
-<span class="sourceLineNo">491</span>    return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.491"></a>
-<span class="sourceLineNo">492</span>  }<a name="line.492"></a>
-<span class="sourceLineNo">493</span><a name="line.493"></a>
-<span class="sourceLineNo">494</span>  /**<a name="line.494"></a>
-<span class="sourceLineNo">495</span>   * @return META table descriptor<a name="line.495"></a>
-<span class="sourceLineNo">496</span>   */<a name="line.496"></a>
-<span class="sourceLineNo">497</span>  public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.497"></a>
-<span class="sourceLineNo">498</span>    try {<a name="line.498"></a>
-<span class="sourceLineNo">499</span>      return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.499"></a>
-<span class="sourceLineNo">500</span>    } catch (IOException e) {<a name="line.500"></a>
-<span class="sourceLineNo">501</span>      throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.501"></a>
-<span class="sourceLineNo">502</span>    }<a name="line.502"></a>
-<span class="sourceLineNo">503</span>  }<a name="line.503"></a>
-<span class="sourceLineNo">504</span><a name="line.504"></a>
-<span class="sourceLineNo">505</span>  /**<a name="line.505"></a>
-<span class="sourceLineNo">506</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.506"></a>
-<span class="sourceLineNo">507</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.507"></a>
-<span class="sourceLineNo">508</span>   * if the test relies on it.<a name="line.508"></a>
-<span class="sourceLineNo">509</span>   * @return a unique path in the test filesystem<a name="line.509"></a>
-<span class="sourceLineNo">510</span>   */<a name="line.510"></a>
-<span class="sourceLineNo">511</span>  public Path getDataTestDirOnTestFS() throws IOException {<a name="line.511"></a>
-<span class="sourceLineNo">512</span>    if (dataTestDirOnTestFS == null) {<a name="line.512"></a>
-<span class="sourceLineNo">513</span>      setupDataTestDirOnTestFS();<a name="line.513"></a>
-<span class="sourceLineNo">514</span>    }<a name="line.514"></a>
-<span class="sourceLineNo">515</span><a name="line.515"></a>
-<span class="sourceLineNo">516</span>    return dataTestDirOnTestFS;<a name="line.516"></a>
-<span class="sourceLineNo">517</span>  }<a name="line.517"></a>
-<span class="sourceLineNo">518</span><a name="line.518"></a>
-<span class="sourceLineNo">519</span>  /**<a name="line.519"></a>
-<span class="sourceLineNo">520</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.520"></a>
-<span class="sourceLineNo">521</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.521"></a>
-<span class="sourceLineNo">522</span>   * if the test relies on it.<a name="line.522"></a>
-<span class="sourceLineNo">523</span>   * @return a unique path in the test filesystem<a name="line.523"></a>
-<span class="sourceLineNo">524</span>   * @param subdirName name of the subdir to create under the base test dir<a name="line.524"></a>
-<span class="sourceLineNo">525</span>   */<a name="line.525"></a>
-<span class="sourceLineNo">526</span>  public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.526"></a>
-<span class="sourceLineNo">527</span>    return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.527"></a>
-<span class="sourceLineNo">528</span>  }<a name="line.528"></a>
-<span class="sourceLineNo">529</span><a name="line.529"></a>
-<span class="sourceLineNo">530</span>  /**<a name="line.530"></a>
-<span class="sourceLineNo">531</span>   * Sets up a path in test filesystem to be used by tests.<a name="line.531"></a>
-<span class="sourceLineNo">532</span>   * Creates a new directory if not already setup.<a name="line.532"></a>
-<span class="sourceLineNo">533</span>   */<a name="line.533"></a>
-<span class="sourceLineNo">534</span>  private void setupDataTestDirOnTestFS() throws IOException {<a name="line.534"></a>
-<span class="sourceLineNo">535</span>    if (dataTestDirOnTestFS != null) {<a name="line.535"></a>
-<span class="sourceLineNo">536</span>      LOG.warn("Data test on test fs dir already setup in "<a name="line.536"></a>
-<span class="sourceLineNo">537</span>          + dataTestDirOnTestFS.toString());<a name="line.537"></a>
-<span class="sourceLineNo">538</span>      return;<a name="line.538"></a>
-<span class="sourceLineNo">539</span>    }<a name="line.539"></a>
-<span class="sourceLineNo">540</span>    dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.540"></a>
-<span class="sourceLineNo">541</span>  }<a name="line.541"></a>
-<span class="sourceLineNo">542</span><a name="line.542"></a>
-<span class="sourceLineNo">543</span>  /**<a name="line.543"></a>
-<span class="sourceLineNo">544</span>   * Sets up a new path in test filesystem to be used by tests.<a name="line.544"></a>
-<span class="sourceLineNo">545</span>   */<a name="line.545"></a>
-<span class="sourceLineNo">546</span>  private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.546"></a>
-<span class="sourceLineNo">547</span>    //The file system can be either local, mini dfs, or if the configuration<a name="line.547"></a>
-<span class="sourceLineNo">548</span>    //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.548"></a>
-<span class="sourceLineNo">549</span>    //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.549"></a>
-<span class="sourceLineNo">550</span>    //the working directory, and create a unique sub dir there<a name="line.550"></a>
-<span class="sourceLineNo">551</span>    FileSystem fs = getTestFileSystem();<a name="line.551"></a>
-<span class="sourceLineNo">552</span>    Path newDataTestDir;<a name="line.552"></a>
-<span class="sourceLineNo">553</span>    String randomStr = getRandomUUID().toString();<a name="line.553"></a>
-<span class="sourceLineNo">554</span>    if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.554"></a>
-<span class="sourceLineNo">555</span>      newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.555"></a>
-<span class="sourceLineNo">556</span>      File dataTestDir = new File(newDataTestDir.toString());<a name="line.556"></a>
-<span class="sourceLineNo">557</span>      if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.557"></a>
-<span class="sourceLineNo">558</span>    } else {<a name="line.558"></a>
-<span class="sourceLineNo">559</span>      Path base = getBaseTestDirOnTestFS();<a name="line.559"></a>
-<span class="sourceLineNo">560</span>      newDataTestDir = new Path(base, randomStr);<a name="line.560"></a>
-<span class="sourceLineNo">561</span>      if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.561"></a>
-<span class="sourceLineNo">562</span>    }<a name="line.562"></a>
-<span class="sourceLineNo">563</span>    return newDataTestDir;<a name="line.563"></a>
-<span class="sourceLineNo">564</span>  }<a name="line.564"></a>
-<span class="sourceLineNo">565</span><a name="line.565"></a>
-<span class="sourceLineNo">566</span>  /**<a name="line.566"></a>
-<span class="sourceLineNo">567</span>   * Cleans the test data directory on the test filesystem.<a name="line.567"></a>
-<span class="sourceLineNo">568</span>   * @return True if we removed the test dirs<a name="line.568"></a>
-<span class="sourceLineNo">569</span>   * @throws IOException<a name="line.569"></a>
-<span class="sourceLineNo">570</span>   */<a name="line.570"></a>
-<span class="sourceLineNo">571</span>  public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.571"></a>
-<span class="sourceLineNo">572</span>    boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.572"></a>
-<span class="sourceLineNo">573</span>    if (ret)<a name="line.573"></a>
-<span class="sourceLineNo">574</span>      dataTestDirOnTestFS = null;<a name="line.574"></a>
-<span class="sourceLineNo">575</span>    return ret;<a name="line.575"></a>
-<span class="sourceLineNo">576</span>  }<a name="line.576"></a>
-<span class="sourceLineNo">577</span><a name="line.577"></a>
-<span class="sourceLineNo">578</span>  /**<a name="line.578"></a>
-<span class="sourceLineNo">579</span>   * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.579"></a>
-<span class="sourceLineNo">580</span>   * @return True if we removed child<a name="line.580"></a>
-<span class="sourceLineNo">581</span>   * @throws IOException<a name="line.581"></a>
-<span class="sourceLineNo">582</span>   */<a name="line.582"></a>
-<span class="sourceLineNo">583</span>  public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.583"></a>
-<span class="sourceLineNo">584</span>    Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.584"></a>
-<span class="sourceLineNo">585</span>    return getTestFileSystem().delete(cpath, true);<a name="line.585"></a>
-<span class="sourceLineNo">586</span>  }<a name="line.586"></a>
-<span class="sourceLineNo">587</span><a name="line.587"></a>
-<span class="sourceLineNo">588</span>  /**<a name="line.588"></a>
-<span class="sourceLineNo">589</span>   * Start a minidfscluster.<a name="line.589"></a>
-<span class="sourceLineNo">590</span>   * @param servers How many DNs to start.<a name="line.590"></a>
-<span class="sourceLineNo">591</span>   * @throws Exception<a name="line.591"></a>
-<span class="sourceLineNo">592</span>   * @see #shutdownMiniDFSCluster()<a name="line.592"></a>
-<span class="sourceLineNo">593</span>   * @return The mini dfs cluster created.<a name="line.593"></a>
-<span class="sourceLineNo">594</span>   */<a name="line.594"></a>
-<span class="sourceLineNo">595</span>  public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.595"></a>
-<span class="sourceLineNo">596</span>    return startMiniDFSCluster(servers, null);<a name="line.596"></a>
-<span class="sourceLineNo">597</span>  }<a name="line.597"></a>
-<span class="sourceLineNo">598</span><a name="line.598"></a>
-<span class="sourceLineNo">599</span>  /**<a name="line.599"></a>
-<span class="sourceLineNo">600</span>   * Start a minidfscluster.<a name="line.600"></a>
-<span class="sourceLineNo">601</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.601"></a>
-<span class="sourceLineNo">602</span>   * like HDFS block location verification.<a name="line.602"></a>
-<span class="sourceLineNo">603</span>   * If you start MiniDFSCluster without host names, all instances of the<a name="line.603"></a>
-<span class="sourceLineNo">604</span>   * datanodes will have the same host name.<a name="line.604"></a>
-<span class="sourceLineNo">605</span>   * @param hosts hostnames DNs to run on.<a name="line.605"></a>
-<span class="sourceLineNo">606</span>   * @throws Exception<a name="line.606"></a>
-<span class="sourceLineNo">607</span>   * @see #shutdownMiniDFSCluster()<a name="line.607"></a>
-<span class="sourceLineNo">608</span>   * @return The mini dfs cluster created.<a name="line.608"></a>
-<span class="sourceLineNo">609</span>   */<a name="line.609"></a>
-<span class="sourceLineNo">610</span>  public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.610"></a>
-<span class="sourceLineNo">611</span>  throws Exception {<a name="line.611"></a>
-<span class="sourceLineNo">612</span>    if ( hosts != null &amp;&amp; hosts.length != 0) {<a name="line.612"></a>
-<span class="sourceLineNo">613</span>      return startMiniDFSCluster(hosts.length, hosts);<a name="line.613"></a>
-<span class="sourceLineNo">614</span>    } else {<a name="line.614"></a>
-<span class="sourceLineNo">615</span>      return startMiniDFSCluster(1, null);<a name="line.615"></a>
-<span class="sourceLineNo">616</span>    }<a name="line.616"></a>
-<span class="sourceLineNo">617</span>  }<a name="line.617"></a>
-<span class="sourceLineNo">618</span><a name="line.618"></a>
-<span class="sourceLineNo">619</span>  /**<a name="line.619"></a>
-<span class="sourceLineNo">620</span>   * Start a minidfscluster.<a name="line.620"></a>
-<span class="sourceLineNo">621</span>   * Can only create one.<a name="line.621"></a>
-<span class="sourceLineNo">622</span>   * @param servers How many DNs to start.<a name="line.622"></a>
-<span class="sourceLineNo">623</span>   * @param hosts hostnames DNs to run on.<a name="line.623"></a>
-<span class="sourceLineNo">624</span>   * @throws Exception<a name="line.624"></a>
-<span class="sourceLineNo">625</span>   * @see #shutdownMiniDFSCluster()<a name="line.625"></a>
-<span class="sourceLineNo">626</span>   * @return The mini dfs cluster created.<a name="line.626"></a>
-<span class="sourceLineNo">627</span>   */<a name="line.627"></a>
-<span class="sourceLineNo">628</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.628"></a>
-<span class="sourceLineNo">629</span>  throws Exception {<a name="line.629"></a>
-<span class="sourceLineNo">630</span>    return startMiniDFSCluster(servers, null, hosts);<a name="line.630"></a>
-<span class="sourceLineNo">631</span>  }<a name="line.631"></a>
-<span class="sourceLineNo">632</span><a name="line.632"></a>
-<span class="sourceLineNo">633</span>  private void setFs() throws IOException {<a name="line.633"></a>
-<span class="sourceLineNo">634</span>    if(this.dfsCluster == null){<a name="line.634"></a>
-<span class="sourceLineNo">635</span>      LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.635"></a>
-<span class="sourceLineNo">636</span>      return;<a name="line.636"></a>
-<span class="sourceLineNo">637</span>    }<a name="line.637"></a>
-<span class="sourceLineNo">638</span>    FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.638"></a>
-<span class="sourceLineNo">639</span>    FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.639"></a>
-<span class="sourceLineNo">640</span><a name="line.640"></a>
-<span class="sourceLineNo">641</span>    // re-enable this check with dfs<a name="line.641"></a>
-<span class="sourceLineNo">642</span>    conf.unset(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE);<a name="line.642"></a>
-<span class="sourceLineNo">643</span>  }<a name="line.643"></a>
+<span class="sourceLineNo">433</span>    createSubDirAndSystemProperty(<a name="line.433"></a>
+<span class="sourceLineNo">434</span>      "hadoop.log.dir",<a name="line.434"></a>
+<span class="sourceLineNo">435</span>      testPath, "hadoop-log-dir");<a name="line.435"></a>
+<span class="sourceLineNo">436</span><a name="line.436"></a>
+<span class="sourceLineNo">437</span>    // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.437"></a>
+<span class="sourceLineNo">438</span>    //  we want our own value to ensure uniqueness on the same machine<a name="line.438"></a>
+<span class="sourceLineNo">439</span>    createSubDirAndSystemProperty(<a name="line.439"></a>
+<span class="sourceLineNo">440</span>      "hadoop.tmp.dir",<a name="line.440"></a>
+<span class="sourceLineNo">441</span>      testPath, "hadoop-tmp-dir");<a name="line.441"></a>
+<span class="sourceLineNo">442</span><a name="line.442"></a>
+<span class="sourceLineNo">443</span>    // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.443"></a>
+<span class="sourceLineNo">444</span>    createSubDir(<a name="line.444"></a>
+<span class="sourceLineNo">445</span>      "mapreduce.cluster.local.dir",<a name="line.445"></a>
+<span class="sourceLineNo">446</span>      testPath, "mapred-local-dir");<a name="line.446"></a>
+<span class="sourceLineNo">447</span><a name="line.447"></a>
+<span class="sourceLineNo">448</span>    return testPath;<a name="line.448"></a>
+<span class="sourceLineNo">449</span>  }<a name="line.449"></a>
+<span class="sourceLineNo">450</span><a name="line.450"></a>
+<span class="sourceLineNo">451</span>  private void createSubDirAndSystemProperty(<a name="line.451"></a>
+<span class="sourceLineNo">452</span>    String propertyName, Path parent, String subDirName){<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span>    String sysValue = System.getProperty(propertyName);<a name="line.454"></a>
+<span class="sourceLineNo">455</span><a name="line.455"></a>
+<span class="sourceLineNo">456</span>    if (sysValue != null) {<a name="line.456"></a>
+<span class="sourceLineNo">457</span>      // There is already a value set. So we do nothing but hope<a name="line.457"></a>
+<span class="sourceLineNo">458</span>      //  that there will be no conflicts<a name="line.458"></a>
+<span class="sourceLineNo">459</span>      LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.459"></a>
+<span class="sourceLineNo">460</span>        sysValue + " so I do NOT create it in " + parent);<a name="line.460"></a>
+<span class="sourceLineNo">461</span>      String confValue = conf.get(propertyName);<a name="line.461"></a>
+<span class="sourceLineNo">462</span>      if (confValue != null &amp;&amp; !confValue.endsWith(sysValue)){<a name="line.462"></a>
+<span class="sourceLineNo">463</span>       LOG.warn(<a name="line.463"></a>
+<span class="sourceLineNo">464</span>         propertyName + " property value differs in configuration and system: "+<a name="line.464"></a>
+<span class="sourceLineNo">465</span>         "Configuration="+confValue+" while System="+sysValue+<a name="line.465"></a>
+<span class="sourceLineNo">466</span>         " Erasing configuration value by system value."<a name="line.466"></a>
+<span class="sourceLineNo">467</span>       );<a name="line.467"></a>
+<span class="sourceLineNo">468</span>      }<a name="line.468"></a>
+<span class="sourceLineNo">469</span>      conf.set(propertyName, sysValue);<a name="line.469"></a>
+<span class="sourceLineNo">470</span>    } else {<a name="line.470"></a>
+<span class="sourceLineNo">471</span>      // Ok, it's not set, so we create it as a subdirectory<a name="line.471"></a>
+<span class="sourceLineNo">472</span>      createSubDir(propertyName, parent, subDirName);<a name="line.472"></a>
+<span class="sourceLineNo">473</span>      System.setProperty(propertyName, conf.get(propertyName));<a name="line.473"></a>
+<span class="sourceLineNo">474</span>    }<a name="line.474"></a>
+<span class="sourceLineNo">475</span>  }<a name="line.475"></a>
+<span class="sourceLineNo">476</span><a name="line.476"></a>
+<span class="sourceLineNo">477</span>  /**<a name="line.477"></a>
+<span class="sourceLineNo">478</span>   * @return Where to write test data on the test filesystem; Returns working directory<a name="line.478"></a>
+<span class="sourceLineNo">479</span>   * for the test filesystem by default<a name="line.479"></a>
+<span class="sourceLineNo">480</span>   * @see #setupDataTestDirOnTestFS()<a name="line.480"></a>
+<span class="sourceLineNo">481</span>   * @see #getTestFileSystem()<a name="line.481"></a>
+<span class="sourceLineNo">482</span>   */<a name="line.482"></a>
+<span class="sourceLineNo">483</span>  private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.483"></a>
+<span class="sourceLineNo">484</span>    FileSystem fs = getTestFileSystem();<a name="line.484"></a>
+<span class="sourceLineNo">485</span>    return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.485"></a>
+<span class="sourceLineNo">486</span>  }<a name="line.486"></a>
+<span class="sourceLineNo">487</span><a name="line.487"></a>
+<span class="sourceLineNo">488</span>  /**<a name="line.488"></a>
+<span class="sourceLineNo">489</span>   * @return META table descriptor<a name="line.489"></a>
+<span class="sourceLineNo">490</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.490"></a>
+<span class="sourceLineNo">491</span>   *             use {@link #getMetaTableDescriptorBuilder()}<a name="line.491"></a>
+<span class="sourceLineNo">492</span>   */<a name="line.492"></a>
+<span class="sourceLineNo">493</span>  @Deprecated<a name="line.493"></a>
+<span class="sourceLineNo">494</span>  public HTableDescriptor getMetaTableDescriptor() {<a name="line.494"></a>
+<span class="sourceLineNo">495</span>    return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.495"></a>
+<span class="sourceLineNo">496</span>  }<a name="line.496"></a>
+<span class="sourceLineNo">497</span><a name="line.497"></a>
+<span class="sourceLineNo">498</span>  /**<a name="line.498"></a>
+<span class="sourceLineNo">499</span>   * @return META table descriptor<a name="line.499"></a>
+<span class="sourceLineNo">500</span>   */<a name="line.500"></a>
+<span class="sourceLineNo">501</span>  public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.501"></a>
+<span class="sourceLineNo">502</span>    try {<a name="line.502"></a>
+<span class="sourceLineNo">503</span>      return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.503"></a>
+<span class="sourceLineNo">504</span>    } catch (IOException e) {<a name="line.504"></a>
+<span class="sourceLineNo">505</span>      throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.505"></a>
+<span class="sourceLineNo">506</span>    }<a name="line.506"></a>
+<span class="sourceLineNo">507</span>  }<a name="line.507"></a>
+<span class="sourceLineNo">508</span><a name="line.508"></a>
+<span class="sourceLineNo">509</span>  /**<a name="line.509"></a>
+<span class="sourceLineNo">510</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.510"></a>
+<span class="sourceLineNo">511</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.511"></a>
+<span class="sourceLineNo">512</span>   * if the test relies on it.<a name="line.512"></a>
+<span class="sourceLineNo">513</span>   * @return a unique path in the test filesystem<a name="line.513"></a>
+<span class="sourceLineNo">514</span>   */<a name="line.514"></a>
+<span class="sourceLineNo">515</span>  public Path getDataTestDirOnTestFS() throws IOException {<a name="line.515"></a>
+<span class="sourceLineNo">516</span>    if (dataTestDirOnTestFS == null) {<a name="line.516"></a>
+<span class="sourceLineNo">517</span>      setupDataTestDirOnTestFS();<a name="line.517"></a>
+<span class="sourceLineNo">518</span>    }<a name="line.518"></a>
+<span class="sourceLineNo">519</span><a name="line.519"></a>
+<span class="sourceLineNo">520</span>    return dataTestDirOnTestFS;<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>  /**<a name="line.523"></a>
+<span class="sourceLineNo">524</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.524"></a>
+<span class="sourceLineNo">525</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.525"></a>
+<span class="sourceLineNo">526</span>   * if the test relies on it.<a name="line.526"></a>
+<span class="sourceLineNo">527</span>   * @return a unique path in the test filesystem<a name="line.527"></a>
+<span class="sourceLineNo">528</span>   * @param subdirName name of the subdir to create under the base test dir<a name="line.528"></a>
+<span class="sourceLineNo">529</span>   */<a name="line.529"></a>
+<span class="sourceLineNo">530</span>  public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.530"></a>
+<span class="sourceLineNo">531</span>    return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.531"></a>
+<span class="sourceLineNo">532</span>  }<a name="line.532"></a>
+<span class="sourceLineNo">533</span><a name="line.533"></a>
+<span class="sourceLineNo">534</span>  /**<a name="line.534"></a>
+<span class="sourceLineNo">535</span>   * Sets up a path in test filesystem to be used by tests.<a name="line.535"></a>
+<span class="sourceLineNo">536</span>   * Creates a new directory if not already setup.<a name="line.536"></a>
+<span class="sourceLineNo">537</span>   */<a name="line.537"></a>
+<span class="sourceLineNo">538</span>  private void setupDataTestDirOnTestFS() throws IOException {<a name="line.538"></a>
+<span class="sourceLineNo">539</span>    if (dataTestDirOnTestFS != null) {<a name="line.539"></a>
+<span class="sourceLineNo">540</span>      LOG.warn("Data test on test fs dir already setup in "<a name="line.540"></a>
+<span class="sourceLineNo">541</span>          + dataTestDirOnTestFS.toString());<a name="line.541"></a>
+<span class="sourceLineNo">542</span>      return;<a name="line.542"></a>
+<span class="sourceLineNo">543</span>    }<a name="line.543"></a>
+<span class="sourceLineNo">544</span>    dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.544"></a>
+<span class="sourceLineNo">545</span>  }<a name="line.545"></a>
+<span class="sourceLineNo">546</span><a name="line.546"></a>
+<span class="sourceLineNo">547</span>  /**<a name="line.547"></a>
+<span class="sourceLineNo">548</span>   * Sets up a new path in test filesystem to be used by tests.<a name="line.548"></a>
+<span class="sourceLineNo">549</span>   */<a name="line.549"></a>
+<span class="sourceLineNo">550</span>  private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.550"></a>
+<span class="sourceLineNo">551</span>    //The file system can be either local, mini dfs, or if the configuration<a name="line.551"></a>
+<span class="sourceLineNo">552</span>    //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.552"></a>
+<span class="sourceLineNo">553</span>    //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.553"></a>
+<span class="sourceLineNo">554</span>    //the working directory, and create a unique sub dir there<a name="line.554"></a>
+<span class="sourceLineNo">555</span>    FileSystem fs = getTestFileSystem();<a name="line.555"></a>
+<span class="sourceLineNo">556</span>    Path newDataTestDir;<a name="line.556"></a>
+<span class="sourceLineNo">557</span>    String randomStr = getRandomUUID().toString();<a name="line.557"></a>
+<span class="sourceLineNo">558</span>    if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.558"></a>
+<span class="sourceLineNo">559</span>      newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.559"></a>
+<span class="sourceLineNo">560</span>      File dataTestDir = new File(newDataTestDir.toString());<a name="line.560"></a>
+<span class="sourceLineNo">561</span>      if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.561"></a>
+<span class="sourceLineNo">562</span>    } else {<a name="line.562"></a>
+<span class="sourceLineNo">563</span>      Path base = getBaseTestDirOnTestFS();<a name="line.563"></a>
+<span class="sourceLineNo">564</span>      newDataTestDir = new Path(base, randomStr);<a name="line.564"></a>
+<span class="sourceLineNo">565</span>      if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.565"></a>
+<span class="sourceLineNo">566</span>    }<a name="line.566"></a>
+<span class="sourceLineNo">567</span>    return newDataTestDir;<a name="line.567"></a>
+<span class="sourceLineNo">568</span>  }<a name="line.568"></a>
+<span class="sourceLineNo">569</span><a name="line.569"></a>
+<span class="sourceLineNo">570</span>  /**<a name="line.570"></a>
+<span class="sourceLineNo">571</span>   * Cleans the test data directory on the test filesystem.<a name="line.571"></a>
+<span class="sourceLineNo">572</span>   * @return True if we removed the test dirs<a name="line.572"></a>
+<span class="sourceLineNo">573</span>   * @throws IOException<a name="line.573"></a>
+<span class="sourceLineNo">574</span>   */<a name="line.574"></a>
+<span class="sourceLineNo">575</span>  public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.575"></a>
+<span class="sourceLineNo">576</span>    boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.576"></a>
+<span class="sourceLineNo">577</span>    if (ret)<a name="line.577"></a>
+<span class="sourceLineNo">578</span>      dataTestDirOnTestFS = null;<a name="line.578"></a>
+<span class="sourceLineNo">579</span>    return ret;<a name="line.579"></a>
+<span class="sourceLineNo">580</span>  }<a name="line.580"></a>
+<span class="sourceLineNo">581</span><a name="line.581"></a>
+<span class="sourceLineNo">582</span>  /**<a name="line.582"></a>
+<span class="sourceLineNo">583</span>   * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.583"></a>
+<span class="sourceLineNo">584</span>   * @return True if we removed child<a name="line.584"></a>
+<span class="sourceLineNo">585</span>   * @throws IOException<a name="line.585"></a>
+<span class="sourceLineNo">586</span>   */<a name="line.586"></a>
+<span class="sourceLineNo">587</span>  public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.587"></a>
+<span class="sourceLineNo">588</span>    Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.588"></a>
+<span class="sourceLineNo">589</span>    return getTestFileSystem().delete(cpath, true);<a name="line.589"></a>
+<span class="sourceLineNo">590</span>  }<a name="line.590"></a>
+<span class="sourceLineNo">591</span><a name="line.591"></a>
+<span class="sourceLineNo">592</span>  /**<a name="line.592"></a>
+<span class="sourceLineNo">593</span>   * Start a minidfscluster.<a name="line.593"></a>
+<span class="sourceLineNo">594</span>   * @param servers How many DNs to start.<a name="line.594"></a>
+<span class="sourceLineNo">595</span>   * @throws Exception<a name="line.595"></a>
+<span class="sourceLineNo">596</span>   * @see #shutdownMiniDFSCluster()<a name="line.596"></a>
+<span class="sourceLineNo">597</span>   * @return The mini dfs cluster created.<a name="line.597"></a>
+<span class="sourceLineNo">598</span>   */<a name="line.598"></a>
+<span class="sourceLineNo">599</span>  public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.599"></a>
+<span class="sourceLineNo">600</span>    return startMiniDFSCluster(servers, null);<a name="line.600"></a>
+<span class="sourceLineNo">601</span>  }<a name="line.601"></a>
+<span class="sourceLineNo">602</span><a name="line.602"></a>
+<span class="sourceLineNo">603</span>  /**<a name="line.603"></a>
+<span class="sourceLineNo">604</span>   * Start a minidfscluster.<a name="line.604"></a>
+<span class="sourceLineNo">605</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.605"></a>
+<span class="sourceLineNo">606</span>   * like HDFS block location verification.<a name="line.606"></a>
+<span class="sourceLineNo">607</span>   * If you start MiniDFSCluster without host names, all instances of the<a name="line.607"></a>
+<span class="sourceLineNo">608</span>   * datanodes will have the same host name.<a name="line.608"></a>
+<span class="sourceLineNo">609</span>   * @param hosts hostnames DNs to run on.<a name="line.609"></a>
+<span class="sourceLineNo">610</span>   * @throws Exception<a name="line.610"></a>
+<span class="sourceLineNo">611</span>   * @see #shutdownMiniDFSCluster()<a name="line.611"></a>
+<span class="sourceLineNo">612</span>   * @return The mini dfs cluster created.<a name="line.612"></a>
+<span class="sourceLineNo">613</span>   */<a name="line.613"></a>
+<span class="sourceLineNo">614</span>  public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.614"></a>
+<span class="sourceLineNo">615</span>  throws Exception {<a name="line.615"></a>
+<span class="sourceLineNo">616</span>    if ( hosts != null &amp;&amp; hosts.length != 0) {<a name="line.616"></a>
+<span class="sourceLineNo">617</span>      return startMiniDFSCluster(hosts.length, hosts);<a name="line.617"></a>
+<span class="sourceLineNo">618</span>    } else {<a name="line.618"></a>
+<span class="sourceLineNo">619</span>      return startMiniDFSCluster(1, null);<a name="line.619"></a>
+<span class="sourceLineNo">620</span>    }<a name="line.620"></a>
+<span class="sourceLineNo">621</span>  }<a name="line.621"></a>
+<span class="sourceLineNo">622</span><a name="line.622"></a>
+<span class="sourceLineNo">623</span>  /**<a name="line.623"></a>
+<span class="sourceLineNo">624</span>   * Start a minidfscluster.<a name="line.624"></a>
+<span class="sourceLineNo">625</span>   * Can only create one.<a name="line.625"></a>
+<span class="sourceLineNo">626</span>   * @param servers How many DNs to start.<a name="line.626"></a>
+<span class="sourceLineNo">627</span>   * @param hosts hostnames DNs to run on.<a name="line.627"></a>
+<span class="sourceLineNo">628</span>   * @throws Exception<a name="line.628"></a>
+<span class="sourceLineNo">629</span>   * @see #shutdownMiniDFSCluster()<a name="line.629"></a>
+<span class="sourceLineNo">630</span>   * @return The mini dfs cluster created.<a name="line.630"></a>
+<span class="sourceLineNo">631</span>   */<a name="line.631"></a>
+<span class="sourceLineNo">632</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.632"></a>
+<span class="sourceLineNo">633</span>  throws Exception {<a name="line.633"></a>
+<span class="sourceLineNo">634</span>    return startMiniDFSCluster(servers, null, hosts);<a name="line.634"></a>
+<span class="sourceLineNo">635</span>  }<a name="line.635"></a>
+<span class="sourceLineNo">636</span><a name="line.636"></a>
+<span class="sourceLineNo">637</span>  private void setFs() throws IOException {<a name="line.637"></a>
+<span class="sourceLineNo">638</span>    if(this.dfsCluster == null){<a name="line.638"></a>
+<span class="sourceLineNo">639</span>      LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.639"></a>
+<span class="sourceLineNo">640</span>      return;<a name="line.640"></a>
+<span class="sourceLineNo">641</span>    }<a name="line.641"></a>
+<span class="sourceLineNo">642</span>    FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.642"></a>
+<span class="sourceLineNo">643</span>    FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.643"></a>
 <span class="sourceLineNo">644</span><a name="line.644"></a>
-<span class="sourceLineNo">645</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final  String racks[], String hosts[])<a name="line.645"></a>
-<span class="sourceLineNo">646</span>      throws Exception {<a name="line.646"></a>
-<span class="sourceLineNo">647</span>    createDirsAndSetProperties();<a name="line.647"></a>
-<span class="sourceLineNo">648</span>    EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);<a name="line.648"></a>
-<span class="sourceLineNo">649</span><a name="line.649"></a>
-<span class="sourceLineNo">650</span>    // Error level to skip some warnings specific to the minicluster. See HBASE-4709<a name="line.650"></a>
-<span class="sourceLineNo">651</span>    org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).<a name="line.651"></a>
-<span class="sourceLineNo">652</span>        setLevel(org.apache.log4j.Level.ERROR);<a name="line.652"></a>
-<span class="sourceLineNo">653</span>    org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.impl.MetricsSystemImpl.class).<a name="line.653"></a>
-<span class="sourceLineNo">654</span>        setLevel(org.apache.log4j.Level.ERROR);<a name="line.654"></a>
-<span class="sourceLineNo">655</span><a name="line.655"></a>
-<span class="sourceLineNo">656</span>    TraceUtil.initTracer(conf);<a name="line.656"></a>
-<span class="sourceLineNo">657</span><a name="line.657"></a>
-<span class="sourceLineNo">658</span>    this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,<a name="line.658"></a>
-<span class="sourceLineNo">659</span>        true, null, racks, hosts, null);<a name="line.659"></a>
-<span class="sourceLineNo">660</span><a name="line.660"></a>
-<span class="sourceLineNo">661</span>    // Set this just-started cluster as our filesystem.<a name="line.661"></a>
-<span class="sourceLineNo">662</span>    setFs();<a name="line.662"></a>
-<span class="sourceLineNo">663</span><a name="line.663"></a>
-<span class="sourceLineNo">664</span>    // Wait for the cluster to be totally up<a name="line.664"></a>
-<span class="sourceLineNo">665</span>    this.dfsCluster.waitClusterUp();<a name="line.665"></a>
-<span class="sourceLineNo">666</span><a name="line.666"></a>
-<span class="sourceLineNo">667</span>    //reset the test directory for test file system<a name="line.667"></a>
-<span class="sourceLineNo">668</span>    dataTestDirOnTestFS = null;<a name="line.668"></a>
-<span class="sourceLineNo">669</span>    String dataTestDir = getDataTestDir().toString();<a name="line.669"></a>
-<span class="sourceLineNo">670</span>    conf.set(HConstants.HBASE_DIR, dataTestDir);<a name="line.670"></a>
-<span class="sourceLineNo">671</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.671"></a>
-<span class="sourceLineNo">672</span><a name="line.672"></a>
-<span class="sourceLineNo">673</span>    return this.dfsCluster;<a name="line.673"></a>
-<span class="sourceLineNo">674</span>  }<a name="line.674"></a>
-<span class="sourceLineNo">675</span><a name="line.675"></a>
-<span class="sourceLineNo">676</span>  public MiniDFSCluster startMiniDFSClusterForTestWAL(int namenodePort) throws IOException {<a name="line.676"></a>
-<span class="sourceLineNo">677</span>    createDirsAndSetProperties();<a name="line.677"></a>
-<span class="sourceLineNo">678</span>    dfsCluster = new MiniDFSCluster(namenodePort, conf, 5, false, true, true, null,<a name="line.678"></a>
-<span class="sourceLineNo">679</span>        null, null, null);<a name="line.679"></a>
-<span class="sourceLineNo">680</span>    return dfsCluster;<a name="line.680"></a>
-<span class="sourceLineNo">681</span>  }<a name="line.681"></a>
-<span class="sourceLineNo">682</span><a name="line.682"></a>
-<span class="sourceLineNo">683</span>  /** This is used before starting HDFS and map-reduce mini-clusters */<a name="line.683"></a>
-<span class="sourceLineNo">684</span>  private void createDirsAndSetProperties() throws IOException {<a name="line.684"></a>
-<span class="sourceLineNo">685</span>    setupClusterTestDir();<a name="line.685"></a>
-<span class="sourceLineNo">686</span>    conf.set(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.686"></a>
-<span class="sourceLineNo">687</span>    System.setProperty(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.687"></a>
-<span class="sourceLineNo">688</span>    createDirAndSetProperty("cache_data", "test.cache.data");<a name="line.688"></a>
-<span class="sourceLineNo">689</span>    createDirAndSetProperty("hadoop_tmp", "hadoop.tmp.dir");<a name="line.689"></a>
-<span class="sourceLineNo">690</span>    hadoopLogDir = createDirAndSetProperty("hadoop_logs", "hadoop.log.dir");<a name="line.690"></a>
-<span class="sourceLineNo">691</span>    createDirAndSetProperty("mapred_local", "mapreduce.cluster.local.dir");<a name="line.691"></a>
-<span class="sourceLineNo">692</span>    createDirAndSetProperty("mapred_temp", "mapreduce.cluster.temp.dir");<a name="line.692"></a>
-<span class="sourceLineNo">693</span>    enableShortCircuit();<a name="line.693"></a>
-<span class="sourceLineNo">694</span><a name="line.694"></a>
-<span class="sourceLineNo">695</span>    Path root = getDataTestDirOnTestFS("hadoop");<a name="line.695"></a>
-<span class="sourceLineNo">696</span>    conf.set(MapreduceTestingShim.getMROutputDirProp(),<a name="line.696"></a>
-<span class="sourceLineNo">697</span>      new Path(root, "mapred-output-dir").toString());<a name="line.697"></a>
-<span class="sourceLineNo">698</span>    conf.set("mapreduce.jobtracker.system.dir", new Path(root, "mapred-system-dir").toString());<a name="line.698"></a>
-<span class="sourceLineNo">699</span>    conf.set("mapreduce.jobtracker.staging.root.dir",<a name="line.699"></a>
-<span class="sourceLineNo">700</span>      new Path(root, "mapreduce-jobtracker-staging-root-dir").toString());<a name="line.700"></a>
-<span class="sourceLineNo">701</span>    conf.set("mapreduce.job.working.dir", new Path(root, "mapred-working-dir").toString());<a name="line.701"></a>
-<span class="sourceLineNo">702</span>    conf.set("yarn.app.mapreduce.am.staging-dir",<a name="line.702"></a>
-<span class="sourceLineNo">703</span>      new Path(root, "mapreduce-am-staging-root-dir").toString());<a name="line.703"></a>
-<span class="sourceLineNo">704</span>  }<a name="line.704"></a>
-<span class="sourceLineNo">705</span><a name="line.705"></a>
-<span class="sourceLineNo">706</span><a name="line.706"></a>
-<span class="sourceLineNo">707</span>  /**<a name="line.707"></a>
-<span class="sourceLineNo">708</span>   *  Get the HBase setting for dfs.client.read.shortcircuit from the conf or a system property.<a name="line.708"></a>
-<span class="sourceLineNo">709</span>   *  This allows to specify this parameter on the command line.<a name="line.709"></a>
-<span class="sourceLineNo">710</span>   *   If not set, default is true.<a name="line.710"></a>
-<span class="sourceLineNo">711</span>   */<a name="line.711"></a>
-<span class="sourceLineNo">712</span>  public boolean isReadShortCircuitOn(){<a name="line.712"></a>
-<span class="sourceLineNo">713</span>    final String propName = "hbase.tests.use.shortcircuit.reads";<a name="line.713"></a>
-<span class="sourceLineNo">714</span>    String readOnProp = System.getProperty(propName);<a name="line.714"></a>
-<span class="sourceLineNo">715</span>    if (readOnProp != null){<a name="line.715"></a>
-<span class="sourceLineNo">716</span>      return  Boolean.parseBoolean(readOnProp);<a name="line.716"></a>
-<span class="sourceLineNo">717</span>    } else {<a name="line.717"></a>
-<span class="sourceLineNo">718</span>      return conf.getBoolean(propName, false);<a name="line.718"></a>
-<span class="sourceLineNo">719</span>    }<a name="line.719"></a>
-<span class="sourceLineNo">720</span>  }<a name="line.720"></a>
-<span class="sourceLineNo">721</span><a name="line.721"></a>
-<span class="sourceLineNo">722</span>  /** Enable the short circuit read, unless configured differently.<a name="line.722"></a>
-<span class="sourceLineNo">723</span>   * Set both HBase and HDFS settings, including skipping the hdfs checksum checks.<a name="line.723"></a>
-<span class="sourceLineNo">724</span>   */<a name="line.724"></a>
-<span class="sourceLineNo">725</span>  private void enableShortCircuit() {<a name="line.725"></a>
-<span class="sourceLineNo">726</span>    if (isReadShortCircuitOn()) {<a name="line.726"></a>
-<span class="sourceLineNo">727</span>      String curUser = System.getProperty("user.name");<a name="line.727"></a>
-<span class="sourceLineNo">728</span>      LOG.info("read short circuit is ON for user " + curUser);<a name="line.728"></a>
-<span class="sourceLineNo">729</span>      // read short circuit, for hdfs<a name="line.729"></a>
-<span class="sourceLineNo">730</span>      conf.set("dfs.block.local-path-access.user", curUser);<a name="line.730"></a>
-<span class="sourceLineNo">731</span>      // read short circuit, for hbase<a name="line.731"></a>
-<span class="sourceLineNo">732</span>      conf.setBoolean("dfs.client.read.shortcircuit", true);<a name="line.732"></a>
-<span class="sourceLineNo">733</span>      // Skip checking checksum, for the hdfs client and the datanode<a name="line.733"></a>
-<span class="sourceLineNo">734</span>      conf.setBoolean("dfs.client.read.shortcircuit.skip.checksum", true);<a name="line.734"></a>
-<span class="sourceLineNo">735</span>    } else {<a name="line.735"></a>
-<span class="sourceLineNo">736</span>      LOG.info("read short circuit is OFF");<a name="line.736"></a>
-<span class="sourceLineNo">737</span>    }<a name="line.737"></a>
-<span class="sourceLineNo">738</span>  }<a name="line.738"></a>
-<span class="sourceLineNo">739</span><a name="line.739"></a>
-<span class="sourceLineNo">740</span>  private String createDirAndSetProperty(final String relPath, String property) {<a name="line.740"></a>
-<span class="sourceLineNo">741</span>    String path = getDataTestDir(relPath).toString();<a name="line.741"></a>
-<span class="sourceLineNo">742</span>    System.setProperty(property, path);<a name="line.742"></a>
-<span class="sourceLineNo">743</span>    conf.set(property, path);<a name="line.743"></a>
-<span class="sourceLineNo">744</span>    new File(path).mkdirs();<a name="line.744"></a>
-<span class="sourceLineNo">745</span>    LOG.info("Setting " + property + " to " + path + " in system properties and HBase conf");<a name="line.745"></a>
-<span class="sourceLineNo">746</span>    return path;<a name="line.746"></a>
-<span class="sourceLineNo">747</span>  }<a name="line.747"></a>
-<span class="sourceLineNo">748</span><a name="line.748"></a>
-<span class="sourceLineNo">749</span>  /**<a name="line.749"></a>
-<span class="sourceLineNo">750</span>   * Shuts down instance created by call to {@link #startMiniDFSCluster(int)}<a name="line.750"></a>
-<span class="sourceLineNo">751</span>   * or does nothing.<a name="line.751"></a>
-<span class="sourceLineNo">752</span>   * @throws IOException<a name="line.752"></a>
-<span class="sourceLineNo">753</span>   */<a name="line.753"></a>
-<span class="sourceLineNo">754</span>  public void shutdownMiniDFSCluster() throws IOException {<a name="line.754"></a>
-<span class="sourceLineNo">755</span>    if (this.dfsCluster != null) {<a name="line.755"></a>
-<span class="sourceLineNo">756</span>      // The below throws an exception per dn, AsynchronousCloseException.<a name="line.756"></a>
-<span class="sourceLineNo">757</span>      this.dfsCluster.shutdown();<a name="line.757"></a>
-<span class="sourceLineNo">758</span>      dfsCluster = null;<a name="line.758"></a>
-<span class="sourceLineNo">759</span>      dataTestDirOnTestFS = null;<a name="line.759"></a>
-<span class="sourceLineNo">760</span>      FSUtils.setFsDefault(this.conf, new Path("file:///"));<a name="line.760"></a>
-<span class="sourceLineNo">761</span>    }<a name="line.761"></a>
-<span class="sourceLineNo">762</span>  }<a name="line.762"></a>
-<span class="sourceLineNo">763</span><a name="line.763"></a>
-<span class="sourceLineNo">764</span><a name="line.764"></a>
-<span class="sourceLineNo">765</span>  /**<a name="line.765"></a>
-<span class="sourceLineNo">766</span>   * Start up a minicluster of hbase, dfs, and zookeeper.<a name="line.766"></a>
-<span class="sourceLineNo">767</span>   * @throws Exception<a name="line.767"></a>
-<span class="sourceLineNo">768</span>   * @return Mini hbase cluster instance created.<a name="line.768"></a>
-<span class="sourceLineNo">769</span>   * @see #shutdownMiniDFSCluster()<a name="line.769"></a>
-<span class="sourceLineNo">770</span>   */<a name="line.770"></a>
-<span class="sourceLineNo">771</span>  public MiniHBaseCluster startMiniCluster() throws Exception {<a name="line.771"></a>
-<span class="sourceLineNo">772</span>    return startMiniCluster(1, 1);<a name="line.772"></a>
-<span class="sourceLineNo">773</span>  }<a name="line.773"></a>
-<span class="sourceLineNo">774</span><a name="line.774"></a>
-<span class="sourceLineNo">775</span>  /**<a name="line.775"></a>
-<span class="sourceLineNo">776</span>   * Start up a minicluster of hbase, dfs, and zookeeper where WAL's walDir is created separately.<a name="line.776"></a>
-<span class="sourceLineNo">777</span>   * @throws Exception<a name="line.777"></a>
-<span class="sourceLineNo">778</span>   * @return Mini hbase cluster instance created.<a name="line.778"></a>
-<span class="sourceLineNo">779</span>   * @see #shutdownMiniDFSCluster()<a name="line.779"></a>
-<span class="sourceLineNo">780</span>   */<a name="line.780"></a>
-<span class="sourceLineNo">781</span>  public MiniHBaseCluster startMiniCluster(boolean withWALDir) throws Exception {<a name="line.781"></a>
-<span class="sourceLineNo">782</span>    return startMiniCluster(1, 1, 1, null, null, null, false, withWALDir);<a name="line.782"></a>
-<span class="sourceLineNo">783</span>  }<a name="line.783"></a>
-<span class="sourceLineNo">784</span><a name="line.784"></a>
-<span class="sourceLineNo">785</span>  /**<a name="line.785"></a>
-<span class="sourceLineNo">786</span>   * Start up a minicluster of hbase, dfs, and zookeeper.<a name="line.786"></a>
-<span class="sourceLineNo">787</span>   * Set the &lt;code&gt;create&lt;/code&gt; flag to create root or data directory path or not<a name="line.787"></a>
-<span class="sourceLineNo">788</span>   * (will overwrite if dir already exists)<a name="line.788"></a>
-<span class="sourceLineNo">789</span>   * @throws Exception<a name="line.789"></a>
-<span class="sourceLineNo">790</span>   * @return Mini hbase cluster instance created.<a name="line.790"></a>
-<span class="sourceLineNo">791</span>   * @see #shutdownMiniDFSCluster()<a name="line.791"></a>
-<span class="sourceLineNo">792</span>   */<a name="line.792"></a>
-<span class="sourceLineNo">793</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves, boolean create)<a name="line.793"></a>
-<span class="sourceLineNo">794</span>  throws Exception {<a name="line.794"></a>
-<span class="sourceLineNo">795</span>    return startMiniCluster(1, numSlaves, create);<a name="line.795"></a>
-<span class="sourceLineNo">796</span>  }<a name="line.796"></a>
-<span class="sourceLineNo">797</span><a name="line.797"></a>
-<span class="sourceLineNo">798</span>  /**<a name="line.798"></a>
-<span class="sourceLineNo">799</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.799"></a>
-<span class="sourceLineNo">800</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.800"></a>
-<span class="sourceLineNo">801</span>   * subdirectory in a directory under System property test.build.data.<a name="line.801"></a>
-<span class="sourceLineNo">802</span>   * Directory is cleaned up on exit.<a name="line.802"></a>
-<span class="sourceLineNo">803</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.803"></a>
-<span class="sourceLineNo">804</span>   * datanodes and regionservers.  If numSlaves is &gt; 1, then make sure<a name="line.804"></a>
-<span class="sourceLineNo">805</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.805"></a>
-<span class="sourceLineNo">806</span>   * bind errors.<a name="line.806"></a>
-<span class="sourceLineNo">807</span>   * @throws Exception<a name="line.807"></a>
-<span class="sourceLineNo">808</span>   * @see #shutdownMiniCluster()<a name="line.808"></a>
-<span class="sourceLineNo">809</span>   * @return Mini hbase cluster instance created.<a name="line.809"></a>
-<span class="sourceLineNo">810</span>   */<a name="line.810"></a>
-<span class="sourceLineNo">811</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves)<a name="line.811"></a>
-<span class="sourceLineNo">812</span>  throws Exception {<a name="line.812"></a>
-<span class="sourceLineNo">813</span>    return startMiniCluster(1, numSlaves, false);<a name="line.813"></a>
-<span class="sourceLineNo">814</span>  }<a name="line.814"></a>
-<span class="sourceLineNo">815</span><a name="line.815"></a>
-<span class="sourceLineNo">816</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves, boolean create, boolean withWALDir)<a name="line.816"></a>
-<span class="sourceLineNo">817</span>          throws Exception {<a name="line.817"></a>
-<span class="sourceLineNo">818</span>    return startMiniCluster(1, numSlaves, numSlaves, null, null, null, create, withWALDir);<a name="line.818"></a>
-<span class="sourceLineNo">819</span>  }<a name="line.819"></a>
-<span class="sourceLineNo">820</span><a name="line.820"></a>
-<span class="sourceLineNo">821</span>  /**<a name="line.821"></a>
-<span class="sourceLineNo">822</span>   * Start minicluster. Whether to create a new root or data dir path even if such a path<a name="line.822"></a>
-<span class="sourceLineNo">823</span>   * has been created earlier is decided based on flag &lt;code&gt;create&lt;/code&gt;<a name="line.823"></a>
-<span class="sourceLineNo">824</span>   * @throws Exception<a name="line.824"></a>
-<span class="sourceLineNo">825</span>   * @see #shutdownMiniCluster()<a name="line.825"></a>
-<span class="sourceLineNo">826</span>   * @return Mini hbase cluster instance created.<a name="line.826"></a>
-<span class="sourceLineNo">827</span>   */<a name="line.827"></a>
-<span class="sourceLineNo">828</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.828"></a>
-<span class="sourceLineNo">829</span>      final int numSlaves, boolean create)<a name="line.829"></a>
-<span class="sourceLineNo">830</span>    throws Exception {<a name="line.830"></a>
-<span class="sourceLineNo">831</span>      return startMiniCluster(numMasters, numSlaves, null, create);<a name="line.831"></a>
-<span class="sourceLineNo">832</span>  }<a name="line.832"></a>
-<span class="sourceLineNo">833</span><a name="line.833"></a>
-<span class="sourceLineNo">834</span>  /**<a name="line.834"></a>
-<span class="sourceLineNo">835</span>   * start minicluster<a name="line.835"></a>
-<span class="sourceLineNo">836</span>   * @throws Exception<a name="line.836"></a>
-<span class="sourceLineNo">837</span>   * @see #shutdownMiniCluster()<a name="line.837"></a>
-<span class="sourceLineNo">838</span>   * @return Mini hbase cluster instance created.<a name="line.838"></a>
-<span class="sourceLineNo">839</span>   */<a name="line.839"></a>
-<span class="sourceLineNo">840</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.840"></a>
-<span class="sourceLineNo">841</span>    final int numSlaves)<a name="line.841"></a>
-<span class="sourceLineNo">842</span>  throws Exception {<a name="line.842"></a>
-<span class="sourceLineNo">843</span>    return startMiniCluster(numMasters, numSlaves, null, false);<a name="line.843"></a>
-<span class="sourceLineNo">844</span>  }<a name="line.844"></a>
-<span class="sourceLineNo">845</span><a name="line.845"></a>
-<span class="sourceLineNo">846</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.846"></a>
-<span class="sourceLineNo">847</span>      final int numSlaves, final String[] dataNodeHosts, boolean create)<a name="line.847"></a>
-<span class="sourceLineNo">848</span>      throws Exception {<a name="line.848"></a>
-<span class="sourceLineNo">849</span>    return startMiniCluster(numMasters, numSlaves, numSlaves, dataNodeHosts,<a name="line.849"></a>
-<span class="sourceLineNo">850</span>        null, null, create, false);<a name="line.850"></a>
-<span class="sourceLineNo">851</span>  }<a name="line.851"></a>
-<span class="sourceLineNo">852</span><a name="line.852"></a>
-<span class="sourceLineNo">853</span>  /**<a name="line.853"></a>
-<span class="sourceLineNo">854</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.854"></a>
-<span class="sourceLineNo">855</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.855"></a>
-<span class="sourceLineNo">856</span>   * subdirectory in a directory under System property test.build.data.<a name="line.856"></a>
-<span class="sourceLineNo">857</span>   * Directory is cleaned up on exit.<a name="line.857"></a>
-<span class="sourceLineNo">858</span>   * @param numMasters Number of masters to start up.  We'll start this many<a name="line.858"></a>
-<span class="sourceLineNo">859</span>   * hbase masters.  If numMasters &gt; 1, you can find the active/primary master<a name="line.859"></a>
-<span class="sourceLineNo">860</span>   * with {@link MiniHBaseCluster#getMaster()}.<a name="line.860"></a>
-<span class="sourceLineNo">861</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.861"></a>
-<span class="sourceLineNo">862</span>   * regionservers. If dataNodeHosts == null, this also indicates the number of<a name="line.862"></a>
-<span class="sourceLineNo">863</span>   * datanodes to start. If dataNodeHosts != null, the number of datanodes is<a name="line.863"></a>
-<span class="sourceLineNo">864</span>   * based on dataNodeHosts.length.<a name="line.864"></a>
-<span class="sourceLineNo">865</span>   * If numSlaves is &gt; 1, then make sure<a name="line.865"></a>
-<span class="sourceLineNo">866</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.866"></a>
-<span class="sourceLineNo">867</span>   * bind errors.<a name="line.867"></a>
-<span class="sourceLineNo">868</span>   * @param dataNodeHosts hostnames DNs to run on.<a name="line.868"></a>
-<span class="sourceLineNo">869</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.869"></a>
-<span class="sourceLineNo">870</span>   * like HDFS block location verification.<a name="line.870"></a>
-<span class="sourceLineNo">871</span>   * If you start MiniDFSCluster without host names,<a name="line.871"></a>
-<span class="sourceLineNo">872</span>   * all instances of the datanodes will have the same host name.<a name="line.872"></a>
-<span class="sourceLineNo">873</span>   * @throws Exception<a name="line.873"></a>
-<span class="sourceLineNo">874</span>   * @see #shutdownMiniCluster()<a name="line.874"></a>
-<span class="sourceLineNo">875</span>   * @return Mini hbase cluster instance created.<a name="line.875"></a>
-<span class="sourceLineNo">876</span>   */<a name="line.876"></a>
-<span class="sourceLineNo">877</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.877"></a>
-<span class="sourceLineNo">878</span>      final int numSlaves, final String[] dataNodeHosts) throws Exception {<a name="line.878"></a>
-<span class="sourceLineNo">879</span>    return startMiniCluster(numMasters, numSlaves, numSlaves, dataNodeHosts,<a name="line.879"></a>
-<span class="sourceLineNo">880</span>        null, null);<a name="line.880"></a>
-<span class="sourceLineNo">881</span>  }<a name="line.881"></a>
-<span class="sourceLineNo">882</span><a name="line.882"></a>
-<span class="sourceLineNo">883</span>  /**<a name="line.883"></a>
-<span class="sourceLineNo">884</span>   * Same as {@link #startMiniCluster(int, int)}, but with custom number of datanodes.<a name="line.884"></a>
-<span class="sourceLineNo">885</span>   * @param numDataNodes Number of data nodes.<a name="line.885"></a>
-<span class="sourceLineNo">886</span>   */<a name="line.886"></a>
-<span class="sourceLineNo">887</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.887"></a>
-<span class="sourceLineNo">888</span>      final int numSlaves, final int numDataNodes) throws Exception {<a name="line.888"></a>
-<span class="sourceLineNo">889</span>    return startMiniCluster(numMasters, numSlaves, numDataNodes, null, null, null);<a name="line.889"></a>
-<span class="sourceLineNo">890</span>  }<a name="line.890"></a>
-<span class="sourceLineNo">891</span><a name="line.891"></a>
-<span class="sourceLineNo">892</span>  /**<a name="line.892"></a>
-<span class="sourceLineNo">893</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.893"></a>
-<span class="sourceLineNo">894</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.894"></a>
-<span class="sourceLineNo">895</span>   * subdirectory in a directory under System property test.build.data.<a name="line.895"></a>
-<span class="sourceLineNo">896</span>   * Directory is cleaned up on exit.<a name="line.896"></a>
-<span class="sourceLineNo">897</span>   * @param numMasters Number of masters to start up.  We'll start this many<a name="line.897"></a>
-<span class="sourceLineNo">898</span>   * hbase masters.  If numMasters &gt; 1, you can find the active/primary master<a name="line.898"></a>
-<span class="sourceLineNo">899</span>   * with {@link MiniHBaseCluster#getMaster()}.<a name="line.899"></a>
-<span class="sourceLineNo">900</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.900"></a>
-<span class="sourceLineNo">901</span>   * regionservers. If dataNodeHosts == null, this also indicates the number of<a name="line.901"></a>
-<span class="sourceLineNo">902</span>   * datanodes to start. If dataNodeHosts != null, the number of datanodes is<a name="line.902"></a>
-<span class="sourceLineNo">903</span>   * based on dataNodeHosts.length.<a name="line.903"></a>
-<span class="sourceLineNo">904</span>   * If numSlaves is &gt; 1, then make sure<a name="line.904"></a>
-<span class="sourceLineNo">905</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.905"></a>
-<span class="sourceLineNo">906</span>   * bind errors.<a name="line.906"></a>
-<span class="sourceLineNo">907</span>   * @param dataNodeHosts hostnames DNs to run on.<a name="line.907"></a>
-<span class="sourceLineNo">908</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.908"></a>
-<span class="sourceLineNo">909</span>   * like HDFS block location verification.<a name="line.909"></a>
-<span class="sourceLineNo">910</span>   * If you start MiniDFSCluster without host names,<a name="line.910"></a>
-<span class="sourceLineNo">911</span>   * all instances of the datanodes will have the same host name.<a name="line.911"></a>
-<span class="sourceLineNo">912</span>   * @param masterClass The class to use as HMaster, or null for default<a name="line.912"></a>
-<span class="sourceLineNo">913</span>   * @param regionserverClass The class to use as HRegionServer, or null for<a name="line.913"></a>
-<span class="sourceLineNo">914</span>   * default<a name="line.914"></a>
-<span class="sourceLineNo">915</span>   * @throws Exception<a name="line.915"></a>
-<span class="sourceLineNo">916</span>   * @see #shutdownMiniCluster()<a name="line.916"></a>
-<span class="sourceLineNo">917</span>   * @return Mini hbase cluster instance created.<a name="line.917"></a>
-<span class="sourceLineNo">918</span>   */<a name="line.918"></a>
-<span class="sourceLineNo">919</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.919"></a>
-<span class="sourceLineNo">920</span>      final int numSlaves, final String[] dataNodeHosts, Class&lt;? extends HMaster&gt; masterClass,<a name="line.920"></a>
-<span class="sourceLineNo">921</span>      Class&lt;? extends MiniHBaseCluster.MiniHBaseClusterRegionServer&gt; regionserverClass)<a name="line.921"></a>
-<span class="sourceLineNo">922</span>          throws Exception {<a name="line.922"></a>
-<span class="sourceLineNo">923</span>    return startMiniCluster(<a name="line.923"></a>
-<span class="sourceLineNo">924</span>        numMasters, numSlaves, numSlaves, dataNodeHosts, masterClass, regionserverClass);<a name="line.924"></a>
-<span

<TRUNCATED>

[06/10] hbase-site git commit: Published site at 03e596c6694a21768c51a3c52e1a032f51fd637c.

Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/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 05bf61a..a5bfb19 100644
--- a/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
+++ b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html
@@ -2108,7 +2108,7 @@ private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/jav
 <ul class="blockList">
 <li class="blockList">
 <h4>fam1</h4>
-<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1676">fam1</a></pre>
+<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1680">fam1</a></pre>
 </li>
 </ul>
 <a name="fam2">
@@ -2117,7 +2117,7 @@ private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/jav
 <ul class="blockList">
 <li class="blockList">
 <h4>fam2</h4>
-<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1677">fam2</a></pre>
+<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1681">fam2</a></pre>
 </li>
 </ul>
 <a name="fam3">
@@ -2126,7 +2126,7 @@ private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/jav
 <ul class="blockList">
 <li class="blockList">
 <h4>fam3</h4>
-<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1678">fam3</a></pre>
+<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1682">fam3</a></pre>
 </li>
 </ul>
 <a name="COLUMNS">
@@ -2135,7 +2135,7 @@ private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/jav
 <ul class="blockList">
 <li class="blockList">
 <h4>COLUMNS</h4>
-<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1679">COLUMNS</a></pre>
+<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1683">COLUMNS</a></pre>
 </li>
 </ul>
 <a name="MAXVERSIONS">
@@ -2144,7 +2144,7 @@ private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/jav
 <ul class="blockList">
 <li class="blockList">
 <h4>MAXVERSIONS</h4>
-<pre>private static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1680">MAXVERSIONS</a></pre>
+<pre>private static final&nbsp;int <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1684">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>
@@ -2157,7 +2157,7 @@ private static final&nbsp;<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&nbsp;char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1682">FIRST_CHAR</a></pre>
+<pre>public static final&nbsp;char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1686">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>
@@ -2170,7 +2170,7 @@ private static final&nbsp;<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&nbsp;char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1683">LAST_CHAR</a></pre>
+<pre>public static final&nbsp;char <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1687">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>
@@ -2183,7 +2183,7 @@ private static final&nbsp;<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&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1684">START_KEY_BYTES</a></pre>
+<pre>public static final&nbsp;byte[] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1688">START_KEY_BYTES</a></pre>
 </li>
 </ul>
 <a name="START_KEY">
@@ -2192,7 +2192,7 @@ private static final&nbsp;<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&nbsp;<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.1685">START_KEY</a></pre>
+<pre>public static final&nbsp;<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.1689">START_KEY</a></pre>
 </li>
 </ul>
 <a name="ROWS">
@@ -2201,7 +2201,7 @@ private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/jav
 <ul class="blockList">
 <li class="blockList">
 <h4>ROWS</h4>
-<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2238">ROWS</a></pre>
+<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2242">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>
@@ -2211,7 +2211,7 @@ private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/jav
 <ul class="blockList">
 <li class="blockList">
 <h4>KEYS</h4>
-<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2253">KEYS</a></pre>
+<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2257">KEYS</a></pre>
 </li>
 </ul>
 <a name="KEYS_FOR_HBA_CREATE_TABLE">
@@ -2220,7 +2220,7 @@ private static final&nbsp;<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&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2265">KEYS_FOR_HBA_CREATE_TABLE</a></pre>
+<pre>public static final&nbsp;byte[][] <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2269">KEYS_FOR_HBA_CREATE_TABLE</a></pre>
 </li>
 </ul>
 <a name="hbaseAdmin">
@@ -2229,7 +2229,7 @@ private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/jav
 <ul class="blockList">
 <li class="blockList">
 <h4>hbaseAdmin</h4>
-<pre>private&nbsp;org.apache.hadoop.hbase.client.HBaseAdmin <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2801">hbaseAdmin</a></pre>
+<pre>private&nbsp;org.apache.hadoop.hbase.client.HBaseAdmin <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.2805">hbaseAdmin</a></pre>
 </li>
 </ul>
 <a name="random">
@@ -2238,7 +2238,7 @@ private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/jav
 <ul class="blockList">
 <li class="blockList">
 <h4>random</h4>
-<pre>private static&nbsp;<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.3543">random</a></pre>
+<pre>private static&nbsp;<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.3547">random</a></pre>
 </li>
 </ul>
 <a name="portAllocator">
@@ -2247,7 +2247,7 @@ private static final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/jav
 <ul class="blockListLast">
 <li class="blockList">
 <h4>portAllocator</h4>
-<pre>private static final&nbsp;<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.3545">portAllocator</a></pre>
+<pre>private static final&nbsp;<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.3549">portAllocator</a></pre>
 </li>
 </ul>
 </li>
@@ -2362,7 +2362,7 @@ private static final&nbsp;<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&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.356">createLocalHTU</a>()</pre>
+public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.360">createLocalHTU</a>()</pre>
 <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<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>
@@ -2377,7 +2377,7 @@ public static&nbsp;<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&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.365">createLocalHTU</a>(org.apache.hadoop.conf.Configuration&nbsp;c)</pre>
+public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html" title="class in org.apache.hadoop.hbase">HBaseTestingUtility</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.369">createLocalHTU</a>(org.apache.hadoop.conf.Configuration&nbsp;c)</pre>
 <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<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>
@@ -2391,7 +2391,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>closeRegionAndWAL</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.372">closeRegionAndWAL</a>(org.apache.hadoop.hbase.regionserver.Region&nbsp;r)
+<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.376">closeRegionAndWAL</a>(org.apache.hadoop.hbase.regionserver.Region&nbsp;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>
@@ -2406,7 +2406,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>closeRegionAndWAL</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.379">closeRegionAndWAL</a>(org.apache.hadoop.hbase.regionserver.HRegion&nbsp;r)
+<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.383">closeRegionAndWAL</a>(org.apache.hadoop.hbase.regionserver.HRegion&nbsp;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>
@@ -2421,7 +2421,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>getConfiguration</h4>
-<pre>public&nbsp;org.apache.hadoop.conf.Configuration&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.398">getConfiguration</a>()</pre>
+<pre>public&nbsp;org.apache.hadoop.conf.Configuration&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.402">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
@@ -2444,7 +2444,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>setHBaseCluster</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.402">setHBaseCluster</a>(<a href="../../../../org/apache/hadoop/hbase/HBaseCluster.html" title="class in org.apache.hadoop.hbase">HBaseCluster</a>&nbsp;hbaseCluster)</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.406">setHBaseCluster</a>(<a href="../../../../org/apache/hadoop/hbase/HBaseCluster.html" title="class in org.apache.hadoop.hbase">HBaseCluster</a>&nbsp;hbaseCluster)</pre>
 </li>
 </ul>
 <a name="setupDataTestDir--">
@@ -2453,7 +2453,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>setupDataTestDir</h4>
-<pre>protected&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.423">setupDataTestDir</a>()</pre>
+<pre>protected&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.427">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>
@@ -2480,7 +2480,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>createSubDirAndSystemProperty</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.447">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>&nbsp;propertyName,
+<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.451">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>&nbsp;propertyName,
                                            org.apache.hadoop.fs.Path&nbsp;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>&nbsp;subDirName)</pre>
 </li>
@@ -2491,7 +2491,7 @@ public static&nbsp;<a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtil
 <ul class="blockList">
 <li class="blockList">
 <h4>getBaseTestDirOnTestFS</h4>
-<pre>private&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.479">getBaseTestDirOnTestFS</a>()
+<pre>private&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.483">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>
@@ -2512,7 +2512,7 @@ public static&nbsp;<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&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.490">getMetaTableDescriptor</a>()</pre>
+public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.494">getMetaTableDescriptor</a>()</pre>
 <div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;<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>
@@ -2527,7 +2527,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>getMetaTableDescriptorBuilder</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.TableDescriptorBuilder&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.497">getMetaTableDescriptorBuilder</a>()</pre>
+<pre>public&nbsp;org.apache.hadoop.hbase.client.TableDescriptorBuilder&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.501">getMetaTableDescriptorBuilder</a>()</pre>
 <dl>
 <dt><span class="returnLabel">Returns:</span></dt>
 <dd>META table descriptor</dd>
@@ -2540,7 +2540,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>getDataTestDirOnTestFS</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.511">getDataTestDirOnTestFS</a>()
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.515">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
@@ -2559,7 +2559,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>getDataTestDirOnTestFS</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.526">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>&nbsp;subdirName)
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.530">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>&nbsp;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
@@ -2580,7 +2580,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>setupDataTestDirOnTestFS</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.534">setupDataTestDirOnTestFS</a>()
+<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.538">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>
@@ -2596,7 +2596,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>getNewDataTestDirOnTestFS</h4>
-<pre>private&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.546">getNewDataTestDirOnTestFS</a>()
+<pre>private&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.550">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>
@@ -2611,7 +2611,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>cleanupDataTestDirOnTestFS</h4>
-<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.571">cleanupDataTestDirOnTestFS</a>()
+<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.575">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>
@@ -2628,7 +2628,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>cleanupDataTestDirOnTestFS</h4>
-<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.583">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>&nbsp;subdirName)
+<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.587">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>&nbsp;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>
@@ -2645,7 +2645,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniDFSCluster</h4>
-<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.595">startMiniDFSCluster</a>(int&nbsp;servers)
+<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.599">startMiniDFSCluster</a>(int&nbsp;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>
@@ -2666,7 +2666,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniDFSCluster</h4>
-<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.610">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>[]&nbsp;hosts)
+<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.614">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>[]&nbsp;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
@@ -2691,7 +2691,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniDFSCluster</h4>
-<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.628">startMiniDFSCluster</a>(int&nbsp;servers,
+<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.632">startMiniDFSCluster</a>(int&nbsp;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>[]&nbsp;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.
@@ -2715,7 +2715,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>setFs</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.633">setFs</a>()
+<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.637">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>
@@ -2729,7 +2729,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniDFSCluster</h4>
-<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.645">startMiniDFSCluster</a>(int&nbsp;servers,
+<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.649">startMiniDFSCluster</a>(int&nbsp;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>[]&nbsp;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>[]&nbsp;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>
@@ -2745,7 +2745,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniDFSClusterForTestWAL</h4>
-<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.676">startMiniDFSClusterForTestWAL</a>(int&nbsp;namenodePort)
+<pre>public&nbsp;org.apache.hadoop.hdfs.MiniDFSCluster&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.680">startMiniDFSClusterForTestWAL</a>(int&nbsp;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>
@@ -2759,7 +2759,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createDirsAndSetProperties</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.684">createDirsAndSetProperties</a>()
+<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.688">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>
@@ -2774,7 +2774,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>isReadShortCircuitOn</h4>
-<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.712">isReadShortCircuitOn</a>()</pre>
+<pre>public&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.716">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>
@@ -2786,7 +2786,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>enableShortCircuit</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.725">enableShortCircuit</a>()</pre>
+<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.729">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>
@@ -2797,7 +2797,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createDirAndSetProperty</h4>
-<pre>private&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.740">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>&nbsp;relPath,
+<pre>private&nbsp;<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>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.744">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>&nbsp;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>&nbsp;property)</pre>
 </li>
 </ul>
@@ -2807,7 +2807,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>shutdownMiniDFSCluster</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.754">shutdownMiniDFSCluster</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.758">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>
@@ -2823,7 +2823,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.771">startMiniCluster</a>()
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.775">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.</div>
 <dl>
@@ -2842,7 +2842,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.781">startMiniCluster</a>(boolean&nbsp;withWALDir)
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.785">startMiniCluster</a>(boolean&nbsp;withWALDir)
                                   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 where WAL's walDir is created separately.</div>
 <dl>
@@ -2861,7 +2861,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.793">startMiniCluster</a>(int&nbsp;numSlaves,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.797">startMiniCluster</a>(int&nbsp;numSlaves,
                                          boolean&nbsp;create)
                                   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.
@@ -2883,7 +2883,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.811">startMiniCluster</a>(int&nbsp;numSlaves)
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.815">startMiniCluster</a>(int&nbsp;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, optionally dfs, and zookeeper.
  Modifies Configuration.  Homes the cluster data directory under a random
@@ -2910,7 +2910,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.816">startMiniCluster</a>(int&nbsp;numSlaves,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.820">startMiniCluster</a>(int&nbsp;numSlaves,
                                          boolean&nbsp;create,
                                          boolean&nbsp;withWALDir)
                                   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>
@@ -2926,7 +2926,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.828">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.832">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;numSlaves,
                                          boolean&nbsp;create)
                                   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>
@@ -2948,7 +2948,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.840">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.844">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;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 minicluster</div>
@@ -2968,7 +2968,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.846">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.850">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;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>[]&nbsp;dataNodeHosts,
                                          boolean&nbsp;create)
@@ -2985,7 +2985,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.877">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.881">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;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>[]&nbsp;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>
@@ -3025,7 +3025,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.887">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.891">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;numSlaves,
                                          int&nbsp;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>
@@ -3044,7 +3044,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.919">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.923">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;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>[]&nbsp;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>&lt;? extends org.apache.hadoop.hbase.master.HMaster&gt;&nbsp;masterClass,
@@ -3089,7 +3089,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.927">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.931">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;numSlaves,
                                          int&nbsp;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>[]&nbsp;dataNodeHosts,
@@ -3108,7 +3108,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.943">startMiniCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.947">startMiniCluster</a>(int&nbsp;numMasters,
                                          int&nbsp;numSlaves,
                                          int&nbsp;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>[]&nbsp;dataNodeHosts,
@@ -3135,7 +3135,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniHBaseCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.982">startMiniHBaseCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.986">startMiniHBaseCluster</a>(int&nbsp;numMasters,
                                               int&nbsp;numSlaves)
                                        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>
@@ -3152,7 +3152,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniHBaseCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.987">startMiniHBaseCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.991">startMiniHBaseCluster</a>(int&nbsp;numMasters,
                                               int&nbsp;numSlaves,
                                               <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>&lt;<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>&gt;&nbsp;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>,
@@ -3170,7 +3170,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>startMiniHBaseCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1007">startMiniHBaseCluster</a>(int&nbsp;numMasters,
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1011">startMiniHBaseCluster</a>(int&nbsp;numMasters,
                                               int&nbsp;numSlaves,
                                               <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>&lt;<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>&gt;&nbsp;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>&lt;? extends org.apache.hadoop.hbase.master.HMaster&gt;&nbsp;masterClass,
@@ -3206,7 +3206,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>restartHBaseCluster</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1054">restartHBaseCluster</a>(int&nbsp;servers)
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1058">restartHBaseCluster</a>(int&nbsp;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
@@ -3226,7 +3226,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>getMiniHBaseCluster</h4>
-<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1082">getMiniHBaseCluster</a>()</pre>
+<pre>public&nbsp;<a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a>&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1086">getMiniHBaseCluster</a>()</pre>
 <dl>
 <dt><span class="returnLabel">Returns:</span></dt>
 <dd>Current mini hbase cluster. Only has something in it after a call
@@ -3242,7 +3242,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>shutdownMiniCluster</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1095">shutdownMiniCluster</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1099">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>
@@ -3260,7 +3260,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>shutdownMiniHBaseCluster</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1109">shutdownMiniHBaseCluster</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1113">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>
@@ -3275,7 +3275,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>getDefaultRootDirPath</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1141">getDefaultRootDirPath</a>(boolean&nbsp;create)
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1145">getDefaultRootDirPath</a>(boolean&nbsp;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
@@ -3295,7 +3295,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>getDefaultRootDirPath</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1156">getDefaultRootDirPath</a>()
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1160">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.
@@ -3314,7 +3314,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createRootDir</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1172">createRootDir</a>(boolean&nbsp;create)
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1176">createRootDir</a>(boolean&nbsp;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
@@ -3339,7 +3339,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createRootDir</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1187">createRootDir</a>()
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1191">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>
@@ -3357,7 +3357,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createWALRootDir</h4>
-<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1200">createWALRootDir</a>()
+<pre>public&nbsp;org.apache.hadoop.fs.Path&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1204">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
@@ -3377,7 +3377,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>setHBaseFsTmpDir</h4>
-<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1208">setHBaseFsTmpDir</a>()
+<pre>private&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1212">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>
@@ -3391,7 +3391,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>flush</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1222">flush</a>()
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1226">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>
@@ -3406,7 +3406,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>flush</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1230">flush</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName)
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1234">flush</a>(org.apache.hadoop.hbase.TableName&nbsp;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>
@@ -3421,7 +3421,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>compact</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1238">compact</a>(boolean&nbsp;major)
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1242">compact</a>(boolean&nbsp;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>
@@ -3436,7 +3436,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>compact</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1246">compact</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1250">compact</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                     boolean&nbsp;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>
@@ -3452,7 +3452,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1257">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1261">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;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>&nbsp;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>
@@ -3473,7 +3473,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1269">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1273">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;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>[]&nbsp;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>
@@ -3494,7 +3494,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1285">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1289">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[]&nbsp;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>
@@ -3515,7 +3515,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createMultiRegionTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1298">createMultiRegionTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1302">createMultiRegionTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                                    byte[]&nbsp;family,
                                                                    int&nbsp;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>
@@ -3538,7 +3538,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1315">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1319">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[][]&nbsp;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>
@@ -3559,7 +3559,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createMultiRegionTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1327">createMultiRegionTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1331">createMultiRegionTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                                    byte[][]&nbsp;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>
@@ -3580,7 +3580,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1339">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1343">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[][]&nbsp;families,
                                                         byte[][]&nbsp;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>
@@ -3603,7 +3603,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1344">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1348">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[][]&nbsp;families,
                                                         int&nbsp;numVersions,
                                                         byte[]&nbsp;startKey,
@@ -3622,7 +3622,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1364">createTable</a>(org.apache.hadoop.hbase.client.TableDescriptor&nbsp;htd,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1368">createTable</a>(org.apache.hadoop.hbase.client.TableDescriptor&nbsp;htd,
                                                         byte[][]&nbsp;families,
                                                         org.apache.hadoop.conf.Configuration&nbsp;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>
@@ -3645,7 +3645,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1378">createTable</a>(org.apache.hadoop.hbase.client.TableDescriptor&nbsp;htd,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1382">createTable</a>(org.apache.hadoop.hbase.client.TableDescriptor&nbsp;htd,
                                                         byte[][]&nbsp;families,
                                                         byte[][]&nbsp;splitKeys,
                                                         org.apache.hadoop.conf.Configuration&nbsp;c)
@@ -3670,7 +3670,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1398">createTable</a>(org.apache.hadoop.hbase.client.TableDescriptor&nbsp;htd,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1402">createTable</a>(org.apache.hadoop.hbase.client.TableDescriptor&nbsp;htd,
                                                         byte[][]&nbsp;families,
                                                         byte[][]&nbsp;splitKeys,
                                                         org.apache.hadoop.hbase.regionserver.BloomType&nbsp;type,
@@ -3699,7 +3699,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1421">createTable</a>(org.apache.hadoop.hbase.client.TableDescriptor&nbsp;htd,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1425">createTable</a>(org.apache.hadoop.hbase.client.TableDescriptor&nbsp;htd,
                                                         byte[][]&nbsp;splitRows)
                                                  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>
@@ -3720,7 +3720,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1439">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1443">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[][]&nbsp;families,
                                                         byte[][]&nbsp;splitKeys,
                                                         org.apache.hadoop.conf.Configuration&nbsp;c)
@@ -3745,7 +3745,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1452">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1456">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[]&nbsp;family,
                                                         int&nbsp;numVersions)
                                                  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>
@@ -3768,7 +3768,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1465">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1469">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[][]&nbsp;families,
                                                         int&nbsp;numVersions)
                                                  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>
@@ -3791,7 +3791,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1479">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1483">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[][]&nbsp;families,
                                                         int&nbsp;numVersions,
                                                         byte[][]&nbsp;splitKeys)
@@ -3816,7 +3816,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createMultiRegionTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1501">createMultiRegionTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1505">createMultiRegionTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                                    byte[][]&nbsp;families,
                                                                    int&nbsp;numVersions)
                                                             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>
@@ -3839,7 +3839,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1515">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1519">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[][]&nbsp;families,
                                                         int&nbsp;numVersions,
                                                         int&nbsp;blockSize)
@@ -3864,7 +3864,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1531">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1535">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[][]&nbsp;families,
                                                         int&nbsp;numVersions,
                                                         int&nbsp;blockSize,
@@ -3882,7 +3882,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1558">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1562">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[][]&nbsp;families,
                                                         int[]&nbsp;numVersions)
                                                  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>
@@ -3905,7 +3905,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1584">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1588">createTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                         byte[]&nbsp;family,
                                                         byte[][]&nbsp;splitRows)
                                                  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>
@@ -3928,7 +3928,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>createMultiRegionTable</h4>
-<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1603">createMultiRegionTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
+<pre>public&nbsp;org.apache.hadoop.hbase.client.Table&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1607">createMultiRegionTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName,
                                                                    byte[]&nbsp;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 with multiple regions.</div>
@@ -3949,7 +3949,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>modifyTableSync</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1611">modifyTableSync</a>(org.apache.hadoop.hbase.client.Admin&nbsp;admin,
+<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1615">modifyTableSync</a>(org.apache.hadoop.hbase.client.Admin&nbsp;admin,
                                    org.apache.hadoop.hbase.client.TableDescriptor&nbsp;desc)
                             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>
@@ -3967,7 +3967,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>setReplicas</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1638">setReplicas</a>(org.apache.hadoop.hbase.client.Admin&nbsp;admin,
+<pre>public static&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1642">setReplicas</a>(org.apache.hadoop.hbase.client.Admin&nbsp;admin,
                                org.apache.hadoop.hbase.TableName&nbsp;table,
                                int&nbsp;replicaCount)
                         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>,
@@ -3986,7 +3986,7 @@ public&nbsp;org.apache.hadoop.hbase.HTableDescriptor&nbsp;<a href="../../../../s
 <ul class="blockList">
 <li class="blockList">
 <h4>deleteTable</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1651">deleteTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName)
+<pre>public&nbsp;void&nbsp;<a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1655">deleteTable</a>(org.apache.hadoop.hbase.TableName&nbsp;tableName)
     

<TRUNCATED>

[05/10] hbase-site git commit: Published site at 03e596c6694a21768c51a3c52e1a032f51fd637c.

Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/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 b9dc38a..a93e27f 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
@@ -341,3814 +341,3818 @@
 <span class="sourceLineNo">333</span>    ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.333"></a>
 <span class="sourceLineNo">334</span><a name="line.334"></a>
 <span class="sourceLineNo">335</span>    // Save this for when setting default file:// breaks things<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.336"></a>
-<span class="sourceLineNo">337</span><a name="line.337"></a>
-<span class="sourceLineNo">338</span>    // Every cluster is a local cluster until we start DFS<a name="line.338"></a>
-<span class="sourceLineNo">339</span>    // Note that conf could be null, but this.conf will not be<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    String dataTestDir = getDataTestDir().toString();<a name="line.340"></a>
-<span class="sourceLineNo">341</span>    this.conf.set("fs.defaultFS","file:///");<a name="line.341"></a>
-<span class="sourceLineNo">342</span>    this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.342"></a>
-<span class="sourceLineNo">343</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    // If the value for random ports isn't set set it to true, thus making<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    // tests opt-out for random port assignment<a name="line.346"></a>
-<span class="sourceLineNo">347</span>    this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.347"></a>
-<span class="sourceLineNo">348</span>        this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.348"></a>
-<span class="sourceLineNo">349</span>  }<a name="line.349"></a>
-<span class="sourceLineNo">350</span><a name="line.350"></a>
-<span class="sourceLineNo">351</span>  /**<a name="line.351"></a>
-<span class="sourceLineNo">352</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.352"></a>
-<span class="sourceLineNo">353</span>   * @return a normal HBaseTestingUtility<a name="line.353"></a>
-<span class="sourceLineNo">354</span>   */<a name="line.354"></a>
-<span class="sourceLineNo">355</span>  @Deprecated<a name="line.355"></a>
-<span class="sourceLineNo">356</span>  public static HBaseTestingUtility createLocalHTU() {<a name="line.356"></a>
-<span class="sourceLineNo">357</span>    return new HBaseTestingUtility();<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>  /**<a name="line.360"></a>
-<span class="sourceLineNo">361</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.361"></a>
-<span class="sourceLineNo">362</span>   * @return a normal HBaseTestingUtility<a name="line.362"></a>
-<span class="sourceLineNo">363</span>   */<a name="line.363"></a>
-<span class="sourceLineNo">364</span>  @Deprecated<a name="line.364"></a>
-<span class="sourceLineNo">365</span>  public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    return new HBaseTestingUtility(c);<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>  /**<a name="line.369"></a>
-<span class="sourceLineNo">370</span>   * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.370"></a>
-<span class="sourceLineNo">371</span>   */<a name="line.371"></a>
-<span class="sourceLineNo">372</span>  public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.372"></a>
-<span class="sourceLineNo">373</span>    closeRegionAndWAL((HRegion)r);<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 HRegion {@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 HRegion r) throws IOException {<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    if (r == null) return;<a name="line.380"></a>
-<span class="sourceLineNo">381</span>    r.close();<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    if (r.getWAL() == null) return;<a name="line.382"></a>
-<span class="sourceLineNo">383</span>    r.getWAL().close();<a name="line.383"></a>
-<span class="sourceLineNo">384</span>  }<a name="line.384"></a>
-<span class="sourceLineNo">385</span><a name="line.385"></a>
-<span class="sourceLineNo">386</span>  /**<a name="line.386"></a>
-<span class="sourceLineNo">387</span>   * Returns this classes's instance of {@link Configuration}.  Be careful how<a name="line.387"></a>
-<span class="sourceLineNo">388</span>   * you use the returned Configuration since {@link Connection} instances<a name="line.388"></a>
-<span class="sourceLineNo">389</span>   * can be shared.  The Map of Connections is keyed by the Configuration.  If<a name="line.389"></a>
-<span class="sourceLineNo">390</span>   * say, a Connection was being used against a cluster that had been shutdown,<a name="line.390"></a>
-<span class="sourceLineNo">391</span>   * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.391"></a>
-<span class="sourceLineNo">392</span>   * be wholesome.  Rather than use the return direct, its usually best to<a name="line.392"></a>
-<span class="sourceLineNo">393</span>   * make a copy and use that.  Do<a name="line.393"></a>
-<span class="sourceLineNo">394</span>   * &lt;code&gt;Configuration c = new Configuration(INSTANCE.getConfiguration());&lt;/code&gt;<a name="line.394"></a>
-<span class="sourceLineNo">395</span>   * @return Instance of Configuration.<a name="line.395"></a>
-<span class="sourceLineNo">396</span>   */<a name="line.396"></a>
-<span class="sourceLineNo">397</span>  @Override<a name="line.397"></a>
-<span class="sourceLineNo">398</span>  public Configuration getConfiguration() {<a name="line.398"></a>
-<span class="sourceLineNo">399</span>    return super.getConfiguration();<a name="line.399"></a>
-<span class="sourceLineNo">400</span>  }<a name="line.400"></a>
-<span class="sourceLineNo">401</span><a name="line.401"></a>
-<span class="sourceLineNo">402</span>  public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    this.hbaseCluster = hbaseCluster;<a name="line.403"></a>
+<span class="sourceLineNo">336</span>    if (this.conf.get("fs.defaultFS") != null) {<a name="line.336"></a>
+<span class="sourceLineNo">337</span>      this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.337"></a>
+<span class="sourceLineNo">338</span>    }<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.339"></a>
+<span class="sourceLineNo">340</span>      this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.340"></a>
+<span class="sourceLineNo">341</span>    }<a name="line.341"></a>
+<span class="sourceLineNo">342</span>    // Every cluster is a local cluster until we start DFS<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    // Note that conf could be null, but this.conf will not be<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    String dataTestDir = getDataTestDir().toString();<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    this.conf.set("fs.defaultFS","file:///");<a name="line.345"></a>
+<span class="sourceLineNo">346</span>    this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.347"></a>
+<span class="sourceLineNo">348</span>    this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.348"></a>
+<span class="sourceLineNo">349</span>    // If the value for random ports isn't set set it to true, thus making<a name="line.349"></a>
+<span class="sourceLineNo">350</span>    // tests opt-out for random port assignment<a name="line.350"></a>
+<span class="sourceLineNo">351</span>    this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.351"></a>
+<span class="sourceLineNo">352</span>        this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.352"></a>
+<span class="sourceLineNo">353</span>  }<a name="line.353"></a>
+<span class="sourceLineNo">354</span><a name="line.354"></a>
+<span class="sourceLineNo">355</span>  /**<a name="line.355"></a>
+<span class="sourceLineNo">356</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.356"></a>
+<span class="sourceLineNo">357</span>   * @return a normal HBaseTestingUtility<a name="line.357"></a>
+<span class="sourceLineNo">358</span>   */<a name="line.358"></a>
+<span class="sourceLineNo">359</span>  @Deprecated<a name="line.359"></a>
+<span class="sourceLineNo">360</span>  public static HBaseTestingUtility createLocalHTU() {<a name="line.360"></a>
+<span class="sourceLineNo">361</span>    return new HBaseTestingUtility();<a name="line.361"></a>
+<span class="sourceLineNo">362</span>  }<a name="line.362"></a>
+<span class="sourceLineNo">363</span><a name="line.363"></a>
+<span class="sourceLineNo">364</span>  /**<a name="line.364"></a>
+<span class="sourceLineNo">365</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.365"></a>
+<span class="sourceLineNo">366</span>   * @return a normal HBaseTestingUtility<a name="line.366"></a>
+<span class="sourceLineNo">367</span>   */<a name="line.367"></a>
+<span class="sourceLineNo">368</span>  @Deprecated<a name="line.368"></a>
+<span class="sourceLineNo">369</span>  public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.369"></a>
+<span class="sourceLineNo">370</span>    return new HBaseTestingUtility(c);<a name="line.370"></a>
+<span class="sourceLineNo">371</span>  }<a name="line.371"></a>
+<span class="sourceLineNo">372</span><a name="line.372"></a>
+<span class="sourceLineNo">373</span>  /**<a name="line.373"></a>
+<span class="sourceLineNo">374</span>   * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.374"></a>
+<span class="sourceLineNo">375</span>   */<a name="line.375"></a>
+<span class="sourceLineNo">376</span>  public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.376"></a>
+<span class="sourceLineNo">377</span>    closeRegionAndWAL((HRegion)r);<a name="line.377"></a>
+<span class="sourceLineNo">378</span>  }<a name="line.378"></a>
+<span class="sourceLineNo">379</span><a name="line.379"></a>
+<span class="sourceLineNo">380</span>  /**<a name="line.380"></a>
+<span class="sourceLineNo">381</span>   * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.381"></a>
+<span class="sourceLineNo">382</span>   */<a name="line.382"></a>
+<span class="sourceLineNo">383</span>  public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.383"></a>
+<span class="sourceLineNo">384</span>    if (r == null) return;<a name="line.384"></a>
+<span class="sourceLineNo">385</span>    r.close();<a name="line.385"></a>
+<span class="sourceLineNo">386</span>    if (r.getWAL() == null) return;<a name="line.386"></a>
+<span class="sourceLineNo">387</span>    r.getWAL().close();<a name="line.387"></a>
+<span class="sourceLineNo">388</span>  }<a name="line.388"></a>
+<span class="sourceLineNo">389</span><a name="line.389"></a>
+<span class="sourceLineNo">390</span>  /**<a name="line.390"></a>
+<span class="sourceLineNo">391</span>   * Returns this classes's instance of {@link Configuration}.  Be careful how<a name="line.391"></a>
+<span class="sourceLineNo">392</span>   * you use the returned Configuration since {@link Connection} instances<a name="line.392"></a>
+<span class="sourceLineNo">393</span>   * can be shared.  The Map of Connections is keyed by the Configuration.  If<a name="line.393"></a>
+<span class="sourceLineNo">394</span>   * say, a Connection was being used against a cluster that had been shutdown,<a name="line.394"></a>
+<span class="sourceLineNo">395</span>   * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.395"></a>
+<span class="sourceLineNo">396</span>   * be wholesome.  Rather than use the return direct, its usually best to<a name="line.396"></a>
+<span class="sourceLineNo">397</span>   * make a copy and use that.  Do<a name="line.397"></a>
+<span class="sourceLineNo">398</span>   * &lt;code&gt;Configuration c = new Configuration(INSTANCE.getConfiguration());&lt;/code&gt;<a name="line.398"></a>
+<span class="sourceLineNo">399</span>   * @return Instance of Configuration.<a name="line.399"></a>
+<span class="sourceLineNo">400</span>   */<a name="line.400"></a>
+<span class="sourceLineNo">401</span>  @Override<a name="line.401"></a>
+<span class="sourceLineNo">402</span>  public Configuration getConfiguration() {<a name="line.402"></a>
+<span class="sourceLineNo">403</span>    return super.getConfiguration();<a name="line.403"></a>
 <span class="sourceLineNo">404</span>  }<a name="line.404"></a>
 <span class="sourceLineNo">405</span><a name="line.405"></a>
-<span class="sourceLineNo">406</span>  /**<a name="line.406"></a>
-<span class="sourceLineNo">407</span>   * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.407"></a>
-<span class="sourceLineNo">408</span>   * Give it a random name so can have many concurrent tests running if<a name="line.408"></a>
-<span class="sourceLineNo">409</span>   * we need to.  It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.409"></a>
-<span class="sourceLineNo">410</span>   * System property, as it's what minidfscluster bases<a name="line.410"></a>
-<span class="sourceLineNo">411</span>   * it data dir on.  Moding a System property is not the way to do concurrent<a name="line.411"></a>
-<span class="sourceLineNo">412</span>   * instances -- another instance could grab the temporary<a name="line.412"></a>
-<span class="sourceLineNo">413</span>   * value unintentionally -- but not anything can do about it at moment;<a name="line.413"></a>
-<span class="sourceLineNo">414</span>   * single instance only is how the minidfscluster works.<a name="line.414"></a>
-<span class="sourceLineNo">415</span>   *<a name="line.415"></a>
-<span class="sourceLineNo">416</span>   * We also create the underlying directory for<a name="line.416"></a>
-<span class="sourceLineNo">417</span>   *  hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.417"></a>
-<span class="sourceLineNo">418</span>   *  in the conf, and as a system property for hadoop.tmp.dir<a name="line.418"></a>
+<span class="sourceLineNo">406</span>  public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    this.hbaseCluster = hbaseCluster;<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>  /**<a name="line.410"></a>
+<span class="sourceLineNo">411</span>   * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.411"></a>
+<span class="sourceLineNo">412</span>   * Give it a random name so can have many concurrent tests running if<a name="line.412"></a>
+<span class="sourceLineNo">413</span>   * we need to.  It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.413"></a>
+<span class="sourceLineNo">414</span>   * System property, as it's what minidfscluster bases<a name="line.414"></a>
+<span class="sourceLineNo">415</span>   * it data dir on.  Moding a System property is not the way to do concurrent<a name="line.415"></a>
+<span class="sourceLineNo">416</span>   * instances -- another instance could grab the temporary<a name="line.416"></a>
+<span class="sourceLineNo">417</span>   * value unintentionally -- but not anything can do about it at moment;<a name="line.417"></a>
+<span class="sourceLineNo">418</span>   * single instance only is how the minidfscluster works.<a name="line.418"></a>
 <span class="sourceLineNo">419</span>   *<a name="line.419"></a>
-<span class="sourceLineNo">420</span>   * @return The calculated data test build directory, if newly-created.<a name="line.420"></a>
-<span class="sourceLineNo">421</span>   */<a name="line.421"></a>
-<span class="sourceLineNo">422</span>  @Override<a name="line.422"></a>
-<span class="sourceLineNo">423</span>  protected Path setupDataTestDir() {<a name="line.423"></a>
-<span class="sourceLineNo">424</span>    Path testPath = super.setupDataTestDir();<a name="line.424"></a>
-<span class="sourceLineNo">425</span>    if (null == testPath) {<a name="line.425"></a>
-<span class="sourceLineNo">426</span>      return null;<a name="line.426"></a>
-<span class="sourceLineNo">427</span>    }<a name="line.427"></a>
-<span class="sourceLineNo">428</span><a name="line.428"></a>
-<span class="sourceLineNo">429</span>    createSubDirAndSystemProperty(<a name="line.429"></a>
-<span class="sourceLineNo">430</span>      "hadoop.log.dir",<a name="line.430"></a>
-<span class="sourceLineNo">431</span>      testPath, "hadoop-log-dir");<a name="line.431"></a>
+<span class="sourceLineNo">420</span>   * We also create the underlying directory for<a name="line.420"></a>
+<span class="sourceLineNo">421</span>   *  hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.421"></a>
+<span class="sourceLineNo">422</span>   *  in the conf, and as a system property for hadoop.tmp.dir<a name="line.422"></a>
+<span class="sourceLineNo">423</span>   *<a name="line.423"></a>
+<span class="sourceLineNo">424</span>   * @return The calculated data test build directory, if newly-created.<a name="line.424"></a>
+<span class="sourceLineNo">425</span>   */<a name="line.425"></a>
+<span class="sourceLineNo">426</span>  @Override<a name="line.426"></a>
+<span class="sourceLineNo">427</span>  protected Path setupDataTestDir() {<a name="line.427"></a>
+<span class="sourceLineNo">428</span>    Path testPath = super.setupDataTestDir();<a name="line.428"></a>
+<span class="sourceLineNo">429</span>    if (null == testPath) {<a name="line.429"></a>
+<span class="sourceLineNo">430</span>      return null;<a name="line.430"></a>
+<span class="sourceLineNo">431</span>    }<a name="line.431"></a>
 <span class="sourceLineNo">432</span><a name="line.432"></a>
-<span class="sourceLineNo">433</span>    // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.433"></a>
-<span class="sourceLineNo">434</span>    //  we want our own value to ensure uniqueness on the same machine<a name="line.434"></a>
-<span class="sourceLineNo">435</span>    createSubDirAndSystemProperty(<a name="line.435"></a>
-<span class="sourceLineNo">436</span>      "hadoop.tmp.dir",<a name="line.436"></a>
-<span class="sourceLineNo">437</span>      testPath, "hadoop-tmp-dir");<a name="line.437"></a>
-<span class="sourceLineNo">438</span><a name="line.438"></a>
-<span class="sourceLineNo">439</span>    // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.439"></a>
-<span class="sourceLineNo">440</span>    createSubDir(<a name="line.440"></a>
-<span class="sourceLineNo">441</span>      "mapreduce.cluster.local.dir",<a name="line.441"></a>
-<span class="sourceLineNo">442</span>      testPath, "mapred-local-dir");<a name="line.442"></a>
-<span class="sourceLineNo">443</span><a name="line.443"></a>
-<span class="sourceLineNo">444</span>    return testPath;<a name="line.444"></a>
-<span class="sourceLineNo">445</span>  }<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span>  private void createSubDirAndSystemProperty(<a name="line.447"></a>
-<span class="sourceLineNo">448</span>    String propertyName, Path parent, String subDirName){<a name="line.448"></a>
-<span class="sourceLineNo">449</span><a name="line.449"></a>
-<span class="sourceLineNo">450</span>    String sysValue = System.getProperty(propertyName);<a name="line.450"></a>
-<span class="sourceLineNo">451</span><a name="line.451"></a>
-<span class="sourceLineNo">452</span>    if (sysValue != null) {<a name="line.452"></a>
-<span class="sourceLineNo">453</span>      // There is already a value set. So we do nothing but hope<a name="line.453"></a>
-<span class="sourceLineNo">454</span>      //  that there will be no conflicts<a name="line.454"></a>
-<span class="sourceLineNo">455</span>      LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.455"></a>
-<span class="sourceLineNo">456</span>        sysValue + " so I do NOT create it in " + parent);<a name="line.456"></a>
-<span class="sourceLineNo">457</span>      String confValue = conf.get(propertyName);<a name="line.457"></a>
-<span class="sourceLineNo">458</span>      if (confValue != null &amp;&amp; !confValue.endsWith(sysValue)){<a name="line.458"></a>
-<span class="sourceLineNo">459</span>       LOG.warn(<a name="line.459"></a>
-<span class="sourceLineNo">460</span>         propertyName + " property value differs in configuration and system: "+<a name="line.460"></a>
-<span class="sourceLineNo">461</span>         "Configuration="+confValue+" while System="+sysValue+<a name="line.461"></a>
-<span class="sourceLineNo">462</span>         " Erasing configuration value by system value."<a name="line.462"></a>
-<span class="sourceLineNo">463</span>       );<a name="line.463"></a>
-<span class="sourceLineNo">464</span>      }<a name="line.464"></a>
-<span class="sourceLineNo">465</span>      conf.set(propertyName, sysValue);<a name="line.465"></a>
-<span class="sourceLineNo">466</span>    } else {<a name="line.466"></a>
-<span class="sourceLineNo">467</span>      // Ok, it's not set, so we create it as a subdirectory<a name="line.467"></a>
-<span class="sourceLineNo">468</span>      createSubDir(propertyName, parent, subDirName);<a name="line.468"></a>
-<span class="sourceLineNo">469</span>      System.setProperty(propertyName, conf.get(propertyName));<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><a name="line.472"></a>
-<span class="sourceLineNo">473</span>  /**<a name="line.473"></a>
-<span class="sourceLineNo">474</span>   * @return Where to write test data on the test filesystem; Returns working directory<a name="line.474"></a>
-<span class="sourceLineNo">475</span>   * for the test filesystem by default<a name="line.475"></a>
-<span class="sourceLineNo">476</span>   * @see #setupDataTestDirOnTestFS()<a name="line.476"></a>
-<span class="sourceLineNo">477</span>   * @see #getTestFileSystem()<a name="line.477"></a>
-<span class="sourceLineNo">478</span>   */<a name="line.478"></a>
-<span class="sourceLineNo">479</span>  private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.479"></a>
-<span class="sourceLineNo">480</span>    FileSystem fs = getTestFileSystem();<a name="line.480"></a>
-<span class="sourceLineNo">481</span>    return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.481"></a>
-<span class="sourceLineNo">482</span>  }<a name="line.482"></a>
-<span class="sourceLineNo">483</span><a name="line.483"></a>
-<span class="sourceLineNo">484</span>  /**<a name="line.484"></a>
-<span class="sourceLineNo">485</span>   * @return META table descriptor<a name="line.485"></a>
-<span class="sourceLineNo">486</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.486"></a>
-<span class="sourceLineNo">487</span>   *             use {@link #getMetaTableDescriptorBuilder()}<a name="line.487"></a>
-<span class="sourceLineNo">488</span>   */<a name="line.488"></a>
-<span class="sourceLineNo">489</span>  @Deprecated<a name="line.489"></a>
-<span class="sourceLineNo">490</span>  public HTableDescriptor getMetaTableDescriptor() {<a name="line.490"></a>
-<span class="sourceLineNo">491</span>    return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.491"></a>
-<span class="sourceLineNo">492</span>  }<a name="line.492"></a>
-<span class="sourceLineNo">493</span><a name="line.493"></a>
-<span class="sourceLineNo">494</span>  /**<a name="line.494"></a>
-<span class="sourceLineNo">495</span>   * @return META table descriptor<a name="line.495"></a>
-<span class="sourceLineNo">496</span>   */<a name="line.496"></a>
-<span class="sourceLineNo">497</span>  public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.497"></a>
-<span class="sourceLineNo">498</span>    try {<a name="line.498"></a>
-<span class="sourceLineNo">499</span>      return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.499"></a>
-<span class="sourceLineNo">500</span>    } catch (IOException e) {<a name="line.500"></a>
-<span class="sourceLineNo">501</span>      throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.501"></a>
-<span class="sourceLineNo">502</span>    }<a name="line.502"></a>
-<span class="sourceLineNo">503</span>  }<a name="line.503"></a>
-<span class="sourceLineNo">504</span><a name="line.504"></a>
-<span class="sourceLineNo">505</span>  /**<a name="line.505"></a>
-<span class="sourceLineNo">506</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.506"></a>
-<span class="sourceLineNo">507</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.507"></a>
-<span class="sourceLineNo">508</span>   * if the test relies on it.<a name="line.508"></a>
-<span class="sourceLineNo">509</span>   * @return a unique path in the test filesystem<a name="line.509"></a>
-<span class="sourceLineNo">510</span>   */<a name="line.510"></a>
-<span class="sourceLineNo">511</span>  public Path getDataTestDirOnTestFS() throws IOException {<a name="line.511"></a>
-<span class="sourceLineNo">512</span>    if (dataTestDirOnTestFS == null) {<a name="line.512"></a>
-<span class="sourceLineNo">513</span>      setupDataTestDirOnTestFS();<a name="line.513"></a>
-<span class="sourceLineNo">514</span>    }<a name="line.514"></a>
-<span class="sourceLineNo">515</span><a name="line.515"></a>
-<span class="sourceLineNo">516</span>    return dataTestDirOnTestFS;<a name="line.516"></a>
-<span class="sourceLineNo">517</span>  }<a name="line.517"></a>
-<span class="sourceLineNo">518</span><a name="line.518"></a>
-<span class="sourceLineNo">519</span>  /**<a name="line.519"></a>
-<span class="sourceLineNo">520</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.520"></a>
-<span class="sourceLineNo">521</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.521"></a>
-<span class="sourceLineNo">522</span>   * if the test relies on it.<a name="line.522"></a>
-<span class="sourceLineNo">523</span>   * @return a unique path in the test filesystem<a name="line.523"></a>
-<span class="sourceLineNo">524</span>   * @param subdirName name of the subdir to create under the base test dir<a name="line.524"></a>
-<span class="sourceLineNo">525</span>   */<a name="line.525"></a>
-<span class="sourceLineNo">526</span>  public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.526"></a>
-<span class="sourceLineNo">527</span>    return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.527"></a>
-<span class="sourceLineNo">528</span>  }<a name="line.528"></a>
-<span class="sourceLineNo">529</span><a name="line.529"></a>
-<span class="sourceLineNo">530</span>  /**<a name="line.530"></a>
-<span class="sourceLineNo">531</span>   * Sets up a path in test filesystem to be used by tests.<a name="line.531"></a>
-<span class="sourceLineNo">532</span>   * Creates a new directory if not already setup.<a name="line.532"></a>
-<span class="sourceLineNo">533</span>   */<a name="line.533"></a>
-<span class="sourceLineNo">534</span>  private void setupDataTestDirOnTestFS() throws IOException {<a name="line.534"></a>
-<span class="sourceLineNo">535</span>    if (dataTestDirOnTestFS != null) {<a name="line.535"></a>
-<span class="sourceLineNo">536</span>      LOG.warn("Data test on test fs dir already setup in "<a name="line.536"></a>
-<span class="sourceLineNo">537</span>          + dataTestDirOnTestFS.toString());<a name="line.537"></a>
-<span class="sourceLineNo">538</span>      return;<a name="line.538"></a>
-<span class="sourceLineNo">539</span>    }<a name="line.539"></a>
-<span class="sourceLineNo">540</span>    dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.540"></a>
-<span class="sourceLineNo">541</span>  }<a name="line.541"></a>
-<span class="sourceLineNo">542</span><a name="line.542"></a>
-<span class="sourceLineNo">543</span>  /**<a name="line.543"></a>
-<span class="sourceLineNo">544</span>   * Sets up a new path in test filesystem to be used by tests.<a name="line.544"></a>
-<span class="sourceLineNo">545</span>   */<a name="line.545"></a>
-<span class="sourceLineNo">546</span>  private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.546"></a>
-<span class="sourceLineNo">547</span>    //The file system can be either local, mini dfs, or if the configuration<a name="line.547"></a>
-<span class="sourceLineNo">548</span>    //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.548"></a>
-<span class="sourceLineNo">549</span>    //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.549"></a>
-<span class="sourceLineNo">550</span>    //the working directory, and create a unique sub dir there<a name="line.550"></a>
-<span class="sourceLineNo">551</span>    FileSystem fs = getTestFileSystem();<a name="line.551"></a>
-<span class="sourceLineNo">552</span>    Path newDataTestDir;<a name="line.552"></a>
-<span class="sourceLineNo">553</span>    String randomStr = getRandomUUID().toString();<a name="line.553"></a>
-<span class="sourceLineNo">554</span>    if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.554"></a>
-<span class="sourceLineNo">555</span>      newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.555"></a>
-<span class="sourceLineNo">556</span>      File dataTestDir = new File(newDataTestDir.toString());<a name="line.556"></a>
-<span class="sourceLineNo">557</span>      if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.557"></a>
-<span class="sourceLineNo">558</span>    } else {<a name="line.558"></a>
-<span class="sourceLineNo">559</span>      Path base = getBaseTestDirOnTestFS();<a name="line.559"></a>
-<span class="sourceLineNo">560</span>      newDataTestDir = new Path(base, randomStr);<a name="line.560"></a>
-<span class="sourceLineNo">561</span>      if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.561"></a>
-<span class="sourceLineNo">562</span>    }<a name="line.562"></a>
-<span class="sourceLineNo">563</span>    return newDataTestDir;<a name="line.563"></a>
-<span class="sourceLineNo">564</span>  }<a name="line.564"></a>
-<span class="sourceLineNo">565</span><a name="line.565"></a>
-<span class="sourceLineNo">566</span>  /**<a name="line.566"></a>
-<span class="sourceLineNo">567</span>   * Cleans the test data directory on the test filesystem.<a name="line.567"></a>
-<span class="sourceLineNo">568</span>   * @return True if we removed the test dirs<a name="line.568"></a>
-<span class="sourceLineNo">569</span>   * @throws IOException<a name="line.569"></a>
-<span class="sourceLineNo">570</span>   */<a name="line.570"></a>
-<span class="sourceLineNo">571</span>  public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.571"></a>
-<span class="sourceLineNo">572</span>    boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.572"></a>
-<span class="sourceLineNo">573</span>    if (ret)<a name="line.573"></a>
-<span class="sourceLineNo">574</span>      dataTestDirOnTestFS = null;<a name="line.574"></a>
-<span class="sourceLineNo">575</span>    return ret;<a name="line.575"></a>
-<span class="sourceLineNo">576</span>  }<a name="line.576"></a>
-<span class="sourceLineNo">577</span><a name="line.577"></a>
-<span class="sourceLineNo">578</span>  /**<a name="line.578"></a>
-<span class="sourceLineNo">579</span>   * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.579"></a>
-<span class="sourceLineNo">580</span>   * @return True if we removed child<a name="line.580"></a>
-<span class="sourceLineNo">581</span>   * @throws IOException<a name="line.581"></a>
-<span class="sourceLineNo">582</span>   */<a name="line.582"></a>
-<span class="sourceLineNo">583</span>  public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.583"></a>
-<span class="sourceLineNo">584</span>    Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.584"></a>
-<span class="sourceLineNo">585</span>    return getTestFileSystem().delete(cpath, true);<a name="line.585"></a>
-<span class="sourceLineNo">586</span>  }<a name="line.586"></a>
-<span class="sourceLineNo">587</span><a name="line.587"></a>
-<span class="sourceLineNo">588</span>  /**<a name="line.588"></a>
-<span class="sourceLineNo">589</span>   * Start a minidfscluster.<a name="line.589"></a>
-<span class="sourceLineNo">590</span>   * @param servers How many DNs to start.<a name="line.590"></a>
-<span class="sourceLineNo">591</span>   * @throws Exception<a name="line.591"></a>
-<span class="sourceLineNo">592</span>   * @see #shutdownMiniDFSCluster()<a name="line.592"></a>
-<span class="sourceLineNo">593</span>   * @return The mini dfs cluster created.<a name="line.593"></a>
-<span class="sourceLineNo">594</span>   */<a name="line.594"></a>
-<span class="sourceLineNo">595</span>  public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.595"></a>
-<span class="sourceLineNo">596</span>    return startMiniDFSCluster(servers, null);<a name="line.596"></a>
-<span class="sourceLineNo">597</span>  }<a name="line.597"></a>
-<span class="sourceLineNo">598</span><a name="line.598"></a>
-<span class="sourceLineNo">599</span>  /**<a name="line.599"></a>
-<span class="sourceLineNo">600</span>   * Start a minidfscluster.<a name="line.600"></a>
-<span class="sourceLineNo">601</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.601"></a>
-<span class="sourceLineNo">602</span>   * like HDFS block location verification.<a name="line.602"></a>
-<span class="sourceLineNo">603</span>   * If you start MiniDFSCluster without host names, all instances of the<a name="line.603"></a>
-<span class="sourceLineNo">604</span>   * datanodes will have the same host name.<a name="line.604"></a>
-<span class="sourceLineNo">605</span>   * @param hosts hostnames DNs to run on.<a name="line.605"></a>
-<span class="sourceLineNo">606</span>   * @throws Exception<a name="line.606"></a>
-<span class="sourceLineNo">607</span>   * @see #shutdownMiniDFSCluster()<a name="line.607"></a>
-<span class="sourceLineNo">608</span>   * @return The mini dfs cluster created.<a name="line.608"></a>
-<span class="sourceLineNo">609</span>   */<a name="line.609"></a>
-<span class="sourceLineNo">610</span>  public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.610"></a>
-<span class="sourceLineNo">611</span>  throws Exception {<a name="line.611"></a>
-<span class="sourceLineNo">612</span>    if ( hosts != null &amp;&amp; hosts.length != 0) {<a name="line.612"></a>
-<span class="sourceLineNo">613</span>      return startMiniDFSCluster(hosts.length, hosts);<a name="line.613"></a>
-<span class="sourceLineNo">614</span>    } else {<a name="line.614"></a>
-<span class="sourceLineNo">615</span>      return startMiniDFSCluster(1, null);<a name="line.615"></a>
-<span class="sourceLineNo">616</span>    }<a name="line.616"></a>
-<span class="sourceLineNo">617</span>  }<a name="line.617"></a>
-<span class="sourceLineNo">618</span><a name="line.618"></a>
-<span class="sourceLineNo">619</span>  /**<a name="line.619"></a>
-<span class="sourceLineNo">620</span>   * Start a minidfscluster.<a name="line.620"></a>
-<span class="sourceLineNo">621</span>   * Can only create one.<a name="line.621"></a>
-<span class="sourceLineNo">622</span>   * @param servers How many DNs to start.<a name="line.622"></a>
-<span class="sourceLineNo">623</span>   * @param hosts hostnames DNs to run on.<a name="line.623"></a>
-<span class="sourceLineNo">624</span>   * @throws Exception<a name="line.624"></a>
-<span class="sourceLineNo">625</span>   * @see #shutdownMiniDFSCluster()<a name="line.625"></a>
-<span class="sourceLineNo">626</span>   * @return The mini dfs cluster created.<a name="line.626"></a>
-<span class="sourceLineNo">627</span>   */<a name="line.627"></a>
-<span class="sourceLineNo">628</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.628"></a>
-<span class="sourceLineNo">629</span>  throws Exception {<a name="line.629"></a>
-<span class="sourceLineNo">630</span>    return startMiniDFSCluster(servers, null, hosts);<a name="line.630"></a>
-<span class="sourceLineNo">631</span>  }<a name="line.631"></a>
-<span class="sourceLineNo">632</span><a name="line.632"></a>
-<span class="sourceLineNo">633</span>  private void setFs() throws IOException {<a name="line.633"></a>
-<span class="sourceLineNo">634</span>    if(this.dfsCluster == null){<a name="line.634"></a>
-<span class="sourceLineNo">635</span>      LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.635"></a>
-<span class="sourceLineNo">636</span>      return;<a name="line.636"></a>
-<span class="sourceLineNo">637</span>    }<a name="line.637"></a>
-<span class="sourceLineNo">638</span>    FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.638"></a>
-<span class="sourceLineNo">639</span>    FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.639"></a>
-<span class="sourceLineNo">640</span><a name="line.640"></a>
-<span class="sourceLineNo">641</span>    // re-enable this check with dfs<a name="line.641"></a>
-<span class="sourceLineNo">642</span>    conf.unset(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE);<a name="line.642"></a>
-<span class="sourceLineNo">643</span>  }<a name="line.643"></a>
+<span class="sourceLineNo">433</span>    createSubDirAndSystemProperty(<a name="line.433"></a>
+<span class="sourceLineNo">434</span>      "hadoop.log.dir",<a name="line.434"></a>
+<span class="sourceLineNo">435</span>      testPath, "hadoop-log-dir");<a name="line.435"></a>
+<span class="sourceLineNo">436</span><a name="line.436"></a>
+<span class="sourceLineNo">437</span>    // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.437"></a>
+<span class="sourceLineNo">438</span>    //  we want our own value to ensure uniqueness on the same machine<a name="line.438"></a>
+<span class="sourceLineNo">439</span>    createSubDirAndSystemProperty(<a name="line.439"></a>
+<span class="sourceLineNo">440</span>      "hadoop.tmp.dir",<a name="line.440"></a>
+<span class="sourceLineNo">441</span>      testPath, "hadoop-tmp-dir");<a name="line.441"></a>
+<span class="sourceLineNo">442</span><a name="line.442"></a>
+<span class="sourceLineNo">443</span>    // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.443"></a>
+<span class="sourceLineNo">444</span>    createSubDir(<a name="line.444"></a>
+<span class="sourceLineNo">445</span>      "mapreduce.cluster.local.dir",<a name="line.445"></a>
+<span class="sourceLineNo">446</span>      testPath, "mapred-local-dir");<a name="line.446"></a>
+<span class="sourceLineNo">447</span><a name="line.447"></a>
+<span class="sourceLineNo">448</span>    return testPath;<a name="line.448"></a>
+<span class="sourceLineNo">449</span>  }<a name="line.449"></a>
+<span class="sourceLineNo">450</span><a name="line.450"></a>
+<span class="sourceLineNo">451</span>  private void createSubDirAndSystemProperty(<a name="line.451"></a>
+<span class="sourceLineNo">452</span>    String propertyName, Path parent, String subDirName){<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span>    String sysValue = System.getProperty(propertyName);<a name="line.454"></a>
+<span class="sourceLineNo">455</span><a name="line.455"></a>
+<span class="sourceLineNo">456</span>    if (sysValue != null) {<a name="line.456"></a>
+<span class="sourceLineNo">457</span>      // There is already a value set. So we do nothing but hope<a name="line.457"></a>
+<span class="sourceLineNo">458</span>      //  that there will be no conflicts<a name="line.458"></a>
+<span class="sourceLineNo">459</span>      LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.459"></a>
+<span class="sourceLineNo">460</span>        sysValue + " so I do NOT create it in " + parent);<a name="line.460"></a>
+<span class="sourceLineNo">461</span>      String confValue = conf.get(propertyName);<a name="line.461"></a>
+<span class="sourceLineNo">462</span>      if (confValue != null &amp;&amp; !confValue.endsWith(sysValue)){<a name="line.462"></a>
+<span class="sourceLineNo">463</span>       LOG.warn(<a name="line.463"></a>
+<span class="sourceLineNo">464</span>         propertyName + " property value differs in configuration and system: "+<a name="line.464"></a>
+<span class="sourceLineNo">465</span>         "Configuration="+confValue+" while System="+sysValue+<a name="line.465"></a>
+<span class="sourceLineNo">466</span>         " Erasing configuration value by system value."<a name="line.466"></a>
+<span class="sourceLineNo">467</span>       );<a name="line.467"></a>
+<span class="sourceLineNo">468</span>      }<a name="line.468"></a>
+<span class="sourceLineNo">469</span>      conf.set(propertyName, sysValue);<a name="line.469"></a>
+<span class="sourceLineNo">470</span>    } else {<a name="line.470"></a>
+<span class="sourceLineNo">471</span>      // Ok, it's not set, so we create it as a subdirectory<a name="line.471"></a>
+<span class="sourceLineNo">472</span>      createSubDir(propertyName, parent, subDirName);<a name="line.472"></a>
+<span class="sourceLineNo">473</span>      System.setProperty(propertyName, conf.get(propertyName));<a name="line.473"></a>
+<span class="sourceLineNo">474</span>    }<a name="line.474"></a>
+<span class="sourceLineNo">475</span>  }<a name="line.475"></a>
+<span class="sourceLineNo">476</span><a name="line.476"></a>
+<span class="sourceLineNo">477</span>  /**<a name="line.477"></a>
+<span class="sourceLineNo">478</span>   * @return Where to write test data on the test filesystem; Returns working directory<a name="line.478"></a>
+<span class="sourceLineNo">479</span>   * for the test filesystem by default<a name="line.479"></a>
+<span class="sourceLineNo">480</span>   * @see #setupDataTestDirOnTestFS()<a name="line.480"></a>
+<span class="sourceLineNo">481</span>   * @see #getTestFileSystem()<a name="line.481"></a>
+<span class="sourceLineNo">482</span>   */<a name="line.482"></a>
+<span class="sourceLineNo">483</span>  private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.483"></a>
+<span class="sourceLineNo">484</span>    FileSystem fs = getTestFileSystem();<a name="line.484"></a>
+<span class="sourceLineNo">485</span>    return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.485"></a>
+<span class="sourceLineNo">486</span>  }<a name="line.486"></a>
+<span class="sourceLineNo">487</span><a name="line.487"></a>
+<span class="sourceLineNo">488</span>  /**<a name="line.488"></a>
+<span class="sourceLineNo">489</span>   * @return META table descriptor<a name="line.489"></a>
+<span class="sourceLineNo">490</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.490"></a>
+<span class="sourceLineNo">491</span>   *             use {@link #getMetaTableDescriptorBuilder()}<a name="line.491"></a>
+<span class="sourceLineNo">492</span>   */<a name="line.492"></a>
+<span class="sourceLineNo">493</span>  @Deprecated<a name="line.493"></a>
+<span class="sourceLineNo">494</span>  public HTableDescriptor getMetaTableDescriptor() {<a name="line.494"></a>
+<span class="sourceLineNo">495</span>    return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.495"></a>
+<span class="sourceLineNo">496</span>  }<a name="line.496"></a>
+<span class="sourceLineNo">497</span><a name="line.497"></a>
+<span class="sourceLineNo">498</span>  /**<a name="line.498"></a>
+<span class="sourceLineNo">499</span>   * @return META table descriptor<a name="line.499"></a>
+<span class="sourceLineNo">500</span>   */<a name="line.500"></a>
+<span class="sourceLineNo">501</span>  public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.501"></a>
+<span class="sourceLineNo">502</span>    try {<a name="line.502"></a>
+<span class="sourceLineNo">503</span>      return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.503"></a>
+<span class="sourceLineNo">504</span>    } catch (IOException e) {<a name="line.504"></a>
+<span class="sourceLineNo">505</span>      throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.505"></a>
+<span class="sourceLineNo">506</span>    }<a name="line.506"></a>
+<span class="sourceLineNo">507</span>  }<a name="line.507"></a>
+<span class="sourceLineNo">508</span><a name="line.508"></a>
+<span class="sourceLineNo">509</span>  /**<a name="line.509"></a>
+<span class="sourceLineNo">510</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.510"></a>
+<span class="sourceLineNo">511</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.511"></a>
+<span class="sourceLineNo">512</span>   * if the test relies on it.<a name="line.512"></a>
+<span class="sourceLineNo">513</span>   * @return a unique path in the test filesystem<a name="line.513"></a>
+<span class="sourceLineNo">514</span>   */<a name="line.514"></a>
+<span class="sourceLineNo">515</span>  public Path getDataTestDirOnTestFS() throws IOException {<a name="line.515"></a>
+<span class="sourceLineNo">516</span>    if (dataTestDirOnTestFS == null) {<a name="line.516"></a>
+<span class="sourceLineNo">517</span>      setupDataTestDirOnTestFS();<a name="line.517"></a>
+<span class="sourceLineNo">518</span>    }<a name="line.518"></a>
+<span class="sourceLineNo">519</span><a name="line.519"></a>
+<span class="sourceLineNo">520</span>    return dataTestDirOnTestFS;<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>  /**<a name="line.523"></a>
+<span class="sourceLineNo">524</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.524"></a>
+<span class="sourceLineNo">525</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.525"></a>
+<span class="sourceLineNo">526</span>   * if the test relies on it.<a name="line.526"></a>
+<span class="sourceLineNo">527</span>   * @return a unique path in the test filesystem<a name="line.527"></a>
+<span class="sourceLineNo">528</span>   * @param subdirName name of the subdir to create under the base test dir<a name="line.528"></a>
+<span class="sourceLineNo">529</span>   */<a name="line.529"></a>
+<span class="sourceLineNo">530</span>  public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.530"></a>
+<span class="sourceLineNo">531</span>    return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.531"></a>
+<span class="sourceLineNo">532</span>  }<a name="line.532"></a>
+<span class="sourceLineNo">533</span><a name="line.533"></a>
+<span class="sourceLineNo">534</span>  /**<a name="line.534"></a>
+<span class="sourceLineNo">535</span>   * Sets up a path in test filesystem to be used by tests.<a name="line.535"></a>
+<span class="sourceLineNo">536</span>   * Creates a new directory if not already setup.<a name="line.536"></a>
+<span class="sourceLineNo">537</span>   */<a name="line.537"></a>
+<span class="sourceLineNo">538</span>  private void setupDataTestDirOnTestFS() throws IOException {<a name="line.538"></a>
+<span class="sourceLineNo">539</span>    if (dataTestDirOnTestFS != null) {<a name="line.539"></a>
+<span class="sourceLineNo">540</span>      LOG.warn("Data test on test fs dir already setup in "<a name="line.540"></a>
+<span class="sourceLineNo">541</span>          + dataTestDirOnTestFS.toString());<a name="line.541"></a>
+<span class="sourceLineNo">542</span>      return;<a name="line.542"></a>
+<span class="sourceLineNo">543</span>    }<a name="line.543"></a>
+<span class="sourceLineNo">544</span>    dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.544"></a>
+<span class="sourceLineNo">545</span>  }<a name="line.545"></a>
+<span class="sourceLineNo">546</span><a name="line.546"></a>
+<span class="sourceLineNo">547</span>  /**<a name="line.547"></a>
+<span class="sourceLineNo">548</span>   * Sets up a new path in test filesystem to be used by tests.<a name="line.548"></a>
+<span class="sourceLineNo">549</span>   */<a name="line.549"></a>
+<span class="sourceLineNo">550</span>  private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.550"></a>
+<span class="sourceLineNo">551</span>    //The file system can be either local, mini dfs, or if the configuration<a name="line.551"></a>
+<span class="sourceLineNo">552</span>    //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.552"></a>
+<span class="sourceLineNo">553</span>    //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.553"></a>
+<span class="sourceLineNo">554</span>    //the working directory, and create a unique sub dir there<a name="line.554"></a>
+<span class="sourceLineNo">555</span>    FileSystem fs = getTestFileSystem();<a name="line.555"></a>
+<span class="sourceLineNo">556</span>    Path newDataTestDir;<a name="line.556"></a>
+<span class="sourceLineNo">557</span>    String randomStr = getRandomUUID().toString();<a name="line.557"></a>
+<span class="sourceLineNo">558</span>    if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.558"></a>
+<span class="sourceLineNo">559</span>      newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.559"></a>
+<span class="sourceLineNo">560</span>      File dataTestDir = new File(newDataTestDir.toString());<a name="line.560"></a>
+<span class="sourceLineNo">561</span>      if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.561"></a>
+<span class="sourceLineNo">562</span>    } else {<a name="line.562"></a>
+<span class="sourceLineNo">563</span>      Path base = getBaseTestDirOnTestFS();<a name="line.563"></a>
+<span class="sourceLineNo">564</span>      newDataTestDir = new Path(base, randomStr);<a name="line.564"></a>
+<span class="sourceLineNo">565</span>      if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.565"></a>
+<span class="sourceLineNo">566</span>    }<a name="line.566"></a>
+<span class="sourceLineNo">567</span>    return newDataTestDir;<a name="line.567"></a>
+<span class="sourceLineNo">568</span>  }<a name="line.568"></a>
+<span class="sourceLineNo">569</span><a name="line.569"></a>
+<span class="sourceLineNo">570</span>  /**<a name="line.570"></a>
+<span class="sourceLineNo">571</span>   * Cleans the test data directory on the test filesystem.<a name="line.571"></a>
+<span class="sourceLineNo">572</span>   * @return True if we removed the test dirs<a name="line.572"></a>
+<span class="sourceLineNo">573</span>   * @throws IOException<a name="line.573"></a>
+<span class="sourceLineNo">574</span>   */<a name="line.574"></a>
+<span class="sourceLineNo">575</span>  public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.575"></a>
+<span class="sourceLineNo">576</span>    boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.576"></a>
+<span class="sourceLineNo">577</span>    if (ret)<a name="line.577"></a>
+<span class="sourceLineNo">578</span>      dataTestDirOnTestFS = null;<a name="line.578"></a>
+<span class="sourceLineNo">579</span>    return ret;<a name="line.579"></a>
+<span class="sourceLineNo">580</span>  }<a name="line.580"></a>
+<span class="sourceLineNo">581</span><a name="line.581"></a>
+<span class="sourceLineNo">582</span>  /**<a name="line.582"></a>
+<span class="sourceLineNo">583</span>   * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.583"></a>
+<span class="sourceLineNo">584</span>   * @return True if we removed child<a name="line.584"></a>
+<span class="sourceLineNo">585</span>   * @throws IOException<a name="line.585"></a>
+<span class="sourceLineNo">586</span>   */<a name="line.586"></a>
+<span class="sourceLineNo">587</span>  public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.587"></a>
+<span class="sourceLineNo">588</span>    Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.588"></a>
+<span class="sourceLineNo">589</span>    return getTestFileSystem().delete(cpath, true);<a name="line.589"></a>
+<span class="sourceLineNo">590</span>  }<a name="line.590"></a>
+<span class="sourceLineNo">591</span><a name="line.591"></a>
+<span class="sourceLineNo">592</span>  /**<a name="line.592"></a>
+<span class="sourceLineNo">593</span>   * Start a minidfscluster.<a name="line.593"></a>
+<span class="sourceLineNo">594</span>   * @param servers How many DNs to start.<a name="line.594"></a>
+<span class="sourceLineNo">595</span>   * @throws Exception<a name="line.595"></a>
+<span class="sourceLineNo">596</span>   * @see #shutdownMiniDFSCluster()<a name="line.596"></a>
+<span class="sourceLineNo">597</span>   * @return The mini dfs cluster created.<a name="line.597"></a>
+<span class="sourceLineNo">598</span>   */<a name="line.598"></a>
+<span class="sourceLineNo">599</span>  public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.599"></a>
+<span class="sourceLineNo">600</span>    return startMiniDFSCluster(servers, null);<a name="line.600"></a>
+<span class="sourceLineNo">601</span>  }<a name="line.601"></a>
+<span class="sourceLineNo">602</span><a name="line.602"></a>
+<span class="sourceLineNo">603</span>  /**<a name="line.603"></a>
+<span class="sourceLineNo">604</span>   * Start a minidfscluster.<a name="line.604"></a>
+<span class="sourceLineNo">605</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.605"></a>
+<span class="sourceLineNo">606</span>   * like HDFS block location verification.<a name="line.606"></a>
+<span class="sourceLineNo">607</span>   * If you start MiniDFSCluster without host names, all instances of the<a name="line.607"></a>
+<span class="sourceLineNo">608</span>   * datanodes will have the same host name.<a name="line.608"></a>
+<span class="sourceLineNo">609</span>   * @param hosts hostnames DNs to run on.<a name="line.609"></a>
+<span class="sourceLineNo">610</span>   * @throws Exception<a name="line.610"></a>
+<span class="sourceLineNo">611</span>   * @see #shutdownMiniDFSCluster()<a name="line.611"></a>
+<span class="sourceLineNo">612</span>   * @return The mini dfs cluster created.<a name="line.612"></a>
+<span class="sourceLineNo">613</span>   */<a name="line.613"></a>
+<span class="sourceLineNo">614</span>  public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.614"></a>
+<span class="sourceLineNo">615</span>  throws Exception {<a name="line.615"></a>
+<span class="sourceLineNo">616</span>    if ( hosts != null &amp;&amp; hosts.length != 0) {<a name="line.616"></a>
+<span class="sourceLineNo">617</span>      return startMiniDFSCluster(hosts.length, hosts);<a name="line.617"></a>
+<span class="sourceLineNo">618</span>    } else {<a name="line.618"></a>
+<span class="sourceLineNo">619</span>      return startMiniDFSCluster(1, null);<a name="line.619"></a>
+<span class="sourceLineNo">620</span>    }<a name="line.620"></a>
+<span class="sourceLineNo">621</span>  }<a name="line.621"></a>
+<span class="sourceLineNo">622</span><a name="line.622"></a>
+<span class="sourceLineNo">623</span>  /**<a name="line.623"></a>
+<span class="sourceLineNo">624</span>   * Start a minidfscluster.<a name="line.624"></a>
+<span class="sourceLineNo">625</span>   * Can only create one.<a name="line.625"></a>
+<span class="sourceLineNo">626</span>   * @param servers How many DNs to start.<a name="line.626"></a>
+<span class="sourceLineNo">627</span>   * @param hosts hostnames DNs to run on.<a name="line.627"></a>
+<span class="sourceLineNo">628</span>   * @throws Exception<a name="line.628"></a>
+<span class="sourceLineNo">629</span>   * @see #shutdownMiniDFSCluster()<a name="line.629"></a>
+<span class="sourceLineNo">630</span>   * @return The mini dfs cluster created.<a name="line.630"></a>
+<span class="sourceLineNo">631</span>   */<a name="line.631"></a>
+<span class="sourceLineNo">632</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.632"></a>
+<span class="sourceLineNo">633</span>  throws Exception {<a name="line.633"></a>
+<span class="sourceLineNo">634</span>    return startMiniDFSCluster(servers, null, hosts);<a name="line.634"></a>
+<span class="sourceLineNo">635</span>  }<a name="line.635"></a>
+<span class="sourceLineNo">636</span><a name="line.636"></a>
+<span class="sourceLineNo">637</span>  private void setFs() throws IOException {<a name="line.637"></a>
+<span class="sourceLineNo">638</span>    if(this.dfsCluster == null){<a name="line.638"></a>
+<span class="sourceLineNo">639</span>      LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.639"></a>
+<span class="sourceLineNo">640</span>      return;<a name="line.640"></a>
+<span class="sourceLineNo">641</span>    }<a name="line.641"></a>
+<span class="sourceLineNo">642</span>    FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.642"></a>
+<span class="sourceLineNo">643</span>    FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.643"></a>
 <span class="sourceLineNo">644</span><a name="line.644"></a>
-<span class="sourceLineNo">645</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final  String racks[], String hosts[])<a name="line.645"></a>
-<span class="sourceLineNo">646</span>      throws Exception {<a name="line.646"></a>
-<span class="sourceLineNo">647</span>    createDirsAndSetProperties();<a name="line.647"></a>
-<span class="sourceLineNo">648</span>    EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);<a name="line.648"></a>
-<span class="sourceLineNo">649</span><a name="line.649"></a>
-<span class="sourceLineNo">650</span>    // Error level to skip some warnings specific to the minicluster. See HBASE-4709<a name="line.650"></a>
-<span class="sourceLineNo">651</span>    org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).<a name="line.651"></a>
-<span class="sourceLineNo">652</span>        setLevel(org.apache.log4j.Level.ERROR);<a name="line.652"></a>
-<span class="sourceLineNo">653</span>    org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.impl.MetricsSystemImpl.class).<a name="line.653"></a>
-<span class="sourceLineNo">654</span>        setLevel(org.apache.log4j.Level.ERROR);<a name="line.654"></a>
-<span class="sourceLineNo">655</span><a name="line.655"></a>
-<span class="sourceLineNo">656</span>    TraceUtil.initTracer(conf);<a name="line.656"></a>
-<span class="sourceLineNo">657</span><a name="line.657"></a>
-<span class="sourceLineNo">658</span>    this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,<a name="line.658"></a>
-<span class="sourceLineNo">659</span>        true, null, racks, hosts, null);<a name="line.659"></a>
-<span class="sourceLineNo">660</span><a name="line.660"></a>
-<span class="sourceLineNo">661</span>    // Set this just-started cluster as our filesystem.<a name="line.661"></a>
-<span class="sourceLineNo">662</span>    setFs();<a name="line.662"></a>
-<span class="sourceLineNo">663</span><a name="line.663"></a>
-<span class="sourceLineNo">664</span>    // Wait for the cluster to be totally up<a name="line.664"></a>
-<span class="sourceLineNo">665</span>    this.dfsCluster.waitClusterUp();<a name="line.665"></a>
-<span class="sourceLineNo">666</span><a name="line.666"></a>
-<span class="sourceLineNo">667</span>    //reset the test directory for test file system<a name="line.667"></a>
-<span class="sourceLineNo">668</span>    dataTestDirOnTestFS = null;<a name="line.668"></a>
-<span class="sourceLineNo">669</span>    String dataTestDir = getDataTestDir().toString();<a name="line.669"></a>
-<span class="sourceLineNo">670</span>    conf.set(HConstants.HBASE_DIR, dataTestDir);<a name="line.670"></a>
-<span class="sourceLineNo">671</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.671"></a>
-<span class="sourceLineNo">672</span><a name="line.672"></a>
-<span class="sourceLineNo">673</span>    return this.dfsCluster;<a name="line.673"></a>
-<span class="sourceLineNo">674</span>  }<a name="line.674"></a>
-<span class="sourceLineNo">675</span><a name="line.675"></a>
-<span class="sourceLineNo">676</span>  public MiniDFSCluster startMiniDFSClusterForTestWAL(int namenodePort) throws IOException {<a name="line.676"></a>
-<span class="sourceLineNo">677</span>    createDirsAndSetProperties();<a name="line.677"></a>
-<span class="sourceLineNo">678</span>    dfsCluster = new MiniDFSCluster(namenodePort, conf, 5, false, true, true, null,<a name="line.678"></a>
-<span class="sourceLineNo">679</span>        null, null, null);<a name="line.679"></a>
-<span class="sourceLineNo">680</span>    return dfsCluster;<a name="line.680"></a>
-<span class="sourceLineNo">681</span>  }<a name="line.681"></a>
-<span class="sourceLineNo">682</span><a name="line.682"></a>
-<span class="sourceLineNo">683</span>  /** This is used before starting HDFS and map-reduce mini-clusters */<a name="line.683"></a>
-<span class="sourceLineNo">684</span>  private void createDirsAndSetProperties() throws IOException {<a name="line.684"></a>
-<span class="sourceLineNo">685</span>    setupClusterTestDir();<a name="line.685"></a>
-<span class="sourceLineNo">686</span>    conf.set(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.686"></a>
-<span class="sourceLineNo">687</span>    System.setProperty(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.687"></a>
-<span class="sourceLineNo">688</span>    createDirAndSetProperty("cache_data", "test.cache.data");<a name="line.688"></a>
-<span class="sourceLineNo">689</span>    createDirAndSetProperty("hadoop_tmp", "hadoop.tmp.dir");<a name="line.689"></a>
-<span class="sourceLineNo">690</span>    hadoopLogDir = createDirAndSetProperty("hadoop_logs", "hadoop.log.dir");<a name="line.690"></a>
-<span class="sourceLineNo">691</span>    createDirAndSetProperty("mapred_local", "mapreduce.cluster.local.dir");<a name="line.691"></a>
-<span class="sourceLineNo">692</span>    createDirAndSetProperty("mapred_temp", "mapreduce.cluster.temp.dir");<a name="line.692"></a>
-<span class="sourceLineNo">693</span>    enableShortCircuit();<a name="line.693"></a>
-<span class="sourceLineNo">694</span><a name="line.694"></a>
-<span class="sourceLineNo">695</span>    Path root = getDataTestDirOnTestFS("hadoop");<a name="line.695"></a>
-<span class="sourceLineNo">696</span>    conf.set(MapreduceTestingShim.getMROutputDirProp(),<a name="line.696"></a>
-<span class="sourceLineNo">697</span>      new Path(root, "mapred-output-dir").toString());<a name="line.697"></a>
-<span class="sourceLineNo">698</span>    conf.set("mapreduce.jobtracker.system.dir", new Path(root, "mapred-system-dir").toString());<a name="line.698"></a>
-<span class="sourceLineNo">699</span>    conf.set("mapreduce.jobtracker.staging.root.dir",<a name="line.699"></a>
-<span class="sourceLineNo">700</span>      new Path(root, "mapreduce-jobtracker-staging-root-dir").toString());<a name="line.700"></a>
-<span class="sourceLineNo">701</span>    conf.set("mapreduce.job.working.dir", new Path(root, "mapred-working-dir").toString());<a name="line.701"></a>
-<span class="sourceLineNo">702</span>    conf.set("yarn.app.mapreduce.am.staging-dir",<a name="line.702"></a>
-<span class="sourceLineNo">703</span>      new Path(root, "mapreduce-am-staging-root-dir").toString());<a name="line.703"></a>
-<span class="sourceLineNo">704</span>  }<a name="line.704"></a>
-<span class="sourceLineNo">705</span><a name="line.705"></a>
-<span class="sourceLineNo">706</span><a name="line.706"></a>
-<span class="sourceLineNo">707</span>  /**<a name="line.707"></a>
-<span class="sourceLineNo">708</span>   *  Get the HBase setting for dfs.client.read.shortcircuit from the conf or a system property.<a name="line.708"></a>
-<span class="sourceLineNo">709</span>   *  This allows to specify this parameter on the command line.<a name="line.709"></a>
-<span class="sourceLineNo">710</span>   *   If not set, default is true.<a name="line.710"></a>
-<span class="sourceLineNo">711</span>   */<a name="line.711"></a>
-<span class="sourceLineNo">712</span>  public boolean isReadShortCircuitOn(){<a name="line.712"></a>
-<span class="sourceLineNo">713</span>    final String propName = "hbase.tests.use.shortcircuit.reads";<a name="line.713"></a>
-<span class="sourceLineNo">714</span>    String readOnProp = System.getProperty(propName);<a name="line.714"></a>
-<span class="sourceLineNo">715</span>    if (readOnProp != null){<a name="line.715"></a>
-<span class="sourceLineNo">716</span>      return  Boolean.parseBoolean(readOnProp);<a name="line.716"></a>
-<span class="sourceLineNo">717</span>    } else {<a name="line.717"></a>
-<span class="sourceLineNo">718</span>      return conf.getBoolean(propName, false);<a name="line.718"></a>
-<span class="sourceLineNo">719</span>    }<a name="line.719"></a>
-<span class="sourceLineNo">720</span>  }<a name="line.720"></a>
-<span class="sourceLineNo">721</span><a name="line.721"></a>
-<span class="sourceLineNo">722</span>  /** Enable the short circuit read, unless configured differently.<a name="line.722"></a>
-<span class="sourceLineNo">723</span>   * Set both HBase and HDFS settings, including skipping the hdfs checksum checks.<a name="line.723"></a>
-<span class="sourceLineNo">724</span>   */<a name="line.724"></a>
-<span class="sourceLineNo">725</span>  private void enableShortCircuit() {<a name="line.725"></a>
-<span class="sourceLineNo">726</span>    if (isReadShortCircuitOn()) {<a name="line.726"></a>
-<span class="sourceLineNo">727</span>      String curUser = System.getProperty("user.name");<a name="line.727"></a>
-<span class="sourceLineNo">728</span>      LOG.info("read short circuit is ON for user " + curUser);<a name="line.728"></a>
-<span class="sourceLineNo">729</span>      // read short circuit, for hdfs<a name="line.729"></a>
-<span class="sourceLineNo">730</span>      conf.set("dfs.block.local-path-access.user", curUser);<a name="line.730"></a>
-<span class="sourceLineNo">731</span>      // read short circuit, for hbase<a name="line.731"></a>
-<span class="sourceLineNo">732</span>      conf.setBoolean("dfs.client.read.shortcircuit", true);<a name="line.732"></a>
-<span class="sourceLineNo">733</span>      // Skip checking checksum, for the hdfs client and the datanode<a name="line.733"></a>
-<span class="sourceLineNo">734</span>      conf.setBoolean("dfs.client.read.shortcircuit.skip.checksum", true);<a name="line.734"></a>
-<span class="sourceLineNo">735</span>    } else {<a name="line.735"></a>
-<span class="sourceLineNo">736</span>      LOG.info("read short circuit is OFF");<a name="line.736"></a>
-<span class="sourceLineNo">737</span>    }<a name="line.737"></a>
-<span class="sourceLineNo">738</span>  }<a name="line.738"></a>
-<span class="sourceLineNo">739</span><a name="line.739"></a>
-<span class="sourceLineNo">740</span>  private String createDirAndSetProperty(final String relPath, String property) {<a name="line.740"></a>
-<span class="sourceLineNo">741</span>    String path = getDataTestDir(relPath).toString();<a name="line.741"></a>
-<span class="sourceLineNo">742</span>    System.setProperty(property, path);<a name="line.742"></a>
-<span class="sourceLineNo">743</span>    conf.set(property, path);<a name="line.743"></a>
-<span class="sourceLineNo">744</span>    new File(path).mkdirs();<a name="line.744"></a>
-<span class="sourceLineNo">745</span>    LOG.info("Setting " + property + " to " + path + " in system properties and HBase conf");<a name="line.745"></a>
-<span class="sourceLineNo">746</span>    return path;<a name="line.746"></a>
-<span class="sourceLineNo">747</span>  }<a name="line.747"></a>
-<span class="sourceLineNo">748</span><a name="line.748"></a>
-<span class="sourceLineNo">749</span>  /**<a name="line.749"></a>
-<span class="sourceLineNo">750</span>   * Shuts down instance created by call to {@link #startMiniDFSCluster(int)}<a name="line.750"></a>
-<span class="sourceLineNo">751</span>   * or does nothing.<a name="line.751"></a>
-<span class="sourceLineNo">752</span>   * @throws IOException<a name="line.752"></a>
-<span class="sourceLineNo">753</span>   */<a name="line.753"></a>
-<span class="sourceLineNo">754</span>  public void shutdownMiniDFSCluster() throws IOException {<a name="line.754"></a>
-<span class="sourceLineNo">755</span>    if (this.dfsCluster != null) {<a name="line.755"></a>
-<span class="sourceLineNo">756</span>      // The below throws an exception per dn, AsynchronousCloseException.<a name="line.756"></a>
-<span class="sourceLineNo">757</span>      this.dfsCluster.shutdown();<a name="line.757"></a>
-<span class="sourceLineNo">758</span>      dfsCluster = null;<a name="line.758"></a>
-<span class="sourceLineNo">759</span>      dataTestDirOnTestFS = null;<a name="line.759"></a>
-<span class="sourceLineNo">760</span>      FSUtils.setFsDefault(this.conf, new Path("file:///"));<a name="line.760"></a>
-<span class="sourceLineNo">761</span>    }<a name="line.761"></a>
-<span class="sourceLineNo">762</span>  }<a name="line.762"></a>
-<span class="sourceLineNo">763</span><a name="line.763"></a>
-<span class="sourceLineNo">764</span><a name="line.764"></a>
-<span class="sourceLineNo">765</span>  /**<a name="line.765"></a>
-<span class="sourceLineNo">766</span>   * Start up a minicluster of hbase, dfs, and zookeeper.<a name="line.766"></a>
-<span class="sourceLineNo">767</span>   * @throws Exception<a name="line.767"></a>
-<span class="sourceLineNo">768</span>   * @return Mini hbase cluster instance created.<a name="line.768"></a>
-<span class="sourceLineNo">769</span>   * @see #shutdownMiniDFSCluster()<a name="line.769"></a>
-<span class="sourceLineNo">770</span>   */<a name="line.770"></a>
-<span class="sourceLineNo">771</span>  public MiniHBaseCluster startMiniCluster() throws Exception {<a name="line.771"></a>
-<span class="sourceLineNo">772</span>    return startMiniCluster(1, 1);<a name="line.772"></a>
-<span class="sourceLineNo">773</span>  }<a name="line.773"></a>
-<span class="sourceLineNo">774</span><a name="line.774"></a>
-<span class="sourceLineNo">775</span>  /**<a name="line.775"></a>
-<span class="sourceLineNo">776</span>   * Start up a minicluster of hbase, dfs, and zookeeper where WAL's walDir is created separately.<a name="line.776"></a>
-<span class="sourceLineNo">777</span>   * @throws Exception<a name="line.777"></a>
-<span class="sourceLineNo">778</span>   * @return Mini hbase cluster instance created.<a name="line.778"></a>
-<span class="sourceLineNo">779</span>   * @see #shutdownMiniDFSCluster()<a name="line.779"></a>
-<span class="sourceLineNo">780</span>   */<a name="line.780"></a>
-<span class="sourceLineNo">781</span>  public MiniHBaseCluster startMiniCluster(boolean withWALDir) throws Exception {<a name="line.781"></a>
-<span class="sourceLineNo">782</span>    return startMiniCluster(1, 1, 1, null, null, null, false, withWALDir);<a name="line.782"></a>
-<span class="sourceLineNo">783</span>  }<a name="line.783"></a>
-<span class="sourceLineNo">784</span><a name="line.784"></a>
-<span class="sourceLineNo">785</span>  /**<a name="line.785"></a>
-<span class="sourceLineNo">786</span>   * Start up a minicluster of hbase, dfs, and zookeeper.<a name="line.786"></a>
-<span class="sourceLineNo">787</span>   * Set the &lt;code&gt;create&lt;/code&gt; flag to create root or data directory path or not<a name="line.787"></a>
-<span class="sourceLineNo">788</span>   * (will overwrite if dir already exists)<a name="line.788"></a>
-<span class="sourceLineNo">789</span>   * @throws Exception<a name="line.789"></a>
-<span class="sourceLineNo">790</span>   * @return Mini hbase cluster instance created.<a name="line.790"></a>
-<span class="sourceLineNo">791</span>   * @see #shutdownMiniDFSCluster()<a name="line.791"></a>
-<span class="sourceLineNo">792</span>   */<a name="line.792"></a>
-<span class="sourceLineNo">793</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves, boolean create)<a name="line.793"></a>
-<span class="sourceLineNo">794</span>  throws Exception {<a name="line.794"></a>
-<span class="sourceLineNo">795</span>    return startMiniCluster(1, numSlaves, create);<a name="line.795"></a>
-<span class="sourceLineNo">796</span>  }<a name="line.796"></a>
-<span class="sourceLineNo">797</span><a name="line.797"></a>
-<span class="sourceLineNo">798</span>  /**<a name="line.798"></a>
-<span class="sourceLineNo">799</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.799"></a>
-<span class="sourceLineNo">800</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.800"></a>
-<span class="sourceLineNo">801</span>   * subdirectory in a directory under System property test.build.data.<a name="line.801"></a>
-<span class="sourceLineNo">802</span>   * Directory is cleaned up on exit.<a name="line.802"></a>
-<span class="sourceLineNo">803</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.803"></a>
-<span class="sourceLineNo">804</span>   * datanodes and regionservers.  If numSlaves is &gt; 1, then make sure<a name="line.804"></a>
-<span class="sourceLineNo">805</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.805"></a>
-<span class="sourceLineNo">806</span>   * bind errors.<a name="line.806"></a>
-<span class="sourceLineNo">807</span>   * @throws Exception<a name="line.807"></a>
-<span class="sourceLineNo">808</span>   * @see #shutdownMiniCluster()<a name="line.808"></a>
-<span class="sourceLineNo">809</span>   * @return Mini hbase cluster instance created.<a name="line.809"></a>
-<span class="sourceLineNo">810</span>   */<a name="line.810"></a>
-<span class="sourceLineNo">811</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves)<a name="line.811"></a>
-<span class="sourceLineNo">812</span>  throws Exception {<a name="line.812"></a>
-<span class="sourceLineNo">813</span>    return startMiniCluster(1, numSlaves, false);<a name="line.813"></a>
-<span class="sourceLineNo">814</span>  }<a name="line.814"></a>
-<span class="sourceLineNo">815</span><a name="line.815"></a>
-<span class="sourceLineNo">816</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves, boolean create, boolean withWALDir)<a name="line.816"></a>
-<span class="sourceLineNo">817</span>          throws Exception {<a name="line.817"></a>
-<span class="sourceLineNo">818</span>    return startMiniCluster(1, numSlaves, numSlaves, null, null, null, create, withWALDir);<a name="line.818"></a>
-<span class="sourceLineNo">819</span>  }<a name="line.819"></a>
-<span class="sourceLineNo">820</span><a name="line.820"></a>
-<span class="sourceLineNo">821</span>  /**<a name="line.821"></a>
-<span class="sourceLineNo">822</span>   * Start minicluster. Whether to create a new root or data dir path even if such a path<a name="line.822"></a>
-<span class="sourceLineNo">823</span>   * has been created earlier is decided based on flag &lt;code&gt;create&lt;/code&gt;<a name="line.823"></a>
-<span class="sourceLineNo">824</span>   * @throws Exception<a name="line.824"></a>
-<span class="sourceLineNo">825</span>   * @see #shutdownMiniCluster()<a name="line.825"></a>
-<span class="sourceLineNo">826</span>   * @return Mini hbase cluster instance created.<a name="line.826"></a>
-<span class="sourceLineNo">827</span>   */<a name="line.827"></a>
-<span class="sourceLineNo">828</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.828"></a>
-<span class="sourceLineNo">829</span>      final int numSlaves, boolean create)<a name="line.829"></a>
-<span class="sourceLineNo">830</span>    throws Exception {<a name="line.830"></a>
-<span class="sourceLineNo">831</span>      return startMiniCluster(numMasters, numSlaves, null, create);<a name="line.831"></a>
-<span class="sourceLineNo">832</span>  }<a name="line.832"></a>
-<span class="sourceLineNo">833</span><a name="line.833"></a>
-<span class="sourceLineNo">834</span>  /**<a name="line.834"></a>
-<span class="sourceLineNo">835</span>   * start minicluster<a name="line.835"></a>
-<span class="sourceLineNo">836</span>   * @throws Exception<a name="line.836"></a>
-<span class="sourceLineNo">837</span>   * @see #shutdownMiniCluster()<a name="line.837"></a>
-<span class="sourceLineNo">838</span>   * @return Mini hbase cluster instance created.<a name="line.838"></a>
-<span class="sourceLineNo">839</span>   */<a name="line.839"></a>
-<span class="sourceLineNo">840</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.840"></a>
-<span class="sourceLineNo">841</span>    final int numSlaves)<a name="line.841"></a>
-<span class="sourceLineNo">842</span>  throws Exception {<a name="line.842"></a>
-<span class="sourceLineNo">843</span>    return startMiniCluster(numMasters, numSlaves, null, false);<a name="line.843"></a>
-<span class="sourceLineNo">844</span>  }<a name="line.844"></a>
-<span class="sourceLineNo">845</span><a name="line.845"></a>
-<span class="sourceLineNo">846</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.846"></a>
-<span class="sourceLineNo">847</span>      final int numSlaves, final String[] dataNodeHosts, boolean create)<a name="line.847"></a>
-<span class="sourceLineNo">848</span>      throws Exception {<a name="line.848"></a>
-<span class="sourceLineNo">849</span>    return startMiniCluster(numMasters, numSlaves, numSlaves, dataNodeHosts,<a name="line.849"></a>
-<span class="sourceLineNo">850</span>        null, null, create, false);<a name="line.850"></a>
-<span class="sourceLineNo">851</span>  }<a name="line.851"></a>
-<span class="sourceLineNo">852</span><a name="line.852"></a>
-<span class="sourceLineNo">853</span>  /**<a name="line.853"></a>
-<span class="sourceLineNo">854</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.854"></a>
-<span class="sourceLineNo">855</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.855"></a>
-<span class="sourceLineNo">856</span>   * subdirectory in a directory under System property test.build.data.<a name="line.856"></a>
-<span class="sourceLineNo">857</span>   * Directory is cleaned up on exit.<a name="line.857"></a>
-<span class="sourceLineNo">858</span>   * @param numMasters Number of masters to start up.  We'll start this many<a name="line.858"></a>
-<span class="sourceLineNo">859</span>   * hbase masters.  If numMasters &gt; 1, you can find the active/primary master<a name="line.859"></a>
-<span class="sourceLineNo">860</span>   * with {@link MiniHBaseCluster#getMaster()}.<a name="line.860"></a>
-<span class="sourceLineNo">861</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.861"></a>
-<span class="sourceLineNo">862</span>   * regionservers. If dataNodeHosts == null, this also indicates the number of<a name="line.862"></a>
-<span class="sourceLineNo">863</span>   * datanodes to start. If dataNodeHosts != null, the number of datanodes is<a name="line.863"></a>
-<span class="sourceLineNo">864</span>   * based on dataNodeHosts.length.<a name="line.864"></a>
-<span class="sourceLineNo">865</span>   * If numSlaves is &gt; 1, then make sure<a name="line.865"></a>
-<span class="sourceLineNo">866</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.866"></a>
-<span class="sourceLineNo">867</span>   * bind errors.<a name="line.867"></a>
-<span class="sourceLineNo">868</span>   * @param dataNodeHosts hostnames DNs to run on.<a name="line.868"></a>
-<span class="sourceLineNo">869</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.869"></a>
-<span class="sourceLineNo">870</span>   * like HDFS block location verification.<a name="line.870"></a>
-<span class="sourceLineNo">871</span>   * If you start MiniDFSCluster without host names,<a name="line.871"></a>
-<span class="sourceLineNo">872</span>   * all instances of the datanodes will have the same host name.<a name="line.872"></a>
-<span class="sourceLineNo">873</span>   * @throws Exception<a name="line.873"></a>
-<span class="sourceLineNo">874</span>   * @see #shutdownMiniCluster()<a name="line.874"></a>
-<span class="sourceLineNo">875</span>   * @return Mini hbase cluster instance created.<a name="line.875"></a>
-<span class="sourceLineNo">876</span>   */<a name="line.876"></a>
-<span class="sourceLineNo">877</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.877"></a>
-<span class="sourceLineNo">878</span>      final int numSlaves, final String[] dataNodeHosts) throws Exception {<a name="line.878"></a>
-<span class="sourceLineNo">879</span>    return startMiniCluster(numMasters, numSlaves, numSlaves, dataNodeHosts,<a name="line.879"></a>
-<span class="sourceLineNo">880</span>        null, null);<a name="line.880"></a>
-<span class="sourceLineNo">881</span>  }<a name="line.881"></a>
-<span class="sourceLineNo">882</span><a name="line.882"></a>
-<span class="sourceLineNo">883</span>  /**<a name="line.883"></a>
-<span class="sourceLineNo">884</span>   * Same as {@link #startMiniCluster(int, int)}, but with custom number of datanodes.<a name="line.884"></a>
-<span class="sourceLineNo">885</span>   * @param numDataNodes Number of data nodes.<a name="line.885"></a>
-<span class="sourceLineNo">886</span>   */<a name="line.886"></a>
-<span class="sourceLineNo">887</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.887"></a>
-<span class="sourceLineNo">888</span>      final int numSlaves, final int numDataNodes) throws Exception {<a name="line.888"></a>
-<span class="sourceLineNo">889</span>    return startMiniCluster(numMasters, numSlaves, numDataNodes, null, null, null);<a name="line.889"></a>
-<span class="sourceLineNo">890</span>  }<a name="line.890"></a>
-<span class="sourceLineNo">891</span><a name="line.891"></a>
-<span class="sourceLineNo">892</span>  /**<a name="line.892"></a>
-<span class="sourceLineNo">893</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.893"></a>
-<span class="sourceLineNo">894</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.894"></a>
-<span class="sourceLineNo">895</span>   * subdirectory in a directory under System property test.build.data.<a name="line.895"></a>
-<span class="sourceLineNo">896</span>   * Directory is cleaned up on exit.<a name="line.896"></a>
-<span class="sourceLineNo">897</span>   * @param numMasters Number of masters to start up.  We'll start this many<a name="line.897"></a>
-<span class="sourceLineNo">898</span>   * hbase masters.  If numMasters &gt; 1, you can find the active/primary master<a name="line.898"></a>
-<span class="sourceLineNo">899</span>   * with {@link MiniHBaseCluster#getMaster()}.<a name="line.899"></a>
-<span class="sourceLineNo">900</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.900"></a>
-<span class="sourceLineNo">901</span>   * regionservers. If dataNodeHosts == null, this also indicates the number of<a name="line.901"></a>
-<span class="sourceLineNo">902</span>   * datanodes to start. If dataNodeHosts != null, the number of datanodes is<a name="line.902"></a>
-<span class="sourceLineNo">903</span>   * based on dataNodeHosts.length.<a name="line.903"></a>
-<span class="sourceLineNo">904</span>   * If numSlaves is &gt; 1, then make sure<a name="line.904"></a>
-<span class="sourceLineNo">905</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.905"></a>
-<span class="sourceLineNo">906</span>   * bind errors.<a name="line.906"></a>
-<span class="sourceLineNo">907</span>   * @param dataNodeHosts hostnames DNs to run on.<a name="line.907"></a>
-<span class="sourceLineNo">908</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.908"></a>
-<span class="sourceLineNo">909</span>   * like HDFS block location verification.<a name="line.909"></a>
-<span class="sourceLineNo">910</span>   * If you start MiniDFSCluster without host names,<a name="line.910"></a>
-<span class="sourceLineNo">911</span>   * all instances of the datanodes will have the same host name.<a name="line.911"></a>
-<span class="sourceLineNo">912</span>   * @param masterClass The class to use as HMaster, or null for default<a name="line.912"></a>
-<span class="sourceLineNo">913</span>   * @param regionserverClass The class to use as HRegionServer, or null for<a name="line.913"></a>
-<span class="sourceLineNo">914</span>   * default<a name="line.914"></a>
-<span class="sourceLineNo">915</span>   * @throws Exception<a name="line.915"></a>
-<span class="sourceLineNo">916</span>   * @see #shutdownMiniCluster()<a name="line.916"></a>
-<span class="sourceLineNo">917</span>   * @return Mini hbase cluster instance created.<a name="line.917"></a>
-<span class="sourceLineNo">918</span>   */<a name="line.918"></a>
-<span class="sourceLineNo">919</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.919"></a>
-<span class="sourceLineNo">920</span>      final int numSlaves, final String[] dataNodeHosts, Class&lt;? extends HMaster&gt; masterClass,<a name="line.920"></a>
-<span class="sourceLineNo">921</span>      Class&lt;? extends MiniHBaseCluster.MiniHBaseClusterRegionServer&gt; regionserverClass)<a name="line.921"></a>
-<span class="sourceLineNo">922</span>          throws Exception {<a name="line.922"></a>
-<span class="sourceLineNo">923</span>    return startMiniCluster(<a name="line.923"></a>
-<span class="sourceLineNo">924</span>        numMas

<TRUNCATED>

[03/10] hbase-site git commit: Published site at 03e596c6694a21768c51a3c52e1a032f51fd637c.

Posted by gi...@apache.org.
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/a5e2ad1d/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 b9dc38a..a93e27f 100644
--- a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html
+++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.SeenRowTracker.html
@@ -341,3814 +341,3818 @@
 <span class="sourceLineNo">333</span>    ChecksumUtil.generateExceptionForChecksumFailureForTest(true);<a name="line.333"></a>
 <span class="sourceLineNo">334</span><a name="line.334"></a>
 <span class="sourceLineNo">335</span>    // Save this for when setting default file:// breaks things<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.336"></a>
-<span class="sourceLineNo">337</span><a name="line.337"></a>
-<span class="sourceLineNo">338</span>    // Every cluster is a local cluster until we start DFS<a name="line.338"></a>
-<span class="sourceLineNo">339</span>    // Note that conf could be null, but this.conf will not be<a name="line.339"></a>
-<span class="sourceLineNo">340</span>    String dataTestDir = getDataTestDir().toString();<a name="line.340"></a>
-<span class="sourceLineNo">341</span>    this.conf.set("fs.defaultFS","file:///");<a name="line.341"></a>
-<span class="sourceLineNo">342</span>    this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.342"></a>
-<span class="sourceLineNo">343</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.343"></a>
-<span class="sourceLineNo">344</span>    this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    // If the value for random ports isn't set set it to true, thus making<a name="line.345"></a>
-<span class="sourceLineNo">346</span>    // tests opt-out for random port assignment<a name="line.346"></a>
-<span class="sourceLineNo">347</span>    this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.347"></a>
-<span class="sourceLineNo">348</span>        this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.348"></a>
-<span class="sourceLineNo">349</span>  }<a name="line.349"></a>
-<span class="sourceLineNo">350</span><a name="line.350"></a>
-<span class="sourceLineNo">351</span>  /**<a name="line.351"></a>
-<span class="sourceLineNo">352</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.352"></a>
-<span class="sourceLineNo">353</span>   * @return a normal HBaseTestingUtility<a name="line.353"></a>
-<span class="sourceLineNo">354</span>   */<a name="line.354"></a>
-<span class="sourceLineNo">355</span>  @Deprecated<a name="line.355"></a>
-<span class="sourceLineNo">356</span>  public static HBaseTestingUtility createLocalHTU() {<a name="line.356"></a>
-<span class="sourceLineNo">357</span>    return new HBaseTestingUtility();<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>  /**<a name="line.360"></a>
-<span class="sourceLineNo">361</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.361"></a>
-<span class="sourceLineNo">362</span>   * @return a normal HBaseTestingUtility<a name="line.362"></a>
-<span class="sourceLineNo">363</span>   */<a name="line.363"></a>
-<span class="sourceLineNo">364</span>  @Deprecated<a name="line.364"></a>
-<span class="sourceLineNo">365</span>  public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    return new HBaseTestingUtility(c);<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>  /**<a name="line.369"></a>
-<span class="sourceLineNo">370</span>   * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.370"></a>
-<span class="sourceLineNo">371</span>   */<a name="line.371"></a>
-<span class="sourceLineNo">372</span>  public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.372"></a>
-<span class="sourceLineNo">373</span>    closeRegionAndWAL((HRegion)r);<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 HRegion {@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 HRegion r) throws IOException {<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    if (r == null) return;<a name="line.380"></a>
-<span class="sourceLineNo">381</span>    r.close();<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    if (r.getWAL() == null) return;<a name="line.382"></a>
-<span class="sourceLineNo">383</span>    r.getWAL().close();<a name="line.383"></a>
-<span class="sourceLineNo">384</span>  }<a name="line.384"></a>
-<span class="sourceLineNo">385</span><a name="line.385"></a>
-<span class="sourceLineNo">386</span>  /**<a name="line.386"></a>
-<span class="sourceLineNo">387</span>   * Returns this classes's instance of {@link Configuration}.  Be careful how<a name="line.387"></a>
-<span class="sourceLineNo">388</span>   * you use the returned Configuration since {@link Connection} instances<a name="line.388"></a>
-<span class="sourceLineNo">389</span>   * can be shared.  The Map of Connections is keyed by the Configuration.  If<a name="line.389"></a>
-<span class="sourceLineNo">390</span>   * say, a Connection was being used against a cluster that had been shutdown,<a name="line.390"></a>
-<span class="sourceLineNo">391</span>   * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.391"></a>
-<span class="sourceLineNo">392</span>   * be wholesome.  Rather than use the return direct, its usually best to<a name="line.392"></a>
-<span class="sourceLineNo">393</span>   * make a copy and use that.  Do<a name="line.393"></a>
-<span class="sourceLineNo">394</span>   * &lt;code&gt;Configuration c = new Configuration(INSTANCE.getConfiguration());&lt;/code&gt;<a name="line.394"></a>
-<span class="sourceLineNo">395</span>   * @return Instance of Configuration.<a name="line.395"></a>
-<span class="sourceLineNo">396</span>   */<a name="line.396"></a>
-<span class="sourceLineNo">397</span>  @Override<a name="line.397"></a>
-<span class="sourceLineNo">398</span>  public Configuration getConfiguration() {<a name="line.398"></a>
-<span class="sourceLineNo">399</span>    return super.getConfiguration();<a name="line.399"></a>
-<span class="sourceLineNo">400</span>  }<a name="line.400"></a>
-<span class="sourceLineNo">401</span><a name="line.401"></a>
-<span class="sourceLineNo">402</span>  public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    this.hbaseCluster = hbaseCluster;<a name="line.403"></a>
+<span class="sourceLineNo">336</span>    if (this.conf.get("fs.defaultFS") != null) {<a name="line.336"></a>
+<span class="sourceLineNo">337</span>      this.conf.set("original.defaultFS", this.conf.get("fs.defaultFS"));<a name="line.337"></a>
+<span class="sourceLineNo">338</span>    }<a name="line.338"></a>
+<span class="sourceLineNo">339</span>    if (this.conf.get(HConstants.HBASE_DIR) != null) {<a name="line.339"></a>
+<span class="sourceLineNo">340</span>      this.conf.set("original.hbase.dir", this.conf.get(HConstants.HBASE_DIR));<a name="line.340"></a>
+<span class="sourceLineNo">341</span>    }<a name="line.341"></a>
+<span class="sourceLineNo">342</span>    // Every cluster is a local cluster until we start DFS<a name="line.342"></a>
+<span class="sourceLineNo">343</span>    // Note that conf could be null, but this.conf will not be<a name="line.343"></a>
+<span class="sourceLineNo">344</span>    String dataTestDir = getDataTestDir().toString();<a name="line.344"></a>
+<span class="sourceLineNo">345</span>    this.conf.set("fs.defaultFS","file:///");<a name="line.345"></a>
+<span class="sourceLineNo">346</span>    this.conf.set(HConstants.HBASE_DIR, "file://" + dataTestDir);<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.347"></a>
+<span class="sourceLineNo">348</span>    this.conf.setBoolean(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE,false);<a name="line.348"></a>
+<span class="sourceLineNo">349</span>    // If the value for random ports isn't set set it to true, thus making<a name="line.349"></a>
+<span class="sourceLineNo">350</span>    // tests opt-out for random port assignment<a name="line.350"></a>
+<span class="sourceLineNo">351</span>    this.conf.setBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS,<a name="line.351"></a>
+<span class="sourceLineNo">352</span>        this.conf.getBoolean(LocalHBaseCluster.ASSIGN_RANDOM_PORTS, true));<a name="line.352"></a>
+<span class="sourceLineNo">353</span>  }<a name="line.353"></a>
+<span class="sourceLineNo">354</span><a name="line.354"></a>
+<span class="sourceLineNo">355</span>  /**<a name="line.355"></a>
+<span class="sourceLineNo">356</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility()} instead<a name="line.356"></a>
+<span class="sourceLineNo">357</span>   * @return a normal HBaseTestingUtility<a name="line.357"></a>
+<span class="sourceLineNo">358</span>   */<a name="line.358"></a>
+<span class="sourceLineNo">359</span>  @Deprecated<a name="line.359"></a>
+<span class="sourceLineNo">360</span>  public static HBaseTestingUtility createLocalHTU() {<a name="line.360"></a>
+<span class="sourceLineNo">361</span>    return new HBaseTestingUtility();<a name="line.361"></a>
+<span class="sourceLineNo">362</span>  }<a name="line.362"></a>
+<span class="sourceLineNo">363</span><a name="line.363"></a>
+<span class="sourceLineNo">364</span>  /**<a name="line.364"></a>
+<span class="sourceLineNo">365</span>   * @deprecated use {@link HBaseTestingUtility#HBaseTestingUtility(Configuration)} instead<a name="line.365"></a>
+<span class="sourceLineNo">366</span>   * @return a normal HBaseTestingUtility<a name="line.366"></a>
+<span class="sourceLineNo">367</span>   */<a name="line.367"></a>
+<span class="sourceLineNo">368</span>  @Deprecated<a name="line.368"></a>
+<span class="sourceLineNo">369</span>  public static HBaseTestingUtility createLocalHTU(Configuration c) {<a name="line.369"></a>
+<span class="sourceLineNo">370</span>    return new HBaseTestingUtility(c);<a name="line.370"></a>
+<span class="sourceLineNo">371</span>  }<a name="line.371"></a>
+<span class="sourceLineNo">372</span><a name="line.372"></a>
+<span class="sourceLineNo">373</span>  /**<a name="line.373"></a>
+<span class="sourceLineNo">374</span>   * Close both the region {@code r} and it's underlying WAL. For use in tests.<a name="line.374"></a>
+<span class="sourceLineNo">375</span>   */<a name="line.375"></a>
+<span class="sourceLineNo">376</span>  public static void closeRegionAndWAL(final Region r) throws IOException {<a name="line.376"></a>
+<span class="sourceLineNo">377</span>    closeRegionAndWAL((HRegion)r);<a name="line.377"></a>
+<span class="sourceLineNo">378</span>  }<a name="line.378"></a>
+<span class="sourceLineNo">379</span><a name="line.379"></a>
+<span class="sourceLineNo">380</span>  /**<a name="line.380"></a>
+<span class="sourceLineNo">381</span>   * Close both the HRegion {@code r} and it's underlying WAL. For use in tests.<a name="line.381"></a>
+<span class="sourceLineNo">382</span>   */<a name="line.382"></a>
+<span class="sourceLineNo">383</span>  public static void closeRegionAndWAL(final HRegion r) throws IOException {<a name="line.383"></a>
+<span class="sourceLineNo">384</span>    if (r == null) return;<a name="line.384"></a>
+<span class="sourceLineNo">385</span>    r.close();<a name="line.385"></a>
+<span class="sourceLineNo">386</span>    if (r.getWAL() == null) return;<a name="line.386"></a>
+<span class="sourceLineNo">387</span>    r.getWAL().close();<a name="line.387"></a>
+<span class="sourceLineNo">388</span>  }<a name="line.388"></a>
+<span class="sourceLineNo">389</span><a name="line.389"></a>
+<span class="sourceLineNo">390</span>  /**<a name="line.390"></a>
+<span class="sourceLineNo">391</span>   * Returns this classes's instance of {@link Configuration}.  Be careful how<a name="line.391"></a>
+<span class="sourceLineNo">392</span>   * you use the returned Configuration since {@link Connection} instances<a name="line.392"></a>
+<span class="sourceLineNo">393</span>   * can be shared.  The Map of Connections is keyed by the Configuration.  If<a name="line.393"></a>
+<span class="sourceLineNo">394</span>   * say, a Connection was being used against a cluster that had been shutdown,<a name="line.394"></a>
+<span class="sourceLineNo">395</span>   * see {@link #shutdownMiniCluster()}, then the Connection will no longer<a name="line.395"></a>
+<span class="sourceLineNo">396</span>   * be wholesome.  Rather than use the return direct, its usually best to<a name="line.396"></a>
+<span class="sourceLineNo">397</span>   * make a copy and use that.  Do<a name="line.397"></a>
+<span class="sourceLineNo">398</span>   * &lt;code&gt;Configuration c = new Configuration(INSTANCE.getConfiguration());&lt;/code&gt;<a name="line.398"></a>
+<span class="sourceLineNo">399</span>   * @return Instance of Configuration.<a name="line.399"></a>
+<span class="sourceLineNo">400</span>   */<a name="line.400"></a>
+<span class="sourceLineNo">401</span>  @Override<a name="line.401"></a>
+<span class="sourceLineNo">402</span>  public Configuration getConfiguration() {<a name="line.402"></a>
+<span class="sourceLineNo">403</span>    return super.getConfiguration();<a name="line.403"></a>
 <span class="sourceLineNo">404</span>  }<a name="line.404"></a>
 <span class="sourceLineNo">405</span><a name="line.405"></a>
-<span class="sourceLineNo">406</span>  /**<a name="line.406"></a>
-<span class="sourceLineNo">407</span>   * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.407"></a>
-<span class="sourceLineNo">408</span>   * Give it a random name so can have many concurrent tests running if<a name="line.408"></a>
-<span class="sourceLineNo">409</span>   * we need to.  It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.409"></a>
-<span class="sourceLineNo">410</span>   * System property, as it's what minidfscluster bases<a name="line.410"></a>
-<span class="sourceLineNo">411</span>   * it data dir on.  Moding a System property is not the way to do concurrent<a name="line.411"></a>
-<span class="sourceLineNo">412</span>   * instances -- another instance could grab the temporary<a name="line.412"></a>
-<span class="sourceLineNo">413</span>   * value unintentionally -- but not anything can do about it at moment;<a name="line.413"></a>
-<span class="sourceLineNo">414</span>   * single instance only is how the minidfscluster works.<a name="line.414"></a>
-<span class="sourceLineNo">415</span>   *<a name="line.415"></a>
-<span class="sourceLineNo">416</span>   * We also create the underlying directory for<a name="line.416"></a>
-<span class="sourceLineNo">417</span>   *  hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.417"></a>
-<span class="sourceLineNo">418</span>   *  in the conf, and as a system property for hadoop.tmp.dir<a name="line.418"></a>
+<span class="sourceLineNo">406</span>  public void setHBaseCluster(HBaseCluster hbaseCluster) {<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    this.hbaseCluster = hbaseCluster;<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>  /**<a name="line.410"></a>
+<span class="sourceLineNo">411</span>   * Home our data in a dir under {@link #DEFAULT_BASE_TEST_DIRECTORY}.<a name="line.411"></a>
+<span class="sourceLineNo">412</span>   * Give it a random name so can have many concurrent tests running if<a name="line.412"></a>
+<span class="sourceLineNo">413</span>   * we need to.  It needs to amend the {@link #TEST_DIRECTORY_KEY}<a name="line.413"></a>
+<span class="sourceLineNo">414</span>   * System property, as it's what minidfscluster bases<a name="line.414"></a>
+<span class="sourceLineNo">415</span>   * it data dir on.  Moding a System property is not the way to do concurrent<a name="line.415"></a>
+<span class="sourceLineNo">416</span>   * instances -- another instance could grab the temporary<a name="line.416"></a>
+<span class="sourceLineNo">417</span>   * value unintentionally -- but not anything can do about it at moment;<a name="line.417"></a>
+<span class="sourceLineNo">418</span>   * single instance only is how the minidfscluster works.<a name="line.418"></a>
 <span class="sourceLineNo">419</span>   *<a name="line.419"></a>
-<span class="sourceLineNo">420</span>   * @return The calculated data test build directory, if newly-created.<a name="line.420"></a>
-<span class="sourceLineNo">421</span>   */<a name="line.421"></a>
-<span class="sourceLineNo">422</span>  @Override<a name="line.422"></a>
-<span class="sourceLineNo">423</span>  protected Path setupDataTestDir() {<a name="line.423"></a>
-<span class="sourceLineNo">424</span>    Path testPath = super.setupDataTestDir();<a name="line.424"></a>
-<span class="sourceLineNo">425</span>    if (null == testPath) {<a name="line.425"></a>
-<span class="sourceLineNo">426</span>      return null;<a name="line.426"></a>
-<span class="sourceLineNo">427</span>    }<a name="line.427"></a>
-<span class="sourceLineNo">428</span><a name="line.428"></a>
-<span class="sourceLineNo">429</span>    createSubDirAndSystemProperty(<a name="line.429"></a>
-<span class="sourceLineNo">430</span>      "hadoop.log.dir",<a name="line.430"></a>
-<span class="sourceLineNo">431</span>      testPath, "hadoop-log-dir");<a name="line.431"></a>
+<span class="sourceLineNo">420</span>   * We also create the underlying directory for<a name="line.420"></a>
+<span class="sourceLineNo">421</span>   *  hadoop.log.dir, mapreduce.cluster.local.dir and hadoop.tmp.dir, and set the values<a name="line.421"></a>
+<span class="sourceLineNo">422</span>   *  in the conf, and as a system property for hadoop.tmp.dir<a name="line.422"></a>
+<span class="sourceLineNo">423</span>   *<a name="line.423"></a>
+<span class="sourceLineNo">424</span>   * @return The calculated data test build directory, if newly-created.<a name="line.424"></a>
+<span class="sourceLineNo">425</span>   */<a name="line.425"></a>
+<span class="sourceLineNo">426</span>  @Override<a name="line.426"></a>
+<span class="sourceLineNo">427</span>  protected Path setupDataTestDir() {<a name="line.427"></a>
+<span class="sourceLineNo">428</span>    Path testPath = super.setupDataTestDir();<a name="line.428"></a>
+<span class="sourceLineNo">429</span>    if (null == testPath) {<a name="line.429"></a>
+<span class="sourceLineNo">430</span>      return null;<a name="line.430"></a>
+<span class="sourceLineNo">431</span>    }<a name="line.431"></a>
 <span class="sourceLineNo">432</span><a name="line.432"></a>
-<span class="sourceLineNo">433</span>    // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.433"></a>
-<span class="sourceLineNo">434</span>    //  we want our own value to ensure uniqueness on the same machine<a name="line.434"></a>
-<span class="sourceLineNo">435</span>    createSubDirAndSystemProperty(<a name="line.435"></a>
-<span class="sourceLineNo">436</span>      "hadoop.tmp.dir",<a name="line.436"></a>
-<span class="sourceLineNo">437</span>      testPath, "hadoop-tmp-dir");<a name="line.437"></a>
-<span class="sourceLineNo">438</span><a name="line.438"></a>
-<span class="sourceLineNo">439</span>    // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.439"></a>
-<span class="sourceLineNo">440</span>    createSubDir(<a name="line.440"></a>
-<span class="sourceLineNo">441</span>      "mapreduce.cluster.local.dir",<a name="line.441"></a>
-<span class="sourceLineNo">442</span>      testPath, "mapred-local-dir");<a name="line.442"></a>
-<span class="sourceLineNo">443</span><a name="line.443"></a>
-<span class="sourceLineNo">444</span>    return testPath;<a name="line.444"></a>
-<span class="sourceLineNo">445</span>  }<a name="line.445"></a>
-<span class="sourceLineNo">446</span><a name="line.446"></a>
-<span class="sourceLineNo">447</span>  private void createSubDirAndSystemProperty(<a name="line.447"></a>
-<span class="sourceLineNo">448</span>    String propertyName, Path parent, String subDirName){<a name="line.448"></a>
-<span class="sourceLineNo">449</span><a name="line.449"></a>
-<span class="sourceLineNo">450</span>    String sysValue = System.getProperty(propertyName);<a name="line.450"></a>
-<span class="sourceLineNo">451</span><a name="line.451"></a>
-<span class="sourceLineNo">452</span>    if (sysValue != null) {<a name="line.452"></a>
-<span class="sourceLineNo">453</span>      // There is already a value set. So we do nothing but hope<a name="line.453"></a>
-<span class="sourceLineNo">454</span>      //  that there will be no conflicts<a name="line.454"></a>
-<span class="sourceLineNo">455</span>      LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.455"></a>
-<span class="sourceLineNo">456</span>        sysValue + " so I do NOT create it in " + parent);<a name="line.456"></a>
-<span class="sourceLineNo">457</span>      String confValue = conf.get(propertyName);<a name="line.457"></a>
-<span class="sourceLineNo">458</span>      if (confValue != null &amp;&amp; !confValue.endsWith(sysValue)){<a name="line.458"></a>
-<span class="sourceLineNo">459</span>       LOG.warn(<a name="line.459"></a>
-<span class="sourceLineNo">460</span>         propertyName + " property value differs in configuration and system: "+<a name="line.460"></a>
-<span class="sourceLineNo">461</span>         "Configuration="+confValue+" while System="+sysValue+<a name="line.461"></a>
-<span class="sourceLineNo">462</span>         " Erasing configuration value by system value."<a name="line.462"></a>
-<span class="sourceLineNo">463</span>       );<a name="line.463"></a>
-<span class="sourceLineNo">464</span>      }<a name="line.464"></a>
-<span class="sourceLineNo">465</span>      conf.set(propertyName, sysValue);<a name="line.465"></a>
-<span class="sourceLineNo">466</span>    } else {<a name="line.466"></a>
-<span class="sourceLineNo">467</span>      // Ok, it's not set, so we create it as a subdirectory<a name="line.467"></a>
-<span class="sourceLineNo">468</span>      createSubDir(propertyName, parent, subDirName);<a name="line.468"></a>
-<span class="sourceLineNo">469</span>      System.setProperty(propertyName, conf.get(propertyName));<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><a name="line.472"></a>
-<span class="sourceLineNo">473</span>  /**<a name="line.473"></a>
-<span class="sourceLineNo">474</span>   * @return Where to write test data on the test filesystem; Returns working directory<a name="line.474"></a>
-<span class="sourceLineNo">475</span>   * for the test filesystem by default<a name="line.475"></a>
-<span class="sourceLineNo">476</span>   * @see #setupDataTestDirOnTestFS()<a name="line.476"></a>
-<span class="sourceLineNo">477</span>   * @see #getTestFileSystem()<a name="line.477"></a>
-<span class="sourceLineNo">478</span>   */<a name="line.478"></a>
-<span class="sourceLineNo">479</span>  private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.479"></a>
-<span class="sourceLineNo">480</span>    FileSystem fs = getTestFileSystem();<a name="line.480"></a>
-<span class="sourceLineNo">481</span>    return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.481"></a>
-<span class="sourceLineNo">482</span>  }<a name="line.482"></a>
-<span class="sourceLineNo">483</span><a name="line.483"></a>
-<span class="sourceLineNo">484</span>  /**<a name="line.484"></a>
-<span class="sourceLineNo">485</span>   * @return META table descriptor<a name="line.485"></a>
-<span class="sourceLineNo">486</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.486"></a>
-<span class="sourceLineNo">487</span>   *             use {@link #getMetaTableDescriptorBuilder()}<a name="line.487"></a>
-<span class="sourceLineNo">488</span>   */<a name="line.488"></a>
-<span class="sourceLineNo">489</span>  @Deprecated<a name="line.489"></a>
-<span class="sourceLineNo">490</span>  public HTableDescriptor getMetaTableDescriptor() {<a name="line.490"></a>
-<span class="sourceLineNo">491</span>    return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.491"></a>
-<span class="sourceLineNo">492</span>  }<a name="line.492"></a>
-<span class="sourceLineNo">493</span><a name="line.493"></a>
-<span class="sourceLineNo">494</span>  /**<a name="line.494"></a>
-<span class="sourceLineNo">495</span>   * @return META table descriptor<a name="line.495"></a>
-<span class="sourceLineNo">496</span>   */<a name="line.496"></a>
-<span class="sourceLineNo">497</span>  public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.497"></a>
-<span class="sourceLineNo">498</span>    try {<a name="line.498"></a>
-<span class="sourceLineNo">499</span>      return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.499"></a>
-<span class="sourceLineNo">500</span>    } catch (IOException e) {<a name="line.500"></a>
-<span class="sourceLineNo">501</span>      throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.501"></a>
-<span class="sourceLineNo">502</span>    }<a name="line.502"></a>
-<span class="sourceLineNo">503</span>  }<a name="line.503"></a>
-<span class="sourceLineNo">504</span><a name="line.504"></a>
-<span class="sourceLineNo">505</span>  /**<a name="line.505"></a>
-<span class="sourceLineNo">506</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.506"></a>
-<span class="sourceLineNo">507</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.507"></a>
-<span class="sourceLineNo">508</span>   * if the test relies on it.<a name="line.508"></a>
-<span class="sourceLineNo">509</span>   * @return a unique path in the test filesystem<a name="line.509"></a>
-<span class="sourceLineNo">510</span>   */<a name="line.510"></a>
-<span class="sourceLineNo">511</span>  public Path getDataTestDirOnTestFS() throws IOException {<a name="line.511"></a>
-<span class="sourceLineNo">512</span>    if (dataTestDirOnTestFS == null) {<a name="line.512"></a>
-<span class="sourceLineNo">513</span>      setupDataTestDirOnTestFS();<a name="line.513"></a>
-<span class="sourceLineNo">514</span>    }<a name="line.514"></a>
-<span class="sourceLineNo">515</span><a name="line.515"></a>
-<span class="sourceLineNo">516</span>    return dataTestDirOnTestFS;<a name="line.516"></a>
-<span class="sourceLineNo">517</span>  }<a name="line.517"></a>
-<span class="sourceLineNo">518</span><a name="line.518"></a>
-<span class="sourceLineNo">519</span>  /**<a name="line.519"></a>
-<span class="sourceLineNo">520</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.520"></a>
-<span class="sourceLineNo">521</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.521"></a>
-<span class="sourceLineNo">522</span>   * if the test relies on it.<a name="line.522"></a>
-<span class="sourceLineNo">523</span>   * @return a unique path in the test filesystem<a name="line.523"></a>
-<span class="sourceLineNo">524</span>   * @param subdirName name of the subdir to create under the base test dir<a name="line.524"></a>
-<span class="sourceLineNo">525</span>   */<a name="line.525"></a>
-<span class="sourceLineNo">526</span>  public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.526"></a>
-<span class="sourceLineNo">527</span>    return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.527"></a>
-<span class="sourceLineNo">528</span>  }<a name="line.528"></a>
-<span class="sourceLineNo">529</span><a name="line.529"></a>
-<span class="sourceLineNo">530</span>  /**<a name="line.530"></a>
-<span class="sourceLineNo">531</span>   * Sets up a path in test filesystem to be used by tests.<a name="line.531"></a>
-<span class="sourceLineNo">532</span>   * Creates a new directory if not already setup.<a name="line.532"></a>
-<span class="sourceLineNo">533</span>   */<a name="line.533"></a>
-<span class="sourceLineNo">534</span>  private void setupDataTestDirOnTestFS() throws IOException {<a name="line.534"></a>
-<span class="sourceLineNo">535</span>    if (dataTestDirOnTestFS != null) {<a name="line.535"></a>
-<span class="sourceLineNo">536</span>      LOG.warn("Data test on test fs dir already setup in "<a name="line.536"></a>
-<span class="sourceLineNo">537</span>          + dataTestDirOnTestFS.toString());<a name="line.537"></a>
-<span class="sourceLineNo">538</span>      return;<a name="line.538"></a>
-<span class="sourceLineNo">539</span>    }<a name="line.539"></a>
-<span class="sourceLineNo">540</span>    dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.540"></a>
-<span class="sourceLineNo">541</span>  }<a name="line.541"></a>
-<span class="sourceLineNo">542</span><a name="line.542"></a>
-<span class="sourceLineNo">543</span>  /**<a name="line.543"></a>
-<span class="sourceLineNo">544</span>   * Sets up a new path in test filesystem to be used by tests.<a name="line.544"></a>
-<span class="sourceLineNo">545</span>   */<a name="line.545"></a>
-<span class="sourceLineNo">546</span>  private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.546"></a>
-<span class="sourceLineNo">547</span>    //The file system can be either local, mini dfs, or if the configuration<a name="line.547"></a>
-<span class="sourceLineNo">548</span>    //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.548"></a>
-<span class="sourceLineNo">549</span>    //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.549"></a>
-<span class="sourceLineNo">550</span>    //the working directory, and create a unique sub dir there<a name="line.550"></a>
-<span class="sourceLineNo">551</span>    FileSystem fs = getTestFileSystem();<a name="line.551"></a>
-<span class="sourceLineNo">552</span>    Path newDataTestDir;<a name="line.552"></a>
-<span class="sourceLineNo">553</span>    String randomStr = getRandomUUID().toString();<a name="line.553"></a>
-<span class="sourceLineNo">554</span>    if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.554"></a>
-<span class="sourceLineNo">555</span>      newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.555"></a>
-<span class="sourceLineNo">556</span>      File dataTestDir = new File(newDataTestDir.toString());<a name="line.556"></a>
-<span class="sourceLineNo">557</span>      if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.557"></a>
-<span class="sourceLineNo">558</span>    } else {<a name="line.558"></a>
-<span class="sourceLineNo">559</span>      Path base = getBaseTestDirOnTestFS();<a name="line.559"></a>
-<span class="sourceLineNo">560</span>      newDataTestDir = new Path(base, randomStr);<a name="line.560"></a>
-<span class="sourceLineNo">561</span>      if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.561"></a>
-<span class="sourceLineNo">562</span>    }<a name="line.562"></a>
-<span class="sourceLineNo">563</span>    return newDataTestDir;<a name="line.563"></a>
-<span class="sourceLineNo">564</span>  }<a name="line.564"></a>
-<span class="sourceLineNo">565</span><a name="line.565"></a>
-<span class="sourceLineNo">566</span>  /**<a name="line.566"></a>
-<span class="sourceLineNo">567</span>   * Cleans the test data directory on the test filesystem.<a name="line.567"></a>
-<span class="sourceLineNo">568</span>   * @return True if we removed the test dirs<a name="line.568"></a>
-<span class="sourceLineNo">569</span>   * @throws IOException<a name="line.569"></a>
-<span class="sourceLineNo">570</span>   */<a name="line.570"></a>
-<span class="sourceLineNo">571</span>  public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.571"></a>
-<span class="sourceLineNo">572</span>    boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.572"></a>
-<span class="sourceLineNo">573</span>    if (ret)<a name="line.573"></a>
-<span class="sourceLineNo">574</span>      dataTestDirOnTestFS = null;<a name="line.574"></a>
-<span class="sourceLineNo">575</span>    return ret;<a name="line.575"></a>
-<span class="sourceLineNo">576</span>  }<a name="line.576"></a>
-<span class="sourceLineNo">577</span><a name="line.577"></a>
-<span class="sourceLineNo">578</span>  /**<a name="line.578"></a>
-<span class="sourceLineNo">579</span>   * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.579"></a>
-<span class="sourceLineNo">580</span>   * @return True if we removed child<a name="line.580"></a>
-<span class="sourceLineNo">581</span>   * @throws IOException<a name="line.581"></a>
-<span class="sourceLineNo">582</span>   */<a name="line.582"></a>
-<span class="sourceLineNo">583</span>  public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.583"></a>
-<span class="sourceLineNo">584</span>    Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.584"></a>
-<span class="sourceLineNo">585</span>    return getTestFileSystem().delete(cpath, true);<a name="line.585"></a>
-<span class="sourceLineNo">586</span>  }<a name="line.586"></a>
-<span class="sourceLineNo">587</span><a name="line.587"></a>
-<span class="sourceLineNo">588</span>  /**<a name="line.588"></a>
-<span class="sourceLineNo">589</span>   * Start a minidfscluster.<a name="line.589"></a>
-<span class="sourceLineNo">590</span>   * @param servers How many DNs to start.<a name="line.590"></a>
-<span class="sourceLineNo">591</span>   * @throws Exception<a name="line.591"></a>
-<span class="sourceLineNo">592</span>   * @see #shutdownMiniDFSCluster()<a name="line.592"></a>
-<span class="sourceLineNo">593</span>   * @return The mini dfs cluster created.<a name="line.593"></a>
-<span class="sourceLineNo">594</span>   */<a name="line.594"></a>
-<span class="sourceLineNo">595</span>  public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.595"></a>
-<span class="sourceLineNo">596</span>    return startMiniDFSCluster(servers, null);<a name="line.596"></a>
-<span class="sourceLineNo">597</span>  }<a name="line.597"></a>
-<span class="sourceLineNo">598</span><a name="line.598"></a>
-<span class="sourceLineNo">599</span>  /**<a name="line.599"></a>
-<span class="sourceLineNo">600</span>   * Start a minidfscluster.<a name="line.600"></a>
-<span class="sourceLineNo">601</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.601"></a>
-<span class="sourceLineNo">602</span>   * like HDFS block location verification.<a name="line.602"></a>
-<span class="sourceLineNo">603</span>   * If you start MiniDFSCluster without host names, all instances of the<a name="line.603"></a>
-<span class="sourceLineNo">604</span>   * datanodes will have the same host name.<a name="line.604"></a>
-<span class="sourceLineNo">605</span>   * @param hosts hostnames DNs to run on.<a name="line.605"></a>
-<span class="sourceLineNo">606</span>   * @throws Exception<a name="line.606"></a>
-<span class="sourceLineNo">607</span>   * @see #shutdownMiniDFSCluster()<a name="line.607"></a>
-<span class="sourceLineNo">608</span>   * @return The mini dfs cluster created.<a name="line.608"></a>
-<span class="sourceLineNo">609</span>   */<a name="line.609"></a>
-<span class="sourceLineNo">610</span>  public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.610"></a>
-<span class="sourceLineNo">611</span>  throws Exception {<a name="line.611"></a>
-<span class="sourceLineNo">612</span>    if ( hosts != null &amp;&amp; hosts.length != 0) {<a name="line.612"></a>
-<span class="sourceLineNo">613</span>      return startMiniDFSCluster(hosts.length, hosts);<a name="line.613"></a>
-<span class="sourceLineNo">614</span>    } else {<a name="line.614"></a>
-<span class="sourceLineNo">615</span>      return startMiniDFSCluster(1, null);<a name="line.615"></a>
-<span class="sourceLineNo">616</span>    }<a name="line.616"></a>
-<span class="sourceLineNo">617</span>  }<a name="line.617"></a>
-<span class="sourceLineNo">618</span><a name="line.618"></a>
-<span class="sourceLineNo">619</span>  /**<a name="line.619"></a>
-<span class="sourceLineNo">620</span>   * Start a minidfscluster.<a name="line.620"></a>
-<span class="sourceLineNo">621</span>   * Can only create one.<a name="line.621"></a>
-<span class="sourceLineNo">622</span>   * @param servers How many DNs to start.<a name="line.622"></a>
-<span class="sourceLineNo">623</span>   * @param hosts hostnames DNs to run on.<a name="line.623"></a>
-<span class="sourceLineNo">624</span>   * @throws Exception<a name="line.624"></a>
-<span class="sourceLineNo">625</span>   * @see #shutdownMiniDFSCluster()<a name="line.625"></a>
-<span class="sourceLineNo">626</span>   * @return The mini dfs cluster created.<a name="line.626"></a>
-<span class="sourceLineNo">627</span>   */<a name="line.627"></a>
-<span class="sourceLineNo">628</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.628"></a>
-<span class="sourceLineNo">629</span>  throws Exception {<a name="line.629"></a>
-<span class="sourceLineNo">630</span>    return startMiniDFSCluster(servers, null, hosts);<a name="line.630"></a>
-<span class="sourceLineNo">631</span>  }<a name="line.631"></a>
-<span class="sourceLineNo">632</span><a name="line.632"></a>
-<span class="sourceLineNo">633</span>  private void setFs() throws IOException {<a name="line.633"></a>
-<span class="sourceLineNo">634</span>    if(this.dfsCluster == null){<a name="line.634"></a>
-<span class="sourceLineNo">635</span>      LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.635"></a>
-<span class="sourceLineNo">636</span>      return;<a name="line.636"></a>
-<span class="sourceLineNo">637</span>    }<a name="line.637"></a>
-<span class="sourceLineNo">638</span>    FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.638"></a>
-<span class="sourceLineNo">639</span>    FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.639"></a>
-<span class="sourceLineNo">640</span><a name="line.640"></a>
-<span class="sourceLineNo">641</span>    // re-enable this check with dfs<a name="line.641"></a>
-<span class="sourceLineNo">642</span>    conf.unset(CommonFSUtils.UNSAFE_STREAM_CAPABILITY_ENFORCE);<a name="line.642"></a>
-<span class="sourceLineNo">643</span>  }<a name="line.643"></a>
+<span class="sourceLineNo">433</span>    createSubDirAndSystemProperty(<a name="line.433"></a>
+<span class="sourceLineNo">434</span>      "hadoop.log.dir",<a name="line.434"></a>
+<span class="sourceLineNo">435</span>      testPath, "hadoop-log-dir");<a name="line.435"></a>
+<span class="sourceLineNo">436</span><a name="line.436"></a>
+<span class="sourceLineNo">437</span>    // This is defaulted in core-default.xml to /tmp/hadoop-${user.name}, but<a name="line.437"></a>
+<span class="sourceLineNo">438</span>    //  we want our own value to ensure uniqueness on the same machine<a name="line.438"></a>
+<span class="sourceLineNo">439</span>    createSubDirAndSystemProperty(<a name="line.439"></a>
+<span class="sourceLineNo">440</span>      "hadoop.tmp.dir",<a name="line.440"></a>
+<span class="sourceLineNo">441</span>      testPath, "hadoop-tmp-dir");<a name="line.441"></a>
+<span class="sourceLineNo">442</span><a name="line.442"></a>
+<span class="sourceLineNo">443</span>    // Read and modified in org.apache.hadoop.mapred.MiniMRCluster<a name="line.443"></a>
+<span class="sourceLineNo">444</span>    createSubDir(<a name="line.444"></a>
+<span class="sourceLineNo">445</span>      "mapreduce.cluster.local.dir",<a name="line.445"></a>
+<span class="sourceLineNo">446</span>      testPath, "mapred-local-dir");<a name="line.446"></a>
+<span class="sourceLineNo">447</span><a name="line.447"></a>
+<span class="sourceLineNo">448</span>    return testPath;<a name="line.448"></a>
+<span class="sourceLineNo">449</span>  }<a name="line.449"></a>
+<span class="sourceLineNo">450</span><a name="line.450"></a>
+<span class="sourceLineNo">451</span>  private void createSubDirAndSystemProperty(<a name="line.451"></a>
+<span class="sourceLineNo">452</span>    String propertyName, Path parent, String subDirName){<a name="line.452"></a>
+<span class="sourceLineNo">453</span><a name="line.453"></a>
+<span class="sourceLineNo">454</span>    String sysValue = System.getProperty(propertyName);<a name="line.454"></a>
+<span class="sourceLineNo">455</span><a name="line.455"></a>
+<span class="sourceLineNo">456</span>    if (sysValue != null) {<a name="line.456"></a>
+<span class="sourceLineNo">457</span>      // There is already a value set. So we do nothing but hope<a name="line.457"></a>
+<span class="sourceLineNo">458</span>      //  that there will be no conflicts<a name="line.458"></a>
+<span class="sourceLineNo">459</span>      LOG.info("System.getProperty(\""+propertyName+"\") already set to: "+<a name="line.459"></a>
+<span class="sourceLineNo">460</span>        sysValue + " so I do NOT create it in " + parent);<a name="line.460"></a>
+<span class="sourceLineNo">461</span>      String confValue = conf.get(propertyName);<a name="line.461"></a>
+<span class="sourceLineNo">462</span>      if (confValue != null &amp;&amp; !confValue.endsWith(sysValue)){<a name="line.462"></a>
+<span class="sourceLineNo">463</span>       LOG.warn(<a name="line.463"></a>
+<span class="sourceLineNo">464</span>         propertyName + " property value differs in configuration and system: "+<a name="line.464"></a>
+<span class="sourceLineNo">465</span>         "Configuration="+confValue+" while System="+sysValue+<a name="line.465"></a>
+<span class="sourceLineNo">466</span>         " Erasing configuration value by system value."<a name="line.466"></a>
+<span class="sourceLineNo">467</span>       );<a name="line.467"></a>
+<span class="sourceLineNo">468</span>      }<a name="line.468"></a>
+<span class="sourceLineNo">469</span>      conf.set(propertyName, sysValue);<a name="line.469"></a>
+<span class="sourceLineNo">470</span>    } else {<a name="line.470"></a>
+<span class="sourceLineNo">471</span>      // Ok, it's not set, so we create it as a subdirectory<a name="line.471"></a>
+<span class="sourceLineNo">472</span>      createSubDir(propertyName, parent, subDirName);<a name="line.472"></a>
+<span class="sourceLineNo">473</span>      System.setProperty(propertyName, conf.get(propertyName));<a name="line.473"></a>
+<span class="sourceLineNo">474</span>    }<a name="line.474"></a>
+<span class="sourceLineNo">475</span>  }<a name="line.475"></a>
+<span class="sourceLineNo">476</span><a name="line.476"></a>
+<span class="sourceLineNo">477</span>  /**<a name="line.477"></a>
+<span class="sourceLineNo">478</span>   * @return Where to write test data on the test filesystem; Returns working directory<a name="line.478"></a>
+<span class="sourceLineNo">479</span>   * for the test filesystem by default<a name="line.479"></a>
+<span class="sourceLineNo">480</span>   * @see #setupDataTestDirOnTestFS()<a name="line.480"></a>
+<span class="sourceLineNo">481</span>   * @see #getTestFileSystem()<a name="line.481"></a>
+<span class="sourceLineNo">482</span>   */<a name="line.482"></a>
+<span class="sourceLineNo">483</span>  private Path getBaseTestDirOnTestFS() throws IOException {<a name="line.483"></a>
+<span class="sourceLineNo">484</span>    FileSystem fs = getTestFileSystem();<a name="line.484"></a>
+<span class="sourceLineNo">485</span>    return new Path(fs.getWorkingDirectory(), "test-data");<a name="line.485"></a>
+<span class="sourceLineNo">486</span>  }<a name="line.486"></a>
+<span class="sourceLineNo">487</span><a name="line.487"></a>
+<span class="sourceLineNo">488</span>  /**<a name="line.488"></a>
+<span class="sourceLineNo">489</span>   * @return META table descriptor<a name="line.489"></a>
+<span class="sourceLineNo">490</span>   * @deprecated since 2.0 version and will be removed in 3.0 version.<a name="line.490"></a>
+<span class="sourceLineNo">491</span>   *             use {@link #getMetaTableDescriptorBuilder()}<a name="line.491"></a>
+<span class="sourceLineNo">492</span>   */<a name="line.492"></a>
+<span class="sourceLineNo">493</span>  @Deprecated<a name="line.493"></a>
+<span class="sourceLineNo">494</span>  public HTableDescriptor getMetaTableDescriptor() {<a name="line.494"></a>
+<span class="sourceLineNo">495</span>    return new ImmutableHTableDescriptor(getMetaTableDescriptorBuilder().build());<a name="line.495"></a>
+<span class="sourceLineNo">496</span>  }<a name="line.496"></a>
+<span class="sourceLineNo">497</span><a name="line.497"></a>
+<span class="sourceLineNo">498</span>  /**<a name="line.498"></a>
+<span class="sourceLineNo">499</span>   * @return META table descriptor<a name="line.499"></a>
+<span class="sourceLineNo">500</span>   */<a name="line.500"></a>
+<span class="sourceLineNo">501</span>  public TableDescriptorBuilder getMetaTableDescriptorBuilder() {<a name="line.501"></a>
+<span class="sourceLineNo">502</span>    try {<a name="line.502"></a>
+<span class="sourceLineNo">503</span>      return FSTableDescriptors.createMetaTableDescriptorBuilder(conf);<a name="line.503"></a>
+<span class="sourceLineNo">504</span>    } catch (IOException e) {<a name="line.504"></a>
+<span class="sourceLineNo">505</span>      throw new RuntimeException("Unable to create META table descriptor", e);<a name="line.505"></a>
+<span class="sourceLineNo">506</span>    }<a name="line.506"></a>
+<span class="sourceLineNo">507</span>  }<a name="line.507"></a>
+<span class="sourceLineNo">508</span><a name="line.508"></a>
+<span class="sourceLineNo">509</span>  /**<a name="line.509"></a>
+<span class="sourceLineNo">510</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.510"></a>
+<span class="sourceLineNo">511</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.511"></a>
+<span class="sourceLineNo">512</span>   * if the test relies on it.<a name="line.512"></a>
+<span class="sourceLineNo">513</span>   * @return a unique path in the test filesystem<a name="line.513"></a>
+<span class="sourceLineNo">514</span>   */<a name="line.514"></a>
+<span class="sourceLineNo">515</span>  public Path getDataTestDirOnTestFS() throws IOException {<a name="line.515"></a>
+<span class="sourceLineNo">516</span>    if (dataTestDirOnTestFS == null) {<a name="line.516"></a>
+<span class="sourceLineNo">517</span>      setupDataTestDirOnTestFS();<a name="line.517"></a>
+<span class="sourceLineNo">518</span>    }<a name="line.518"></a>
+<span class="sourceLineNo">519</span><a name="line.519"></a>
+<span class="sourceLineNo">520</span>    return dataTestDirOnTestFS;<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>  /**<a name="line.523"></a>
+<span class="sourceLineNo">524</span>   * Returns a Path in the test filesystem, obtained from {@link #getTestFileSystem()}<a name="line.524"></a>
+<span class="sourceLineNo">525</span>   * to write temporary test data. Call this method after setting up the mini dfs cluster<a name="line.525"></a>
+<span class="sourceLineNo">526</span>   * if the test relies on it.<a name="line.526"></a>
+<span class="sourceLineNo">527</span>   * @return a unique path in the test filesystem<a name="line.527"></a>
+<span class="sourceLineNo">528</span>   * @param subdirName name of the subdir to create under the base test dir<a name="line.528"></a>
+<span class="sourceLineNo">529</span>   */<a name="line.529"></a>
+<span class="sourceLineNo">530</span>  public Path getDataTestDirOnTestFS(final String subdirName) throws IOException {<a name="line.530"></a>
+<span class="sourceLineNo">531</span>    return new Path(getDataTestDirOnTestFS(), subdirName);<a name="line.531"></a>
+<span class="sourceLineNo">532</span>  }<a name="line.532"></a>
+<span class="sourceLineNo">533</span><a name="line.533"></a>
+<span class="sourceLineNo">534</span>  /**<a name="line.534"></a>
+<span class="sourceLineNo">535</span>   * Sets up a path in test filesystem to be used by tests.<a name="line.535"></a>
+<span class="sourceLineNo">536</span>   * Creates a new directory if not already setup.<a name="line.536"></a>
+<span class="sourceLineNo">537</span>   */<a name="line.537"></a>
+<span class="sourceLineNo">538</span>  private void setupDataTestDirOnTestFS() throws IOException {<a name="line.538"></a>
+<span class="sourceLineNo">539</span>    if (dataTestDirOnTestFS != null) {<a name="line.539"></a>
+<span class="sourceLineNo">540</span>      LOG.warn("Data test on test fs dir already setup in "<a name="line.540"></a>
+<span class="sourceLineNo">541</span>          + dataTestDirOnTestFS.toString());<a name="line.541"></a>
+<span class="sourceLineNo">542</span>      return;<a name="line.542"></a>
+<span class="sourceLineNo">543</span>    }<a name="line.543"></a>
+<span class="sourceLineNo">544</span>    dataTestDirOnTestFS = getNewDataTestDirOnTestFS();<a name="line.544"></a>
+<span class="sourceLineNo">545</span>  }<a name="line.545"></a>
+<span class="sourceLineNo">546</span><a name="line.546"></a>
+<span class="sourceLineNo">547</span>  /**<a name="line.547"></a>
+<span class="sourceLineNo">548</span>   * Sets up a new path in test filesystem to be used by tests.<a name="line.548"></a>
+<span class="sourceLineNo">549</span>   */<a name="line.549"></a>
+<span class="sourceLineNo">550</span>  private Path getNewDataTestDirOnTestFS() throws IOException {<a name="line.550"></a>
+<span class="sourceLineNo">551</span>    //The file system can be either local, mini dfs, or if the configuration<a name="line.551"></a>
+<span class="sourceLineNo">552</span>    //is supplied externally, it can be an external cluster FS. If it is a local<a name="line.552"></a>
+<span class="sourceLineNo">553</span>    //file system, the tests should use getBaseTestDir, otherwise, we can use<a name="line.553"></a>
+<span class="sourceLineNo">554</span>    //the working directory, and create a unique sub dir there<a name="line.554"></a>
+<span class="sourceLineNo">555</span>    FileSystem fs = getTestFileSystem();<a name="line.555"></a>
+<span class="sourceLineNo">556</span>    Path newDataTestDir;<a name="line.556"></a>
+<span class="sourceLineNo">557</span>    String randomStr = getRandomUUID().toString();<a name="line.557"></a>
+<span class="sourceLineNo">558</span>    if (fs.getUri().getScheme().equals(FileSystem.getLocal(conf).getUri().getScheme())) {<a name="line.558"></a>
+<span class="sourceLineNo">559</span>      newDataTestDir = new Path(getDataTestDir(), randomStr);<a name="line.559"></a>
+<span class="sourceLineNo">560</span>      File dataTestDir = new File(newDataTestDir.toString());<a name="line.560"></a>
+<span class="sourceLineNo">561</span>      if (deleteOnExit()) dataTestDir.deleteOnExit();<a name="line.561"></a>
+<span class="sourceLineNo">562</span>    } else {<a name="line.562"></a>
+<span class="sourceLineNo">563</span>      Path base = getBaseTestDirOnTestFS();<a name="line.563"></a>
+<span class="sourceLineNo">564</span>      newDataTestDir = new Path(base, randomStr);<a name="line.564"></a>
+<span class="sourceLineNo">565</span>      if (deleteOnExit()) fs.deleteOnExit(newDataTestDir);<a name="line.565"></a>
+<span class="sourceLineNo">566</span>    }<a name="line.566"></a>
+<span class="sourceLineNo">567</span>    return newDataTestDir;<a name="line.567"></a>
+<span class="sourceLineNo">568</span>  }<a name="line.568"></a>
+<span class="sourceLineNo">569</span><a name="line.569"></a>
+<span class="sourceLineNo">570</span>  /**<a name="line.570"></a>
+<span class="sourceLineNo">571</span>   * Cleans the test data directory on the test filesystem.<a name="line.571"></a>
+<span class="sourceLineNo">572</span>   * @return True if we removed the test dirs<a name="line.572"></a>
+<span class="sourceLineNo">573</span>   * @throws IOException<a name="line.573"></a>
+<span class="sourceLineNo">574</span>   */<a name="line.574"></a>
+<span class="sourceLineNo">575</span>  public boolean cleanupDataTestDirOnTestFS() throws IOException {<a name="line.575"></a>
+<span class="sourceLineNo">576</span>    boolean ret = getTestFileSystem().delete(dataTestDirOnTestFS, true);<a name="line.576"></a>
+<span class="sourceLineNo">577</span>    if (ret)<a name="line.577"></a>
+<span class="sourceLineNo">578</span>      dataTestDirOnTestFS = null;<a name="line.578"></a>
+<span class="sourceLineNo">579</span>    return ret;<a name="line.579"></a>
+<span class="sourceLineNo">580</span>  }<a name="line.580"></a>
+<span class="sourceLineNo">581</span><a name="line.581"></a>
+<span class="sourceLineNo">582</span>  /**<a name="line.582"></a>
+<span class="sourceLineNo">583</span>   * Cleans a subdirectory under the test data directory on the test filesystem.<a name="line.583"></a>
+<span class="sourceLineNo">584</span>   * @return True if we removed child<a name="line.584"></a>
+<span class="sourceLineNo">585</span>   * @throws IOException<a name="line.585"></a>
+<span class="sourceLineNo">586</span>   */<a name="line.586"></a>
+<span class="sourceLineNo">587</span>  public boolean cleanupDataTestDirOnTestFS(String subdirName) throws IOException {<a name="line.587"></a>
+<span class="sourceLineNo">588</span>    Path cpath = getDataTestDirOnTestFS(subdirName);<a name="line.588"></a>
+<span class="sourceLineNo">589</span>    return getTestFileSystem().delete(cpath, true);<a name="line.589"></a>
+<span class="sourceLineNo">590</span>  }<a name="line.590"></a>
+<span class="sourceLineNo">591</span><a name="line.591"></a>
+<span class="sourceLineNo">592</span>  /**<a name="line.592"></a>
+<span class="sourceLineNo">593</span>   * Start a minidfscluster.<a name="line.593"></a>
+<span class="sourceLineNo">594</span>   * @param servers How many DNs to start.<a name="line.594"></a>
+<span class="sourceLineNo">595</span>   * @throws Exception<a name="line.595"></a>
+<span class="sourceLineNo">596</span>   * @see #shutdownMiniDFSCluster()<a name="line.596"></a>
+<span class="sourceLineNo">597</span>   * @return The mini dfs cluster created.<a name="line.597"></a>
+<span class="sourceLineNo">598</span>   */<a name="line.598"></a>
+<span class="sourceLineNo">599</span>  public MiniDFSCluster startMiniDFSCluster(int servers) throws Exception {<a name="line.599"></a>
+<span class="sourceLineNo">600</span>    return startMiniDFSCluster(servers, null);<a name="line.600"></a>
+<span class="sourceLineNo">601</span>  }<a name="line.601"></a>
+<span class="sourceLineNo">602</span><a name="line.602"></a>
+<span class="sourceLineNo">603</span>  /**<a name="line.603"></a>
+<span class="sourceLineNo">604</span>   * Start a minidfscluster.<a name="line.604"></a>
+<span class="sourceLineNo">605</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.605"></a>
+<span class="sourceLineNo">606</span>   * like HDFS block location verification.<a name="line.606"></a>
+<span class="sourceLineNo">607</span>   * If you start MiniDFSCluster without host names, all instances of the<a name="line.607"></a>
+<span class="sourceLineNo">608</span>   * datanodes will have the same host name.<a name="line.608"></a>
+<span class="sourceLineNo">609</span>   * @param hosts hostnames DNs to run on.<a name="line.609"></a>
+<span class="sourceLineNo">610</span>   * @throws Exception<a name="line.610"></a>
+<span class="sourceLineNo">611</span>   * @see #shutdownMiniDFSCluster()<a name="line.611"></a>
+<span class="sourceLineNo">612</span>   * @return The mini dfs cluster created.<a name="line.612"></a>
+<span class="sourceLineNo">613</span>   */<a name="line.613"></a>
+<span class="sourceLineNo">614</span>  public MiniDFSCluster startMiniDFSCluster(final String hosts[])<a name="line.614"></a>
+<span class="sourceLineNo">615</span>  throws Exception {<a name="line.615"></a>
+<span class="sourceLineNo">616</span>    if ( hosts != null &amp;&amp; hosts.length != 0) {<a name="line.616"></a>
+<span class="sourceLineNo">617</span>      return startMiniDFSCluster(hosts.length, hosts);<a name="line.617"></a>
+<span class="sourceLineNo">618</span>    } else {<a name="line.618"></a>
+<span class="sourceLineNo">619</span>      return startMiniDFSCluster(1, null);<a name="line.619"></a>
+<span class="sourceLineNo">620</span>    }<a name="line.620"></a>
+<span class="sourceLineNo">621</span>  }<a name="line.621"></a>
+<span class="sourceLineNo">622</span><a name="line.622"></a>
+<span class="sourceLineNo">623</span>  /**<a name="line.623"></a>
+<span class="sourceLineNo">624</span>   * Start a minidfscluster.<a name="line.624"></a>
+<span class="sourceLineNo">625</span>   * Can only create one.<a name="line.625"></a>
+<span class="sourceLineNo">626</span>   * @param servers How many DNs to start.<a name="line.626"></a>
+<span class="sourceLineNo">627</span>   * @param hosts hostnames DNs to run on.<a name="line.627"></a>
+<span class="sourceLineNo">628</span>   * @throws Exception<a name="line.628"></a>
+<span class="sourceLineNo">629</span>   * @see #shutdownMiniDFSCluster()<a name="line.629"></a>
+<span class="sourceLineNo">630</span>   * @return The mini dfs cluster created.<a name="line.630"></a>
+<span class="sourceLineNo">631</span>   */<a name="line.631"></a>
+<span class="sourceLineNo">632</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final String hosts[])<a name="line.632"></a>
+<span class="sourceLineNo">633</span>  throws Exception {<a name="line.633"></a>
+<span class="sourceLineNo">634</span>    return startMiniDFSCluster(servers, null, hosts);<a name="line.634"></a>
+<span class="sourceLineNo">635</span>  }<a name="line.635"></a>
+<span class="sourceLineNo">636</span><a name="line.636"></a>
+<span class="sourceLineNo">637</span>  private void setFs() throws IOException {<a name="line.637"></a>
+<span class="sourceLineNo">638</span>    if(this.dfsCluster == null){<a name="line.638"></a>
+<span class="sourceLineNo">639</span>      LOG.info("Skipping setting fs because dfsCluster is null");<a name="line.639"></a>
+<span class="sourceLineNo">640</span>      return;<a name="line.640"></a>
+<span class="sourceLineNo">641</span>    }<a name="line.641"></a>
+<span class="sourceLineNo">642</span>    FileSystem fs = this.dfsCluster.getFileSystem();<a name="line.642"></a>
+<span class="sourceLineNo">643</span>    FSUtils.setFsDefault(this.conf, new Path(fs.getUri()));<a name="line.643"></a>
 <span class="sourceLineNo">644</span><a name="line.644"></a>
-<span class="sourceLineNo">645</span>  public MiniDFSCluster startMiniDFSCluster(int servers, final  String racks[], String hosts[])<a name="line.645"></a>
-<span class="sourceLineNo">646</span>      throws Exception {<a name="line.646"></a>
-<span class="sourceLineNo">647</span>    createDirsAndSetProperties();<a name="line.647"></a>
-<span class="sourceLineNo">648</span>    EditLogFileOutputStream.setShouldSkipFsyncForTesting(true);<a name="line.648"></a>
-<span class="sourceLineNo">649</span><a name="line.649"></a>
-<span class="sourceLineNo">650</span>    // Error level to skip some warnings specific to the minicluster. See HBASE-4709<a name="line.650"></a>
-<span class="sourceLineNo">651</span>    org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.util.MBeans.class).<a name="line.651"></a>
-<span class="sourceLineNo">652</span>        setLevel(org.apache.log4j.Level.ERROR);<a name="line.652"></a>
-<span class="sourceLineNo">653</span>    org.apache.log4j.Logger.getLogger(org.apache.hadoop.metrics2.impl.MetricsSystemImpl.class).<a name="line.653"></a>
-<span class="sourceLineNo">654</span>        setLevel(org.apache.log4j.Level.ERROR);<a name="line.654"></a>
-<span class="sourceLineNo">655</span><a name="line.655"></a>
-<span class="sourceLineNo">656</span>    TraceUtil.initTracer(conf);<a name="line.656"></a>
-<span class="sourceLineNo">657</span><a name="line.657"></a>
-<span class="sourceLineNo">658</span>    this.dfsCluster = new MiniDFSCluster(0, this.conf, servers, true, true,<a name="line.658"></a>
-<span class="sourceLineNo">659</span>        true, null, racks, hosts, null);<a name="line.659"></a>
-<span class="sourceLineNo">660</span><a name="line.660"></a>
-<span class="sourceLineNo">661</span>    // Set this just-started cluster as our filesystem.<a name="line.661"></a>
-<span class="sourceLineNo">662</span>    setFs();<a name="line.662"></a>
-<span class="sourceLineNo">663</span><a name="line.663"></a>
-<span class="sourceLineNo">664</span>    // Wait for the cluster to be totally up<a name="line.664"></a>
-<span class="sourceLineNo">665</span>    this.dfsCluster.waitClusterUp();<a name="line.665"></a>
-<span class="sourceLineNo">666</span><a name="line.666"></a>
-<span class="sourceLineNo">667</span>    //reset the test directory for test file system<a name="line.667"></a>
-<span class="sourceLineNo">668</span>    dataTestDirOnTestFS = null;<a name="line.668"></a>
-<span class="sourceLineNo">669</span>    String dataTestDir = getDataTestDir().toString();<a name="line.669"></a>
-<span class="sourceLineNo">670</span>    conf.set(HConstants.HBASE_DIR, dataTestDir);<a name="line.670"></a>
-<span class="sourceLineNo">671</span>    LOG.debug("Setting {} to {}", HConstants.HBASE_DIR, dataTestDir);<a name="line.671"></a>
-<span class="sourceLineNo">672</span><a name="line.672"></a>
-<span class="sourceLineNo">673</span>    return this.dfsCluster;<a name="line.673"></a>
-<span class="sourceLineNo">674</span>  }<a name="line.674"></a>
-<span class="sourceLineNo">675</span><a name="line.675"></a>
-<span class="sourceLineNo">676</span>  public MiniDFSCluster startMiniDFSClusterForTestWAL(int namenodePort) throws IOException {<a name="line.676"></a>
-<span class="sourceLineNo">677</span>    createDirsAndSetProperties();<a name="line.677"></a>
-<span class="sourceLineNo">678</span>    dfsCluster = new MiniDFSCluster(namenodePort, conf, 5, false, true, true, null,<a name="line.678"></a>
-<span class="sourceLineNo">679</span>        null, null, null);<a name="line.679"></a>
-<span class="sourceLineNo">680</span>    return dfsCluster;<a name="line.680"></a>
-<span class="sourceLineNo">681</span>  }<a name="line.681"></a>
-<span class="sourceLineNo">682</span><a name="line.682"></a>
-<span class="sourceLineNo">683</span>  /** This is used before starting HDFS and map-reduce mini-clusters */<a name="line.683"></a>
-<span class="sourceLineNo">684</span>  private void createDirsAndSetProperties() throws IOException {<a name="line.684"></a>
-<span class="sourceLineNo">685</span>    setupClusterTestDir();<a name="line.685"></a>
-<span class="sourceLineNo">686</span>    conf.set(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.686"></a>
-<span class="sourceLineNo">687</span>    System.setProperty(TEST_DIRECTORY_KEY, clusterTestDir.getPath());<a name="line.687"></a>
-<span class="sourceLineNo">688</span>    createDirAndSetProperty("cache_data", "test.cache.data");<a name="line.688"></a>
-<span class="sourceLineNo">689</span>    createDirAndSetProperty("hadoop_tmp", "hadoop.tmp.dir");<a name="line.689"></a>
-<span class="sourceLineNo">690</span>    hadoopLogDir = createDirAndSetProperty("hadoop_logs", "hadoop.log.dir");<a name="line.690"></a>
-<span class="sourceLineNo">691</span>    createDirAndSetProperty("mapred_local", "mapreduce.cluster.local.dir");<a name="line.691"></a>
-<span class="sourceLineNo">692</span>    createDirAndSetProperty("mapred_temp", "mapreduce.cluster.temp.dir");<a name="line.692"></a>
-<span class="sourceLineNo">693</span>    enableShortCircuit();<a name="line.693"></a>
-<span class="sourceLineNo">694</span><a name="line.694"></a>
-<span class="sourceLineNo">695</span>    Path root = getDataTestDirOnTestFS("hadoop");<a name="line.695"></a>
-<span class="sourceLineNo">696</span>    conf.set(MapreduceTestingShim.getMROutputDirProp(),<a name="line.696"></a>
-<span class="sourceLineNo">697</span>      new Path(root, "mapred-output-dir").toString());<a name="line.697"></a>
-<span class="sourceLineNo">698</span>    conf.set("mapreduce.jobtracker.system.dir", new Path(root, "mapred-system-dir").toString());<a name="line.698"></a>
-<span class="sourceLineNo">699</span>    conf.set("mapreduce.jobtracker.staging.root.dir",<a name="line.699"></a>
-<span class="sourceLineNo">700</span>      new Path(root, "mapreduce-jobtracker-staging-root-dir").toString());<a name="line.700"></a>
-<span class="sourceLineNo">701</span>    conf.set("mapreduce.job.working.dir", new Path(root, "mapred-working-dir").toString());<a name="line.701"></a>
-<span class="sourceLineNo">702</span>    conf.set("yarn.app.mapreduce.am.staging-dir",<a name="line.702"></a>
-<span class="sourceLineNo">703</span>      new Path(root, "mapreduce-am-staging-root-dir").toString());<a name="line.703"></a>
-<span class="sourceLineNo">704</span>  }<a name="line.704"></a>
-<span class="sourceLineNo">705</span><a name="line.705"></a>
-<span class="sourceLineNo">706</span><a name="line.706"></a>
-<span class="sourceLineNo">707</span>  /**<a name="line.707"></a>
-<span class="sourceLineNo">708</span>   *  Get the HBase setting for dfs.client.read.shortcircuit from the conf or a system property.<a name="line.708"></a>
-<span class="sourceLineNo">709</span>   *  This allows to specify this parameter on the command line.<a name="line.709"></a>
-<span class="sourceLineNo">710</span>   *   If not set, default is true.<a name="line.710"></a>
-<span class="sourceLineNo">711</span>   */<a name="line.711"></a>
-<span class="sourceLineNo">712</span>  public boolean isReadShortCircuitOn(){<a name="line.712"></a>
-<span class="sourceLineNo">713</span>    final String propName = "hbase.tests.use.shortcircuit.reads";<a name="line.713"></a>
-<span class="sourceLineNo">714</span>    String readOnProp = System.getProperty(propName);<a name="line.714"></a>
-<span class="sourceLineNo">715</span>    if (readOnProp != null){<a name="line.715"></a>
-<span class="sourceLineNo">716</span>      return  Boolean.parseBoolean(readOnProp);<a name="line.716"></a>
-<span class="sourceLineNo">717</span>    } else {<a name="line.717"></a>
-<span class="sourceLineNo">718</span>      return conf.getBoolean(propName, false);<a name="line.718"></a>
-<span class="sourceLineNo">719</span>    }<a name="line.719"></a>
-<span class="sourceLineNo">720</span>  }<a name="line.720"></a>
-<span class="sourceLineNo">721</span><a name="line.721"></a>
-<span class="sourceLineNo">722</span>  /** Enable the short circuit read, unless configured differently.<a name="line.722"></a>
-<span class="sourceLineNo">723</span>   * Set both HBase and HDFS settings, including skipping the hdfs checksum checks.<a name="line.723"></a>
-<span class="sourceLineNo">724</span>   */<a name="line.724"></a>
-<span class="sourceLineNo">725</span>  private void enableShortCircuit() {<a name="line.725"></a>
-<span class="sourceLineNo">726</span>    if (isReadShortCircuitOn()) {<a name="line.726"></a>
-<span class="sourceLineNo">727</span>      String curUser = System.getProperty("user.name");<a name="line.727"></a>
-<span class="sourceLineNo">728</span>      LOG.info("read short circuit is ON for user " + curUser);<a name="line.728"></a>
-<span class="sourceLineNo">729</span>      // read short circuit, for hdfs<a name="line.729"></a>
-<span class="sourceLineNo">730</span>      conf.set("dfs.block.local-path-access.user", curUser);<a name="line.730"></a>
-<span class="sourceLineNo">731</span>      // read short circuit, for hbase<a name="line.731"></a>
-<span class="sourceLineNo">732</span>      conf.setBoolean("dfs.client.read.shortcircuit", true);<a name="line.732"></a>
-<span class="sourceLineNo">733</span>      // Skip checking checksum, for the hdfs client and the datanode<a name="line.733"></a>
-<span class="sourceLineNo">734</span>      conf.setBoolean("dfs.client.read.shortcircuit.skip.checksum", true);<a name="line.734"></a>
-<span class="sourceLineNo">735</span>    } else {<a name="line.735"></a>
-<span class="sourceLineNo">736</span>      LOG.info("read short circuit is OFF");<a name="line.736"></a>
-<span class="sourceLineNo">737</span>    }<a name="line.737"></a>
-<span class="sourceLineNo">738</span>  }<a name="line.738"></a>
-<span class="sourceLineNo">739</span><a name="line.739"></a>
-<span class="sourceLineNo">740</span>  private String createDirAndSetProperty(final String relPath, String property) {<a name="line.740"></a>
-<span class="sourceLineNo">741</span>    String path = getDataTestDir(relPath).toString();<a name="line.741"></a>
-<span class="sourceLineNo">742</span>    System.setProperty(property, path);<a name="line.742"></a>
-<span class="sourceLineNo">743</span>    conf.set(property, path);<a name="line.743"></a>
-<span class="sourceLineNo">744</span>    new File(path).mkdirs();<a name="line.744"></a>
-<span class="sourceLineNo">745</span>    LOG.info("Setting " + property + " to " + path + " in system properties and HBase conf");<a name="line.745"></a>
-<span class="sourceLineNo">746</span>    return path;<a name="line.746"></a>
-<span class="sourceLineNo">747</span>  }<a name="line.747"></a>
-<span class="sourceLineNo">748</span><a name="line.748"></a>
-<span class="sourceLineNo">749</span>  /**<a name="line.749"></a>
-<span class="sourceLineNo">750</span>   * Shuts down instance created by call to {@link #startMiniDFSCluster(int)}<a name="line.750"></a>
-<span class="sourceLineNo">751</span>   * or does nothing.<a name="line.751"></a>
-<span class="sourceLineNo">752</span>   * @throws IOException<a name="line.752"></a>
-<span class="sourceLineNo">753</span>   */<a name="line.753"></a>
-<span class="sourceLineNo">754</span>  public void shutdownMiniDFSCluster() throws IOException {<a name="line.754"></a>
-<span class="sourceLineNo">755</span>    if (this.dfsCluster != null) {<a name="line.755"></a>
-<span class="sourceLineNo">756</span>      // The below throws an exception per dn, AsynchronousCloseException.<a name="line.756"></a>
-<span class="sourceLineNo">757</span>      this.dfsCluster.shutdown();<a name="line.757"></a>
-<span class="sourceLineNo">758</span>      dfsCluster = null;<a name="line.758"></a>
-<span class="sourceLineNo">759</span>      dataTestDirOnTestFS = null;<a name="line.759"></a>
-<span class="sourceLineNo">760</span>      FSUtils.setFsDefault(this.conf, new Path("file:///"));<a name="line.760"></a>
-<span class="sourceLineNo">761</span>    }<a name="line.761"></a>
-<span class="sourceLineNo">762</span>  }<a name="line.762"></a>
-<span class="sourceLineNo">763</span><a name="line.763"></a>
-<span class="sourceLineNo">764</span><a name="line.764"></a>
-<span class="sourceLineNo">765</span>  /**<a name="line.765"></a>
-<span class="sourceLineNo">766</span>   * Start up a minicluster of hbase, dfs, and zookeeper.<a name="line.766"></a>
-<span class="sourceLineNo">767</span>   * @throws Exception<a name="line.767"></a>
-<span class="sourceLineNo">768</span>   * @return Mini hbase cluster instance created.<a name="line.768"></a>
-<span class="sourceLineNo">769</span>   * @see #shutdownMiniDFSCluster()<a name="line.769"></a>
-<span class="sourceLineNo">770</span>   */<a name="line.770"></a>
-<span class="sourceLineNo">771</span>  public MiniHBaseCluster startMiniCluster() throws Exception {<a name="line.771"></a>
-<span class="sourceLineNo">772</span>    return startMiniCluster(1, 1);<a name="line.772"></a>
-<span class="sourceLineNo">773</span>  }<a name="line.773"></a>
-<span class="sourceLineNo">774</span><a name="line.774"></a>
-<span class="sourceLineNo">775</span>  /**<a name="line.775"></a>
-<span class="sourceLineNo">776</span>   * Start up a minicluster of hbase, dfs, and zookeeper where WAL's walDir is created separately.<a name="line.776"></a>
-<span class="sourceLineNo">777</span>   * @throws Exception<a name="line.777"></a>
-<span class="sourceLineNo">778</span>   * @return Mini hbase cluster instance created.<a name="line.778"></a>
-<span class="sourceLineNo">779</span>   * @see #shutdownMiniDFSCluster()<a name="line.779"></a>
-<span class="sourceLineNo">780</span>   */<a name="line.780"></a>
-<span class="sourceLineNo">781</span>  public MiniHBaseCluster startMiniCluster(boolean withWALDir) throws Exception {<a name="line.781"></a>
-<span class="sourceLineNo">782</span>    return startMiniCluster(1, 1, 1, null, null, null, false, withWALDir);<a name="line.782"></a>
-<span class="sourceLineNo">783</span>  }<a name="line.783"></a>
-<span class="sourceLineNo">784</span><a name="line.784"></a>
-<span class="sourceLineNo">785</span>  /**<a name="line.785"></a>
-<span class="sourceLineNo">786</span>   * Start up a minicluster of hbase, dfs, and zookeeper.<a name="line.786"></a>
-<span class="sourceLineNo">787</span>   * Set the &lt;code&gt;create&lt;/code&gt; flag to create root or data directory path or not<a name="line.787"></a>
-<span class="sourceLineNo">788</span>   * (will overwrite if dir already exists)<a name="line.788"></a>
-<span class="sourceLineNo">789</span>   * @throws Exception<a name="line.789"></a>
-<span class="sourceLineNo">790</span>   * @return Mini hbase cluster instance created.<a name="line.790"></a>
-<span class="sourceLineNo">791</span>   * @see #shutdownMiniDFSCluster()<a name="line.791"></a>
-<span class="sourceLineNo">792</span>   */<a name="line.792"></a>
-<span class="sourceLineNo">793</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves, boolean create)<a name="line.793"></a>
-<span class="sourceLineNo">794</span>  throws Exception {<a name="line.794"></a>
-<span class="sourceLineNo">795</span>    return startMiniCluster(1, numSlaves, create);<a name="line.795"></a>
-<span class="sourceLineNo">796</span>  }<a name="line.796"></a>
-<span class="sourceLineNo">797</span><a name="line.797"></a>
-<span class="sourceLineNo">798</span>  /**<a name="line.798"></a>
-<span class="sourceLineNo">799</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.799"></a>
-<span class="sourceLineNo">800</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.800"></a>
-<span class="sourceLineNo">801</span>   * subdirectory in a directory under System property test.build.data.<a name="line.801"></a>
-<span class="sourceLineNo">802</span>   * Directory is cleaned up on exit.<a name="line.802"></a>
-<span class="sourceLineNo">803</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.803"></a>
-<span class="sourceLineNo">804</span>   * datanodes and regionservers.  If numSlaves is &gt; 1, then make sure<a name="line.804"></a>
-<span class="sourceLineNo">805</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.805"></a>
-<span class="sourceLineNo">806</span>   * bind errors.<a name="line.806"></a>
-<span class="sourceLineNo">807</span>   * @throws Exception<a name="line.807"></a>
-<span class="sourceLineNo">808</span>   * @see #shutdownMiniCluster()<a name="line.808"></a>
-<span class="sourceLineNo">809</span>   * @return Mini hbase cluster instance created.<a name="line.809"></a>
-<span class="sourceLineNo">810</span>   */<a name="line.810"></a>
-<span class="sourceLineNo">811</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves)<a name="line.811"></a>
-<span class="sourceLineNo">812</span>  throws Exception {<a name="line.812"></a>
-<span class="sourceLineNo">813</span>    return startMiniCluster(1, numSlaves, false);<a name="line.813"></a>
-<span class="sourceLineNo">814</span>  }<a name="line.814"></a>
-<span class="sourceLineNo">815</span><a name="line.815"></a>
-<span class="sourceLineNo">816</span>  public MiniHBaseCluster startMiniCluster(final int numSlaves, boolean create, boolean withWALDir)<a name="line.816"></a>
-<span class="sourceLineNo">817</span>          throws Exception {<a name="line.817"></a>
-<span class="sourceLineNo">818</span>    return startMiniCluster(1, numSlaves, numSlaves, null, null, null, create, withWALDir);<a name="line.818"></a>
-<span class="sourceLineNo">819</span>  }<a name="line.819"></a>
-<span class="sourceLineNo">820</span><a name="line.820"></a>
-<span class="sourceLineNo">821</span>  /**<a name="line.821"></a>
-<span class="sourceLineNo">822</span>   * Start minicluster. Whether to create a new root or data dir path even if such a path<a name="line.822"></a>
-<span class="sourceLineNo">823</span>   * has been created earlier is decided based on flag &lt;code&gt;create&lt;/code&gt;<a name="line.823"></a>
-<span class="sourceLineNo">824</span>   * @throws Exception<a name="line.824"></a>
-<span class="sourceLineNo">825</span>   * @see #shutdownMiniCluster()<a name="line.825"></a>
-<span class="sourceLineNo">826</span>   * @return Mini hbase cluster instance created.<a name="line.826"></a>
-<span class="sourceLineNo">827</span>   */<a name="line.827"></a>
-<span class="sourceLineNo">828</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.828"></a>
-<span class="sourceLineNo">829</span>      final int numSlaves, boolean create)<a name="line.829"></a>
-<span class="sourceLineNo">830</span>    throws Exception {<a name="line.830"></a>
-<span class="sourceLineNo">831</span>      return startMiniCluster(numMasters, numSlaves, null, create);<a name="line.831"></a>
-<span class="sourceLineNo">832</span>  }<a name="line.832"></a>
-<span class="sourceLineNo">833</span><a name="line.833"></a>
-<span class="sourceLineNo">834</span>  /**<a name="line.834"></a>
-<span class="sourceLineNo">835</span>   * start minicluster<a name="line.835"></a>
-<span class="sourceLineNo">836</span>   * @throws Exception<a name="line.836"></a>
-<span class="sourceLineNo">837</span>   * @see #shutdownMiniCluster()<a name="line.837"></a>
-<span class="sourceLineNo">838</span>   * @return Mini hbase cluster instance created.<a name="line.838"></a>
-<span class="sourceLineNo">839</span>   */<a name="line.839"></a>
-<span class="sourceLineNo">840</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.840"></a>
-<span class="sourceLineNo">841</span>    final int numSlaves)<a name="line.841"></a>
-<span class="sourceLineNo">842</span>  throws Exception {<a name="line.842"></a>
-<span class="sourceLineNo">843</span>    return startMiniCluster(numMasters, numSlaves, null, false);<a name="line.843"></a>
-<span class="sourceLineNo">844</span>  }<a name="line.844"></a>
-<span class="sourceLineNo">845</span><a name="line.845"></a>
-<span class="sourceLineNo">846</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.846"></a>
-<span class="sourceLineNo">847</span>      final int numSlaves, final String[] dataNodeHosts, boolean create)<a name="line.847"></a>
-<span class="sourceLineNo">848</span>      throws Exception {<a name="line.848"></a>
-<span class="sourceLineNo">849</span>    return startMiniCluster(numMasters, numSlaves, numSlaves, dataNodeHosts,<a name="line.849"></a>
-<span class="sourceLineNo">850</span>        null, null, create, false);<a name="line.850"></a>
-<span class="sourceLineNo">851</span>  }<a name="line.851"></a>
-<span class="sourceLineNo">852</span><a name="line.852"></a>
-<span class="sourceLineNo">853</span>  /**<a name="line.853"></a>
-<span class="sourceLineNo">854</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.854"></a>
-<span class="sourceLineNo">855</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.855"></a>
-<span class="sourceLineNo">856</span>   * subdirectory in a directory under System property test.build.data.<a name="line.856"></a>
-<span class="sourceLineNo">857</span>   * Directory is cleaned up on exit.<a name="line.857"></a>
-<span class="sourceLineNo">858</span>   * @param numMasters Number of masters to start up.  We'll start this many<a name="line.858"></a>
-<span class="sourceLineNo">859</span>   * hbase masters.  If numMasters &gt; 1, you can find the active/primary master<a name="line.859"></a>
-<span class="sourceLineNo">860</span>   * with {@link MiniHBaseCluster#getMaster()}.<a name="line.860"></a>
-<span class="sourceLineNo">861</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.861"></a>
-<span class="sourceLineNo">862</span>   * regionservers. If dataNodeHosts == null, this also indicates the number of<a name="line.862"></a>
-<span class="sourceLineNo">863</span>   * datanodes to start. If dataNodeHosts != null, the number of datanodes is<a name="line.863"></a>
-<span class="sourceLineNo">864</span>   * based on dataNodeHosts.length.<a name="line.864"></a>
-<span class="sourceLineNo">865</span>   * If numSlaves is &gt; 1, then make sure<a name="line.865"></a>
-<span class="sourceLineNo">866</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.866"></a>
-<span class="sourceLineNo">867</span>   * bind errors.<a name="line.867"></a>
-<span class="sourceLineNo">868</span>   * @param dataNodeHosts hostnames DNs to run on.<a name="line.868"></a>
-<span class="sourceLineNo">869</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.869"></a>
-<span class="sourceLineNo">870</span>   * like HDFS block location verification.<a name="line.870"></a>
-<span class="sourceLineNo">871</span>   * If you start MiniDFSCluster without host names,<a name="line.871"></a>
-<span class="sourceLineNo">872</span>   * all instances of the datanodes will have the same host name.<a name="line.872"></a>
-<span class="sourceLineNo">873</span>   * @throws Exception<a name="line.873"></a>
-<span class="sourceLineNo">874</span>   * @see #shutdownMiniCluster()<a name="line.874"></a>
-<span class="sourceLineNo">875</span>   * @return Mini hbase cluster instance created.<a name="line.875"></a>
-<span class="sourceLineNo">876</span>   */<a name="line.876"></a>
-<span class="sourceLineNo">877</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.877"></a>
-<span class="sourceLineNo">878</span>      final int numSlaves, final String[] dataNodeHosts) throws Exception {<a name="line.878"></a>
-<span class="sourceLineNo">879</span>    return startMiniCluster(numMasters, numSlaves, numSlaves, dataNodeHosts,<a name="line.879"></a>
-<span class="sourceLineNo">880</span>        null, null);<a name="line.880"></a>
-<span class="sourceLineNo">881</span>  }<a name="line.881"></a>
-<span class="sourceLineNo">882</span><a name="line.882"></a>
-<span class="sourceLineNo">883</span>  /**<a name="line.883"></a>
-<span class="sourceLineNo">884</span>   * Same as {@link #startMiniCluster(int, int)}, but with custom number of datanodes.<a name="line.884"></a>
-<span class="sourceLineNo">885</span>   * @param numDataNodes Number of data nodes.<a name="line.885"></a>
-<span class="sourceLineNo">886</span>   */<a name="line.886"></a>
-<span class="sourceLineNo">887</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.887"></a>
-<span class="sourceLineNo">888</span>      final int numSlaves, final int numDataNodes) throws Exception {<a name="line.888"></a>
-<span class="sourceLineNo">889</span>    return startMiniCluster(numMasters, numSlaves, numDataNodes, null, null, null);<a name="line.889"></a>
-<span class="sourceLineNo">890</span>  }<a name="line.890"></a>
-<span class="sourceLineNo">891</span><a name="line.891"></a>
-<span class="sourceLineNo">892</span>  /**<a name="line.892"></a>
-<span class="sourceLineNo">893</span>   * Start up a minicluster of hbase, optionally dfs, and zookeeper.<a name="line.893"></a>
-<span class="sourceLineNo">894</span>   * Modifies Configuration.  Homes the cluster data directory under a random<a name="line.894"></a>
-<span class="sourceLineNo">895</span>   * subdirectory in a directory under System property test.build.data.<a name="line.895"></a>
-<span class="sourceLineNo">896</span>   * Directory is cleaned up on exit.<a name="line.896"></a>
-<span class="sourceLineNo">897</span>   * @param numMasters Number of masters to start up.  We'll start this many<a name="line.897"></a>
-<span class="sourceLineNo">898</span>   * hbase masters.  If numMasters &gt; 1, you can find the active/primary master<a name="line.898"></a>
-<span class="sourceLineNo">899</span>   * with {@link MiniHBaseCluster#getMaster()}.<a name="line.899"></a>
-<span class="sourceLineNo">900</span>   * @param numSlaves Number of slaves to start up.  We'll start this many<a name="line.900"></a>
-<span class="sourceLineNo">901</span>   * regionservers. If dataNodeHosts == null, this also indicates the number of<a name="line.901"></a>
-<span class="sourceLineNo">902</span>   * datanodes to start. If dataNodeHosts != null, the number of datanodes is<a name="line.902"></a>
-<span class="sourceLineNo">903</span>   * based on dataNodeHosts.length.<a name="line.903"></a>
-<span class="sourceLineNo">904</span>   * If numSlaves is &gt; 1, then make sure<a name="line.904"></a>
-<span class="sourceLineNo">905</span>   * hbase.regionserver.info.port is -1 (i.e. no ui per regionserver) otherwise<a name="line.905"></a>
-<span class="sourceLineNo">906</span>   * bind errors.<a name="line.906"></a>
-<span class="sourceLineNo">907</span>   * @param dataNodeHosts hostnames DNs to run on.<a name="line.907"></a>
-<span class="sourceLineNo">908</span>   * This is useful if you want to run datanode on distinct hosts for things<a name="line.908"></a>
-<span class="sourceLineNo">909</span>   * like HDFS block location verification.<a name="line.909"></a>
-<span class="sourceLineNo">910</span>   * If you start MiniDFSCluster without host names,<a name="line.910"></a>
-<span class="sourceLineNo">911</span>   * all instances of the datanodes will have the same host name.<a name="line.911"></a>
-<span class="sourceLineNo">912</span>   * @param masterClass The class to use as HMaster, or null for default<a name="line.912"></a>
-<span class="sourceLineNo">913</span>   * @param regionserverClass The class to use as HRegionServer, or null for<a name="line.913"></a>
-<span class="sourceLineNo">914</span>   * default<a name="line.914"></a>
-<span class="sourceLineNo">915</span>   * @throws Exception<a name="line.915"></a>
-<span class="sourceLineNo">916</span>   * @see #shutdownMiniCluster()<a name="line.916"></a>
-<span class="sourceLineNo">917</span>   * @return Mini hbase cluster instance created.<a name="line.917"></a>
-<span class="sourceLineNo">918</span>   */<a name="line.918"></a>
-<span class="sourceLineNo">919</span>  public MiniHBaseCluster startMiniCluster(final int numMasters,<a name="line.919"></a>
-<span class="sourceLineNo">920</span>      final int numSlaves, final String[] dataNodeHosts, Class&lt;? extends HMaster&gt; masterClass,<a name="line.920"></a>
-<span class="sourceLineNo">921</span>      Class&lt;? extends MiniHBaseCluster.MiniHBaseClusterRegionServer&gt; regionserverClass)<a name="line.921"></a>
-<span class="sourceLineNo">922</span>          throws Exception {<a name="line.922"></a>
-<span class="sourceLineNo">923</span>    return startMiniCluster(<a name="line.923"></a>
-<span class="sourceLineNo">924</span>        numMasters, numSlaves, numSlaves, dataNodeHosts, masterClass, regionserverClass);<a name="line.924"></a>
-

<TRUNCATED>