http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/downloads.html ---------------------------------------------------------------------- diff --git a/downloads.html b/downloads.html index 93311f2..551241c 100644 --- a/downloads.html +++ b/downloads.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase Downloads</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -404,7 +404,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div>
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/export_control.html ---------------------------------------------------------------------- diff --git a/export_control.html b/export_control.html index 7929bcf..8b08d9c 100644 --- a/export_control.html +++ b/export_control.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Export Control @@ -331,7 +331,7 @@ for more details.</p> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/index.html ---------------------------------------------------------------------- diff --git a/index.html b/index.html index 6e74abb..3003ce1 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase⢠Home</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -411,7 +411,7 @@ Apache HBase is an open-source, distributed, versioned, non-relational database <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/integration.html ---------------------------------------------------------------------- diff --git a/integration.html b/integration.html index 85e9f9b..77eff59 100644 --- a/integration.html +++ b/integration.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – CI Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -291,7 +291,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/issue-tracking.html ---------------------------------------------------------------------- diff --git a/issue-tracking.html b/issue-tracking.html index 2eeb127..c4b0a21 100644 --- a/issue-tracking.html +++ b/issue-tracking.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Issue Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -288,7 +288,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/license.html ---------------------------------------------------------------------- diff --git a/license.html b/license.html index b5385ba..c440a28 100644 --- a/license.html +++ b/license.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Licenses</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -491,7 +491,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/mail-lists.html ---------------------------------------------------------------------- diff --git a/mail-lists.html b/mail-lists.html index d8fb77c..af080eb 100644 --- a/mail-lists.html +++ b/mail-lists.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Mailing Lists</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -341,7 +341,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/metrics.html ---------------------------------------------------------------------- diff --git a/metrics.html b/metrics.html index b954f95..d977dd4 100644 --- a/metrics.html +++ b/metrics.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase (TM) Metrics @@ -459,7 +459,7 @@ export HBASE_REGIONSERVER_OPTS="$HBASE_JMX_OPTS -Dcom.sun.management.jmxrem <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/old_news.html ---------------------------------------------------------------------- diff --git a/old_news.html b/old_news.html index 5026ec5..7189fdf 100644 --- a/old_news.html +++ b/old_news.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Old Apache HBase (TM) News @@ -440,7 +440,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/plugin-management.html ---------------------------------------------------------------------- diff --git a/plugin-management.html b/plugin-management.html index 462a136..9a79b26 100644 --- a/plugin-management.html +++ b/plugin-management.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Plugin Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -440,7 +440,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/plugins.html ---------------------------------------------------------------------- diff --git a/plugins.html b/plugins.html index eb1ac89..e8f3466 100644 --- a/plugins.html +++ b/plugins.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Plugins</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -375,7 +375,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/poweredbyhbase.html ---------------------------------------------------------------------- diff --git a/poweredbyhbase.html b/poweredbyhbase.html index cb07547..d0ee678 100644 --- a/poweredbyhbase.html +++ b/poweredbyhbase.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Powered By Apache HBaseÂ</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -769,7 +769,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/project-info.html ---------------------------------------------------------------------- diff --git a/project-info.html b/project-info.html index 1abd81b..24ae9a2 100644 --- a/project-info.html +++ b/project-info.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Information</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -335,7 +335,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/project-reports.html ---------------------------------------------------------------------- diff --git a/project-reports.html b/project-reports.html index 270bda2..eab2e34 100644 --- a/project-reports.html +++ b/project-reports.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Generated Reports</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -305,7 +305,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/project-summary.html ---------------------------------------------------------------------- diff --git a/project-summary.html b/project-summary.html index 552cd86..35bf17b 100644 --- a/project-summary.html +++ b/project-summary.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Summary</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -331,7 +331,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/pseudo-distributed.html ---------------------------------------------------------------------- diff --git a/pseudo-distributed.html b/pseudo-distributed.html index 88fa179..29f7637 100644 --- a/pseudo-distributed.html +++ b/pseudo-distributed.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Running Apache HBase (TM) in pseudo-distributed mode @@ -308,7 +308,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/replication.html ---------------------------------------------------------------------- diff --git a/replication.html b/replication.html index 56e1b64..1decc50 100644 --- a/replication.html +++ b/replication.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase (TM) Replication @@ -303,7 +303,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/resources.html ---------------------------------------------------------------------- diff --git a/resources.html b/resources.html index abde24a..1ba1063 100644 --- a/resources.html +++ b/resources.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Other Apache HBase (TM) Resources</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -331,7 +331,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/source-repository.html ---------------------------------------------------------------------- diff --git a/source-repository.html b/source-repository.html index 631d16e..b44a4e8 100644 --- a/source-repository.html +++ b/source-repository.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Source Code Management</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -299,7 +299,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/sponsors.html ---------------------------------------------------------------------- diff --git a/sponsors.html b/sponsors.html index 6329907..6273fa4 100644 --- a/sponsors.html +++ b/sponsors.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Apache HBase Sponsors</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -333,7 +333,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/supportingprojects.html ---------------------------------------------------------------------- diff --git a/supportingprojects.html b/supportingprojects.html index 96c80d7..c924534 100644 --- a/supportingprojects.html +++ b/supportingprojects.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Supporting Projects</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -520,7 +520,7 @@ under the License. --> <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/team-list.html ---------------------------------------------------------------------- diff --git a/team-list.html b/team-list.html index e72cbff..20ef77d 100644 --- a/team-list.html +++ b/team-list.html @@ -7,7 +7,7 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <meta name="Date-Revision-yyyymmdd" content="20180621" /> + <meta name="Date-Revision-yyyymmdd" content="20180622" /> <meta http-equiv="Content-Language" content="en" /> <title>Apache HBase – Project Team</title> <link rel="stylesheet" href="./css/apache-maven-fluido-1.5-HBASE.min.css" /> @@ -736,7 +736,7 @@ <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. - <li id="publishDate" class="pull-right">Last Published: 2018-06-21</li> + <li id="publishDate" class="pull-right">Last Published: 2018-06-22</li> </p> </div> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/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 cfee65b..71471fa 100644 --- a/testapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html +++ b/testapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html @@ -2757,7 +2757,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri <ul class="blockList"> <li class="blockList"> <h4>restartHBaseCluster</h4> -<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1056">restartHBaseCluster</a>(int servers) +<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1055">restartHBaseCluster</a>(int servers) throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre> <div class="block">Starts the hbase cluster up again after shutting it down previously in a @@ -2777,7 +2777,7 @@ public <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri <ul class="blockList"> <li class="blockList"> <h4>getMiniHBaseCluster</h4> -<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1080">getMiniHBaseCluster</a>()</pre> +<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1083">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 <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri <ul class="blockList"> <li class="blockList"> <h4>shutdownMiniCluster</h4> -<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1093">shutdownMiniCluster</a>() +<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1096">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 <a href="../../../../../apidocs/org/apache/hadoop/hbase/HTableDescri <ul class="blockList"> <li class="blockList"> <h4>shutdownMiniHBaseCluster</h4> -<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1112">shutdownMiniHBaseCluster</a>() +<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1110">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> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/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 80483ee..be284b9 100644 --- a/testapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html +++ b/testapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html @@ -1059,80 +1059,80 @@ <span class="sourceLineNo">1051</span> * Starts the hbase cluster up again after shutting it down previously in a<a name="line.1051"></a> <span class="sourceLineNo">1052</span> * test. Use this if you want to keep dfs/zk up and just stop/start hbase.<a name="line.1052"></a> <span class="sourceLineNo">1053</span> * @param servers number of region servers<a name="line.1053"></a> -<span class="sourceLineNo">1054</span> * @throws IOException<a name="line.1054"></a> -<span class="sourceLineNo">1055</span> */<a name="line.1055"></a> -<span class="sourceLineNo">1056</span> public void restartHBaseCluster(int servers) throws IOException, InterruptedException {<a name="line.1056"></a> -<span class="sourceLineNo">1057</span> if(connection != null){<a name="line.1057"></a> -<span class="sourceLineNo">1058</span> connection.close();<a name="line.1058"></a> -<span class="sourceLineNo">1059</span> connection = null;<a name="line.1059"></a> -<span class="sourceLineNo">1060</span> }<a name="line.1060"></a> -<span class="sourceLineNo">1061</span> this.hbaseCluster = new MiniHBaseCluster(this.conf, servers);<a name="line.1061"></a> -<span class="sourceLineNo">1062</span> // Don't leave here till we've done a successful scan of the hbase:meta<a name="line.1062"></a> -<span class="sourceLineNo">1063</span> Connection conn = ConnectionFactory.createConnection(this.conf);<a name="line.1063"></a> -<span class="sourceLineNo">1064</span> Table t = conn.getTable(TableName.META_TABLE_NAME);<a name="line.1064"></a> -<span class="sourceLineNo">1065</span> ResultScanner s = t.getScanner(new Scan());<a name="line.1065"></a> -<span class="sourceLineNo">1066</span> while (s.next() != null) {<a name="line.1066"></a> -<span class="sourceLineNo">1067</span> // do nothing<a name="line.1067"></a> -<span class="sourceLineNo">1068</span> }<a name="line.1068"></a> -<span class="sourceLineNo">1069</span> LOG.info("HBase has been restarted");<a name="line.1069"></a> -<span class="sourceLineNo">1070</span> s.close();<a name="line.1070"></a> -<span class="sourceLineNo">1071</span> t.close();<a name="line.1071"></a> -<span class="sourceLineNo">1072</span> conn.close();<a name="line.1072"></a> -<span class="sourceLineNo">1073</span> }<a name="line.1073"></a> -<span class="sourceLineNo">1074</span><a name="line.1074"></a> -<span class="sourceLineNo">1075</span> /**<a name="line.1075"></a> -<span class="sourceLineNo">1076</span> * @return Current mini hbase cluster. Only has something in it after a call<a name="line.1076"></a> -<span class="sourceLineNo">1077</span> * to {@link #startMiniCluster()}.<a name="line.1077"></a> -<span class="sourceLineNo">1078</span> * @see #startMiniCluster()<a name="line.1078"></a> -<span class="sourceLineNo">1079</span> */<a name="line.1079"></a> -<span class="sourceLineNo">1080</span> public MiniHBaseCluster getMiniHBaseCluster() {<a name="line.1080"></a> -<span class="sourceLineNo">1081</span> if (this.hbaseCluster == null || this.hbaseCluster instanceof MiniHBaseCluster) {<a name="line.1081"></a> -<span class="sourceLineNo">1082</span> return (MiniHBaseCluster)this.hbaseCluster;<a name="line.1082"></a> -<span class="sourceLineNo">1083</span> }<a name="line.1083"></a> -<span class="sourceLineNo">1084</span> throw new RuntimeException(hbaseCluster + " not an instance of " +<a name="line.1084"></a> -<span class="sourceLineNo">1085</span> MiniHBaseCluster.class.getName());<a name="line.1085"></a> -<span class="sourceLineNo">1086</span> }<a name="line.1086"></a> -<span class="sourceLineNo">1087</span><a name="line.1087"></a> -<span class="sourceLineNo">1088</span> /**<a name="line.1088"></a> -<span class="sourceLineNo">1089</span> * Stops mini hbase, zk, and hdfs clusters.<a name="line.1089"></a> -<span class="sourceLineNo">1090</span> * @throws IOException<a name="line.1090"></a> -<span class="sourceLineNo">1091</span> * @see #startMiniCluster(int)<a name="line.1091"></a> -<span class="sourceLineNo">1092</span> */<a name="line.1092"></a> -<span class="sourceLineNo">1093</span> public void shutdownMiniCluster() throws Exception {<a name="line.1093"></a> -<span class="sourceLineNo">1094</span> LOG.info("Shutting down minicluster");<a name="line.1094"></a> -<span class="sourceLineNo">1095</span> if (this.connection != null && !this.connection.isClosed()) {<a name="line.1095"></a> -<span class="sourceLineNo">1096</span> this.connection.close();<a name="line.1096"></a> -<span class="sourceLineNo">1097</span> this.connection = null;<a name="line.1097"></a> -<span class="sourceLineNo">1098</span> }<a name="line.1098"></a> -<span class="sourceLineNo">1099</span> shutdownMiniHBaseCluster();<a name="line.1099"></a> -<span class="sourceLineNo">1100</span> shutdownMiniDFSCluster();<a name="line.1100"></a> -<span class="sourceLineNo">1101</span> shutdownMiniZKCluster();<a name="line.1101"></a> -<span class="sourceLineNo">1102</span><a name="line.1102"></a> -<span class="sourceLineNo">1103</span> cleanupTestDir();<a name="line.1103"></a> -<span class="sourceLineNo">1104</span> miniClusterRunning = false;<a name="line.1104"></a> -<span class="sourceLineNo">1105</span> LOG.info("Minicluster is down");<a name="line.1105"></a> -<span class="sourceLineNo">1106</span> }<a name="line.1106"></a> -<span class="sourceLineNo">1107</span><a name="line.1107"></a> -<span class="sourceLineNo">1108</span> /**<a name="line.1108"></a> -<span class="sourceLineNo">1109</span> * Shutdown HBase mini cluster. Does not shutdown zk or dfs if running.<a name="line.1109"></a> -<span class="sourceLineNo">1110</span> * @throws IOException<a name="line.1110"></a> -<span class="sourceLineNo">1111</span> */<a name="line.1111"></a> -<span class="sourceLineNo">1112</span> public void shutdownMiniHBaseCluster() throws IOException {<a name="line.1112"></a> -<span class="sourceLineNo">1113</span> if (hbaseAdmin != null) {<a name="line.1113"></a> -<span class="sourceLineNo">1114</span> hbaseAdmin.close();<a name="line.1114"></a> -<span class="sourceLineNo">1115</span> hbaseAdmin = null;<a name="line.1115"></a> -<span class="sourceLineNo">1116</span> }<a name="line.1116"></a> -<span class="sourceLineNo">1117</span><a name="line.1117"></a> -<span class="sourceLineNo">1118</span> // unset the configuration for MIN and MAX RS to start<a name="line.1118"></a> -<span class="sourceLineNo">1119</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MINTOSTART, -1);<a name="line.1119"></a> -<span class="sourceLineNo">1120</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MAXTOSTART, -1);<a name="line.1120"></a> -<span class="sourceLineNo">1121</span> if (this.hbaseCluster != null) {<a name="line.1121"></a> -<span class="sourceLineNo">1122</span> this.hbaseCluster.shutdown();<a name="line.1122"></a> -<span class="sourceLineNo">1123</span> // Wait till hbase is down before going on to shutdown zk.<a name="line.1123"></a> -<span class="sourceLineNo">1124</span> this.hbaseCluster.waitUntilShutDown();<a name="line.1124"></a> -<span class="sourceLineNo">1125</span> this.hbaseCluster = null;<a name="line.1125"></a> -<span class="sourceLineNo">1126</span> }<a name="line.1126"></a> -<span class="sourceLineNo">1127</span><a name="line.1127"></a> +<span class="sourceLineNo">1054</span> */<a name="line.1054"></a> +<span class="sourceLineNo">1055</span> public void restartHBaseCluster(int servers) throws IOException, InterruptedException {<a name="line.1055"></a> +<span class="sourceLineNo">1056</span> if (hbaseAdmin != null) {<a name="line.1056"></a> +<span class="sourceLineNo">1057</span> hbaseAdmin.close();<a name="line.1057"></a> +<span class="sourceLineNo">1058</span> hbaseAdmin = null;<a name="line.1058"></a> +<span class="sourceLineNo">1059</span> }<a name="line.1059"></a> +<span class="sourceLineNo">1060</span> if (this.connection != null) {<a name="line.1060"></a> +<span class="sourceLineNo">1061</span> this.connection.close();<a name="line.1061"></a> +<span class="sourceLineNo">1062</span> this.connection = null;<a name="line.1062"></a> +<span class="sourceLineNo">1063</span> }<a name="line.1063"></a> +<span class="sourceLineNo">1064</span> this.hbaseCluster = new MiniHBaseCluster(this.conf, servers);<a name="line.1064"></a> +<span class="sourceLineNo">1065</span> // Don't leave here till we've done a successful scan of the hbase:meta<a name="line.1065"></a> +<span class="sourceLineNo">1066</span> Connection conn = ConnectionFactory.createConnection(this.conf);<a name="line.1066"></a> +<span class="sourceLineNo">1067</span> Table t = conn.getTable(TableName.META_TABLE_NAME);<a name="line.1067"></a> +<span class="sourceLineNo">1068</span> ResultScanner s = t.getScanner(new Scan());<a name="line.1068"></a> +<span class="sourceLineNo">1069</span> while (s.next() != null) {<a name="line.1069"></a> +<span class="sourceLineNo">1070</span> // do nothing<a name="line.1070"></a> +<span class="sourceLineNo">1071</span> }<a name="line.1071"></a> +<span class="sourceLineNo">1072</span> LOG.info("HBase has been restarted");<a name="line.1072"></a> +<span class="sourceLineNo">1073</span> s.close();<a name="line.1073"></a> +<span class="sourceLineNo">1074</span> t.close();<a name="line.1074"></a> +<span class="sourceLineNo">1075</span> conn.close();<a name="line.1075"></a> +<span class="sourceLineNo">1076</span> }<a name="line.1076"></a> +<span class="sourceLineNo">1077</span><a name="line.1077"></a> +<span class="sourceLineNo">1078</span> /**<a name="line.1078"></a> +<span class="sourceLineNo">1079</span> * @return Current mini hbase cluster. Only has something in it after a call<a name="line.1079"></a> +<span class="sourceLineNo">1080</span> * to {@link #startMiniCluster()}.<a name="line.1080"></a> +<span class="sourceLineNo">1081</span> * @see #startMiniCluster()<a name="line.1081"></a> +<span class="sourceLineNo">1082</span> */<a name="line.1082"></a> +<span class="sourceLineNo">1083</span> public MiniHBaseCluster getMiniHBaseCluster() {<a name="line.1083"></a> +<span class="sourceLineNo">1084</span> if (this.hbaseCluster == null || this.hbaseCluster instanceof MiniHBaseCluster) {<a name="line.1084"></a> +<span class="sourceLineNo">1085</span> return (MiniHBaseCluster)this.hbaseCluster;<a name="line.1085"></a> +<span class="sourceLineNo">1086</span> }<a name="line.1086"></a> +<span class="sourceLineNo">1087</span> throw new RuntimeException(hbaseCluster + " not an instance of " +<a name="line.1087"></a> +<span class="sourceLineNo">1088</span> MiniHBaseCluster.class.getName());<a name="line.1088"></a> +<span class="sourceLineNo">1089</span> }<a name="line.1089"></a> +<span class="sourceLineNo">1090</span><a name="line.1090"></a> +<span class="sourceLineNo">1091</span> /**<a name="line.1091"></a> +<span class="sourceLineNo">1092</span> * Stops mini hbase, zk, and hdfs clusters.<a name="line.1092"></a> +<span class="sourceLineNo">1093</span> * @throws IOException<a name="line.1093"></a> +<span class="sourceLineNo">1094</span> * @see #startMiniCluster(int)<a name="line.1094"></a> +<span class="sourceLineNo">1095</span> */<a name="line.1095"></a> +<span class="sourceLineNo">1096</span> public void shutdownMiniCluster() throws Exception {<a name="line.1096"></a> +<span class="sourceLineNo">1097</span> LOG.info("Shutting down minicluster");<a name="line.1097"></a> +<span class="sourceLineNo">1098</span> shutdownMiniHBaseCluster();<a name="line.1098"></a> +<span class="sourceLineNo">1099</span> shutdownMiniDFSCluster();<a name="line.1099"></a> +<span class="sourceLineNo">1100</span> shutdownMiniZKCluster();<a name="line.1100"></a> +<span class="sourceLineNo">1101</span><a name="line.1101"></a> +<span class="sourceLineNo">1102</span> cleanupTestDir();<a name="line.1102"></a> +<span class="sourceLineNo">1103</span> miniClusterRunning = false;<a name="line.1103"></a> +<span class="sourceLineNo">1104</span> LOG.info("Minicluster is down");<a name="line.1104"></a> +<span class="sourceLineNo">1105</span> }<a name="line.1105"></a> +<span class="sourceLineNo">1106</span><a name="line.1106"></a> +<span class="sourceLineNo">1107</span> /**<a name="line.1107"></a> +<span class="sourceLineNo">1108</span> * Shutdown HBase mini cluster. Does not shutdown zk or dfs if running.<a name="line.1108"></a> +<span class="sourceLineNo">1109</span> */<a name="line.1109"></a> +<span class="sourceLineNo">1110</span> public void shutdownMiniHBaseCluster() throws IOException {<a name="line.1110"></a> +<span class="sourceLineNo">1111</span> if (hbaseAdmin != null) {<a name="line.1111"></a> +<span class="sourceLineNo">1112</span> hbaseAdmin.close();<a name="line.1112"></a> +<span class="sourceLineNo">1113</span> hbaseAdmin = null;<a name="line.1113"></a> +<span class="sourceLineNo">1114</span> }<a name="line.1114"></a> +<span class="sourceLineNo">1115</span> if (this.connection != null) {<a name="line.1115"></a> +<span class="sourceLineNo">1116</span> this.connection.close();<a name="line.1116"></a> +<span class="sourceLineNo">1117</span> this.connection = null;<a name="line.1117"></a> +<span class="sourceLineNo">1118</span> }<a name="line.1118"></a> +<span class="sourceLineNo">1119</span> // unset the configuration for MIN and MAX RS to start<a name="line.1119"></a> +<span class="sourceLineNo">1120</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MINTOSTART, -1);<a name="line.1120"></a> +<span class="sourceLineNo">1121</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MAXTOSTART, -1);<a name="line.1121"></a> +<span class="sourceLineNo">1122</span> if (this.hbaseCluster != null) {<a name="line.1122"></a> +<span class="sourceLineNo">1123</span> this.hbaseCluster.shutdown();<a name="line.1123"></a> +<span class="sourceLineNo">1124</span> // Wait till hbase is down before going on to shutdown zk.<a name="line.1124"></a> +<span class="sourceLineNo">1125</span> this.hbaseCluster.waitUntilShutDown();<a name="line.1125"></a> +<span class="sourceLineNo">1126</span> this.hbaseCluster = null;<a name="line.1126"></a> +<span class="sourceLineNo">1127</span> }<a name="line.1127"></a> <span class="sourceLineNo">1128</span> if (zooKeeperWatcher != null) {<a name="line.1128"></a> <span class="sourceLineNo">1129</span> zooKeeperWatcher.close();<a name="line.1129"></a> <span class="sourceLineNo">1130</span> zooKeeperWatcher = null;<a name="line.1130"></a> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/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 6f854e0..1363d62 100644 --- a/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html +++ b/testdevapidocs/org/apache/hadoop/hbase/HBaseTestingUtility.html @@ -3206,7 +3206,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s <ul class="blockList"> <li class="blockList"> <h4>restartHBaseCluster</h4> -<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1056">restartHBaseCluster</a>(int servers) +<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1055">restartHBaseCluster</a>(int servers) throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html?is-external=true" title="class or interface in java.lang">InterruptedException</a></pre> <div class="block">Starts the hbase cluster up again after shutting it down previously in a @@ -3226,7 +3226,7 @@ public org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s <ul class="blockList"> <li class="blockList"> <h4>getMiniHBaseCluster</h4> -<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1080">getMiniHBaseCluster</a>()</pre> +<pre>public <a href="../../../../org/apache/hadoop/hbase/MiniHBaseCluster.html" title="class in org.apache.hadoop.hbase">MiniHBaseCluster</a> <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1083">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 org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s <ul class="blockList"> <li class="blockList"> <h4>shutdownMiniCluster</h4> -<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1093">shutdownMiniCluster</a>() +<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1096">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 org.apache.hadoop.hbase.HTableDescriptor <a href="../../../../s <ul class="blockList"> <li class="blockList"> <h4>shutdownMiniHBaseCluster</h4> -<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1112">shutdownMiniHBaseCluster</a>() +<pre>public void <a href="../../../../src-html/org/apache/hadoop/hbase/HBaseTestingUtility.html#line.1110">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> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/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 80483ee..be284b9 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 @@ -1059,80 +1059,80 @@ <span class="sourceLineNo">1051</span> * Starts the hbase cluster up again after shutting it down previously in a<a name="line.1051"></a> <span class="sourceLineNo">1052</span> * test. Use this if you want to keep dfs/zk up and just stop/start hbase.<a name="line.1052"></a> <span class="sourceLineNo">1053</span> * @param servers number of region servers<a name="line.1053"></a> -<span class="sourceLineNo">1054</span> * @throws IOException<a name="line.1054"></a> -<span class="sourceLineNo">1055</span> */<a name="line.1055"></a> -<span class="sourceLineNo">1056</span> public void restartHBaseCluster(int servers) throws IOException, InterruptedException {<a name="line.1056"></a> -<span class="sourceLineNo">1057</span> if(connection != null){<a name="line.1057"></a> -<span class="sourceLineNo">1058</span> connection.close();<a name="line.1058"></a> -<span class="sourceLineNo">1059</span> connection = null;<a name="line.1059"></a> -<span class="sourceLineNo">1060</span> }<a name="line.1060"></a> -<span class="sourceLineNo">1061</span> this.hbaseCluster = new MiniHBaseCluster(this.conf, servers);<a name="line.1061"></a> -<span class="sourceLineNo">1062</span> // Don't leave here till we've done a successful scan of the hbase:meta<a name="line.1062"></a> -<span class="sourceLineNo">1063</span> Connection conn = ConnectionFactory.createConnection(this.conf);<a name="line.1063"></a> -<span class="sourceLineNo">1064</span> Table t = conn.getTable(TableName.META_TABLE_NAME);<a name="line.1064"></a> -<span class="sourceLineNo">1065</span> ResultScanner s = t.getScanner(new Scan());<a name="line.1065"></a> -<span class="sourceLineNo">1066</span> while (s.next() != null) {<a name="line.1066"></a> -<span class="sourceLineNo">1067</span> // do nothing<a name="line.1067"></a> -<span class="sourceLineNo">1068</span> }<a name="line.1068"></a> -<span class="sourceLineNo">1069</span> LOG.info("HBase has been restarted");<a name="line.1069"></a> -<span class="sourceLineNo">1070</span> s.close();<a name="line.1070"></a> -<span class="sourceLineNo">1071</span> t.close();<a name="line.1071"></a> -<span class="sourceLineNo">1072</span> conn.close();<a name="line.1072"></a> -<span class="sourceLineNo">1073</span> }<a name="line.1073"></a> -<span class="sourceLineNo">1074</span><a name="line.1074"></a> -<span class="sourceLineNo">1075</span> /**<a name="line.1075"></a> -<span class="sourceLineNo">1076</span> * @return Current mini hbase cluster. Only has something in it after a call<a name="line.1076"></a> -<span class="sourceLineNo">1077</span> * to {@link #startMiniCluster()}.<a name="line.1077"></a> -<span class="sourceLineNo">1078</span> * @see #startMiniCluster()<a name="line.1078"></a> -<span class="sourceLineNo">1079</span> */<a name="line.1079"></a> -<span class="sourceLineNo">1080</span> public MiniHBaseCluster getMiniHBaseCluster() {<a name="line.1080"></a> -<span class="sourceLineNo">1081</span> if (this.hbaseCluster == null || this.hbaseCluster instanceof MiniHBaseCluster) {<a name="line.1081"></a> -<span class="sourceLineNo">1082</span> return (MiniHBaseCluster)this.hbaseCluster;<a name="line.1082"></a> -<span class="sourceLineNo">1083</span> }<a name="line.1083"></a> -<span class="sourceLineNo">1084</span> throw new RuntimeException(hbaseCluster + " not an instance of " +<a name="line.1084"></a> -<span class="sourceLineNo">1085</span> MiniHBaseCluster.class.getName());<a name="line.1085"></a> -<span class="sourceLineNo">1086</span> }<a name="line.1086"></a> -<span class="sourceLineNo">1087</span><a name="line.1087"></a> -<span class="sourceLineNo">1088</span> /**<a name="line.1088"></a> -<span class="sourceLineNo">1089</span> * Stops mini hbase, zk, and hdfs clusters.<a name="line.1089"></a> -<span class="sourceLineNo">1090</span> * @throws IOException<a name="line.1090"></a> -<span class="sourceLineNo">1091</span> * @see #startMiniCluster(int)<a name="line.1091"></a> -<span class="sourceLineNo">1092</span> */<a name="line.1092"></a> -<span class="sourceLineNo">1093</span> public void shutdownMiniCluster() throws Exception {<a name="line.1093"></a> -<span class="sourceLineNo">1094</span> LOG.info("Shutting down minicluster");<a name="line.1094"></a> -<span class="sourceLineNo">1095</span> if (this.connection != null && !this.connection.isClosed()) {<a name="line.1095"></a> -<span class="sourceLineNo">1096</span> this.connection.close();<a name="line.1096"></a> -<span class="sourceLineNo">1097</span> this.connection = null;<a name="line.1097"></a> -<span class="sourceLineNo">1098</span> }<a name="line.1098"></a> -<span class="sourceLineNo">1099</span> shutdownMiniHBaseCluster();<a name="line.1099"></a> -<span class="sourceLineNo">1100</span> shutdownMiniDFSCluster();<a name="line.1100"></a> -<span class="sourceLineNo">1101</span> shutdownMiniZKCluster();<a name="line.1101"></a> -<span class="sourceLineNo">1102</span><a name="line.1102"></a> -<span class="sourceLineNo">1103</span> cleanupTestDir();<a name="line.1103"></a> -<span class="sourceLineNo">1104</span> miniClusterRunning = false;<a name="line.1104"></a> -<span class="sourceLineNo">1105</span> LOG.info("Minicluster is down");<a name="line.1105"></a> -<span class="sourceLineNo">1106</span> }<a name="line.1106"></a> -<span class="sourceLineNo">1107</span><a name="line.1107"></a> -<span class="sourceLineNo">1108</span> /**<a name="line.1108"></a> -<span class="sourceLineNo">1109</span> * Shutdown HBase mini cluster. Does not shutdown zk or dfs if running.<a name="line.1109"></a> -<span class="sourceLineNo">1110</span> * @throws IOException<a name="line.1110"></a> -<span class="sourceLineNo">1111</span> */<a name="line.1111"></a> -<span class="sourceLineNo">1112</span> public void shutdownMiniHBaseCluster() throws IOException {<a name="line.1112"></a> -<span class="sourceLineNo">1113</span> if (hbaseAdmin != null) {<a name="line.1113"></a> -<span class="sourceLineNo">1114</span> hbaseAdmin.close();<a name="line.1114"></a> -<span class="sourceLineNo">1115</span> hbaseAdmin = null;<a name="line.1115"></a> -<span class="sourceLineNo">1116</span> }<a name="line.1116"></a> -<span class="sourceLineNo">1117</span><a name="line.1117"></a> -<span class="sourceLineNo">1118</span> // unset the configuration for MIN and MAX RS to start<a name="line.1118"></a> -<span class="sourceLineNo">1119</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MINTOSTART, -1);<a name="line.1119"></a> -<span class="sourceLineNo">1120</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MAXTOSTART, -1);<a name="line.1120"></a> -<span class="sourceLineNo">1121</span> if (this.hbaseCluster != null) {<a name="line.1121"></a> -<span class="sourceLineNo">1122</span> this.hbaseCluster.shutdown();<a name="line.1122"></a> -<span class="sourceLineNo">1123</span> // Wait till hbase is down before going on to shutdown zk.<a name="line.1123"></a> -<span class="sourceLineNo">1124</span> this.hbaseCluster.waitUntilShutDown();<a name="line.1124"></a> -<span class="sourceLineNo">1125</span> this.hbaseCluster = null;<a name="line.1125"></a> -<span class="sourceLineNo">1126</span> }<a name="line.1126"></a> -<span class="sourceLineNo">1127</span><a name="line.1127"></a> +<span class="sourceLineNo">1054</span> */<a name="line.1054"></a> +<span class="sourceLineNo">1055</span> public void restartHBaseCluster(int servers) throws IOException, InterruptedException {<a name="line.1055"></a> +<span class="sourceLineNo">1056</span> if (hbaseAdmin != null) {<a name="line.1056"></a> +<span class="sourceLineNo">1057</span> hbaseAdmin.close();<a name="line.1057"></a> +<span class="sourceLineNo">1058</span> hbaseAdmin = null;<a name="line.1058"></a> +<span class="sourceLineNo">1059</span> }<a name="line.1059"></a> +<span class="sourceLineNo">1060</span> if (this.connection != null) {<a name="line.1060"></a> +<span class="sourceLineNo">1061</span> this.connection.close();<a name="line.1061"></a> +<span class="sourceLineNo">1062</span> this.connection = null;<a name="line.1062"></a> +<span class="sourceLineNo">1063</span> }<a name="line.1063"></a> +<span class="sourceLineNo">1064</span> this.hbaseCluster = new MiniHBaseCluster(this.conf, servers);<a name="line.1064"></a> +<span class="sourceLineNo">1065</span> // Don't leave here till we've done a successful scan of the hbase:meta<a name="line.1065"></a> +<span class="sourceLineNo">1066</span> Connection conn = ConnectionFactory.createConnection(this.conf);<a name="line.1066"></a> +<span class="sourceLineNo">1067</span> Table t = conn.getTable(TableName.META_TABLE_NAME);<a name="line.1067"></a> +<span class="sourceLineNo">1068</span> ResultScanner s = t.getScanner(new Scan());<a name="line.1068"></a> +<span class="sourceLineNo">1069</span> while (s.next() != null) {<a name="line.1069"></a> +<span class="sourceLineNo">1070</span> // do nothing<a name="line.1070"></a> +<span class="sourceLineNo">1071</span> }<a name="line.1071"></a> +<span class="sourceLineNo">1072</span> LOG.info("HBase has been restarted");<a name="line.1072"></a> +<span class="sourceLineNo">1073</span> s.close();<a name="line.1073"></a> +<span class="sourceLineNo">1074</span> t.close();<a name="line.1074"></a> +<span class="sourceLineNo">1075</span> conn.close();<a name="line.1075"></a> +<span class="sourceLineNo">1076</span> }<a name="line.1076"></a> +<span class="sourceLineNo">1077</span><a name="line.1077"></a> +<span class="sourceLineNo">1078</span> /**<a name="line.1078"></a> +<span class="sourceLineNo">1079</span> * @return Current mini hbase cluster. Only has something in it after a call<a name="line.1079"></a> +<span class="sourceLineNo">1080</span> * to {@link #startMiniCluster()}.<a name="line.1080"></a> +<span class="sourceLineNo">1081</span> * @see #startMiniCluster()<a name="line.1081"></a> +<span class="sourceLineNo">1082</span> */<a name="line.1082"></a> +<span class="sourceLineNo">1083</span> public MiniHBaseCluster getMiniHBaseCluster() {<a name="line.1083"></a> +<span class="sourceLineNo">1084</span> if (this.hbaseCluster == null || this.hbaseCluster instanceof MiniHBaseCluster) {<a name="line.1084"></a> +<span class="sourceLineNo">1085</span> return (MiniHBaseCluster)this.hbaseCluster;<a name="line.1085"></a> +<span class="sourceLineNo">1086</span> }<a name="line.1086"></a> +<span class="sourceLineNo">1087</span> throw new RuntimeException(hbaseCluster + " not an instance of " +<a name="line.1087"></a> +<span class="sourceLineNo">1088</span> MiniHBaseCluster.class.getName());<a name="line.1088"></a> +<span class="sourceLineNo">1089</span> }<a name="line.1089"></a> +<span class="sourceLineNo">1090</span><a name="line.1090"></a> +<span class="sourceLineNo">1091</span> /**<a name="line.1091"></a> +<span class="sourceLineNo">1092</span> * Stops mini hbase, zk, and hdfs clusters.<a name="line.1092"></a> +<span class="sourceLineNo">1093</span> * @throws IOException<a name="line.1093"></a> +<span class="sourceLineNo">1094</span> * @see #startMiniCluster(int)<a name="line.1094"></a> +<span class="sourceLineNo">1095</span> */<a name="line.1095"></a> +<span class="sourceLineNo">1096</span> public void shutdownMiniCluster() throws Exception {<a name="line.1096"></a> +<span class="sourceLineNo">1097</span> LOG.info("Shutting down minicluster");<a name="line.1097"></a> +<span class="sourceLineNo">1098</span> shutdownMiniHBaseCluster();<a name="line.1098"></a> +<span class="sourceLineNo">1099</span> shutdownMiniDFSCluster();<a name="line.1099"></a> +<span class="sourceLineNo">1100</span> shutdownMiniZKCluster();<a name="line.1100"></a> +<span class="sourceLineNo">1101</span><a name="line.1101"></a> +<span class="sourceLineNo">1102</span> cleanupTestDir();<a name="line.1102"></a> +<span class="sourceLineNo">1103</span> miniClusterRunning = false;<a name="line.1103"></a> +<span class="sourceLineNo">1104</span> LOG.info("Minicluster is down");<a name="line.1104"></a> +<span class="sourceLineNo">1105</span> }<a name="line.1105"></a> +<span class="sourceLineNo">1106</span><a name="line.1106"></a> +<span class="sourceLineNo">1107</span> /**<a name="line.1107"></a> +<span class="sourceLineNo">1108</span> * Shutdown HBase mini cluster. Does not shutdown zk or dfs if running.<a name="line.1108"></a> +<span class="sourceLineNo">1109</span> */<a name="line.1109"></a> +<span class="sourceLineNo">1110</span> public void shutdownMiniHBaseCluster() throws IOException {<a name="line.1110"></a> +<span class="sourceLineNo">1111</span> if (hbaseAdmin != null) {<a name="line.1111"></a> +<span class="sourceLineNo">1112</span> hbaseAdmin.close();<a name="line.1112"></a> +<span class="sourceLineNo">1113</span> hbaseAdmin = null;<a name="line.1113"></a> +<span class="sourceLineNo">1114</span> }<a name="line.1114"></a> +<span class="sourceLineNo">1115</span> if (this.connection != null) {<a name="line.1115"></a> +<span class="sourceLineNo">1116</span> this.connection.close();<a name="line.1116"></a> +<span class="sourceLineNo">1117</span> this.connection = null;<a name="line.1117"></a> +<span class="sourceLineNo">1118</span> }<a name="line.1118"></a> +<span class="sourceLineNo">1119</span> // unset the configuration for MIN and MAX RS to start<a name="line.1119"></a> +<span class="sourceLineNo">1120</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MINTOSTART, -1);<a name="line.1120"></a> +<span class="sourceLineNo">1121</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MAXTOSTART, -1);<a name="line.1121"></a> +<span class="sourceLineNo">1122</span> if (this.hbaseCluster != null) {<a name="line.1122"></a> +<span class="sourceLineNo">1123</span> this.hbaseCluster.shutdown();<a name="line.1123"></a> +<span class="sourceLineNo">1124</span> // Wait till hbase is down before going on to shutdown zk.<a name="line.1124"></a> +<span class="sourceLineNo">1125</span> this.hbaseCluster.waitUntilShutDown();<a name="line.1125"></a> +<span class="sourceLineNo">1126</span> this.hbaseCluster = null;<a name="line.1126"></a> +<span class="sourceLineNo">1127</span> }<a name="line.1127"></a> <span class="sourceLineNo">1128</span> if (zooKeeperWatcher != null) {<a name="line.1128"></a> <span class="sourceLineNo">1129</span> zooKeeperWatcher.close();<a name="line.1129"></a> <span class="sourceLineNo">1130</span> zooKeeperWatcher = null;<a name="line.1130"></a> http://git-wip-us.apache.org/repos/asf/hbase-site/blob/9105ec2e/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 80483ee..be284b9 100644 --- a/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html +++ b/testdevapidocs/src-html/org/apache/hadoop/hbase/HBaseTestingUtility.PortAllocator.html @@ -1059,80 +1059,80 @@ <span class="sourceLineNo">1051</span> * Starts the hbase cluster up again after shutting it down previously in a<a name="line.1051"></a> <span class="sourceLineNo">1052</span> * test. Use this if you want to keep dfs/zk up and just stop/start hbase.<a name="line.1052"></a> <span class="sourceLineNo">1053</span> * @param servers number of region servers<a name="line.1053"></a> -<span class="sourceLineNo">1054</span> * @throws IOException<a name="line.1054"></a> -<span class="sourceLineNo">1055</span> */<a name="line.1055"></a> -<span class="sourceLineNo">1056</span> public void restartHBaseCluster(int servers) throws IOException, InterruptedException {<a name="line.1056"></a> -<span class="sourceLineNo">1057</span> if(connection != null){<a name="line.1057"></a> -<span class="sourceLineNo">1058</span> connection.close();<a name="line.1058"></a> -<span class="sourceLineNo">1059</span> connection = null;<a name="line.1059"></a> -<span class="sourceLineNo">1060</span> }<a name="line.1060"></a> -<span class="sourceLineNo">1061</span> this.hbaseCluster = new MiniHBaseCluster(this.conf, servers);<a name="line.1061"></a> -<span class="sourceLineNo">1062</span> // Don't leave here till we've done a successful scan of the hbase:meta<a name="line.1062"></a> -<span class="sourceLineNo">1063</span> Connection conn = ConnectionFactory.createConnection(this.conf);<a name="line.1063"></a> -<span class="sourceLineNo">1064</span> Table t = conn.getTable(TableName.META_TABLE_NAME);<a name="line.1064"></a> -<span class="sourceLineNo">1065</span> ResultScanner s = t.getScanner(new Scan());<a name="line.1065"></a> -<span class="sourceLineNo">1066</span> while (s.next() != null) {<a name="line.1066"></a> -<span class="sourceLineNo">1067</span> // do nothing<a name="line.1067"></a> -<span class="sourceLineNo">1068</span> }<a name="line.1068"></a> -<span class="sourceLineNo">1069</span> LOG.info("HBase has been restarted");<a name="line.1069"></a> -<span class="sourceLineNo">1070</span> s.close();<a name="line.1070"></a> -<span class="sourceLineNo">1071</span> t.close();<a name="line.1071"></a> -<span class="sourceLineNo">1072</span> conn.close();<a name="line.1072"></a> -<span class="sourceLineNo">1073</span> }<a name="line.1073"></a> -<span class="sourceLineNo">1074</span><a name="line.1074"></a> -<span class="sourceLineNo">1075</span> /**<a name="line.1075"></a> -<span class="sourceLineNo">1076</span> * @return Current mini hbase cluster. Only has something in it after a call<a name="line.1076"></a> -<span class="sourceLineNo">1077</span> * to {@link #startMiniCluster()}.<a name="line.1077"></a> -<span class="sourceLineNo">1078</span> * @see #startMiniCluster()<a name="line.1078"></a> -<span class="sourceLineNo">1079</span> */<a name="line.1079"></a> -<span class="sourceLineNo">1080</span> public MiniHBaseCluster getMiniHBaseCluster() {<a name="line.1080"></a> -<span class="sourceLineNo">1081</span> if (this.hbaseCluster == null || this.hbaseCluster instanceof MiniHBaseCluster) {<a name="line.1081"></a> -<span class="sourceLineNo">1082</span> return (MiniHBaseCluster)this.hbaseCluster;<a name="line.1082"></a> -<span class="sourceLineNo">1083</span> }<a name="line.1083"></a> -<span class="sourceLineNo">1084</span> throw new RuntimeException(hbaseCluster + " not an instance of " +<a name="line.1084"></a> -<span class="sourceLineNo">1085</span> MiniHBaseCluster.class.getName());<a name="line.1085"></a> -<span class="sourceLineNo">1086</span> }<a name="line.1086"></a> -<span class="sourceLineNo">1087</span><a name="line.1087"></a> -<span class="sourceLineNo">1088</span> /**<a name="line.1088"></a> -<span class="sourceLineNo">1089</span> * Stops mini hbase, zk, and hdfs clusters.<a name="line.1089"></a> -<span class="sourceLineNo">1090</span> * @throws IOException<a name="line.1090"></a> -<span class="sourceLineNo">1091</span> * @see #startMiniCluster(int)<a name="line.1091"></a> -<span class="sourceLineNo">1092</span> */<a name="line.1092"></a> -<span class="sourceLineNo">1093</span> public void shutdownMiniCluster() throws Exception {<a name="line.1093"></a> -<span class="sourceLineNo">1094</span> LOG.info("Shutting down minicluster");<a name="line.1094"></a> -<span class="sourceLineNo">1095</span> if (this.connection != null && !this.connection.isClosed()) {<a name="line.1095"></a> -<span class="sourceLineNo">1096</span> this.connection.close();<a name="line.1096"></a> -<span class="sourceLineNo">1097</span> this.connection = null;<a name="line.1097"></a> -<span class="sourceLineNo">1098</span> }<a name="line.1098"></a> -<span class="sourceLineNo">1099</span> shutdownMiniHBaseCluster();<a name="line.1099"></a> -<span class="sourceLineNo">1100</span> shutdownMiniDFSCluster();<a name="line.1100"></a> -<span class="sourceLineNo">1101</span> shutdownMiniZKCluster();<a name="line.1101"></a> -<span class="sourceLineNo">1102</span><a name="line.1102"></a> -<span class="sourceLineNo">1103</span> cleanupTestDir();<a name="line.1103"></a> -<span class="sourceLineNo">1104</span> miniClusterRunning = false;<a name="line.1104"></a> -<span class="sourceLineNo">1105</span> LOG.info("Minicluster is down");<a name="line.1105"></a> -<span class="sourceLineNo">1106</span> }<a name="line.1106"></a> -<span class="sourceLineNo">1107</span><a name="line.1107"></a> -<span class="sourceLineNo">1108</span> /**<a name="line.1108"></a> -<span class="sourceLineNo">1109</span> * Shutdown HBase mini cluster. Does not shutdown zk or dfs if running.<a name="line.1109"></a> -<span class="sourceLineNo">1110</span> * @throws IOException<a name="line.1110"></a> -<span class="sourceLineNo">1111</span> */<a name="line.1111"></a> -<span class="sourceLineNo">1112</span> public void shutdownMiniHBaseCluster() throws IOException {<a name="line.1112"></a> -<span class="sourceLineNo">1113</span> if (hbaseAdmin != null) {<a name="line.1113"></a> -<span class="sourceLineNo">1114</span> hbaseAdmin.close();<a name="line.1114"></a> -<span class="sourceLineNo">1115</span> hbaseAdmin = null;<a name="line.1115"></a> -<span class="sourceLineNo">1116</span> }<a name="line.1116"></a> -<span class="sourceLineNo">1117</span><a name="line.1117"></a> -<span class="sourceLineNo">1118</span> // unset the configuration for MIN and MAX RS to start<a name="line.1118"></a> -<span class="sourceLineNo">1119</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MINTOSTART, -1);<a name="line.1119"></a> -<span class="sourceLineNo">1120</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MAXTOSTART, -1);<a name="line.1120"></a> -<span class="sourceLineNo">1121</span> if (this.hbaseCluster != null) {<a name="line.1121"></a> -<span class="sourceLineNo">1122</span> this.hbaseCluster.shutdown();<a name="line.1122"></a> -<span class="sourceLineNo">1123</span> // Wait till hbase is down before going on to shutdown zk.<a name="line.1123"></a> -<span class="sourceLineNo">1124</span> this.hbaseCluster.waitUntilShutDown();<a name="line.1124"></a> -<span class="sourceLineNo">1125</span> this.hbaseCluster = null;<a name="line.1125"></a> -<span class="sourceLineNo">1126</span> }<a name="line.1126"></a> -<span class="sourceLineNo">1127</span><a name="line.1127"></a> +<span class="sourceLineNo">1054</span> */<a name="line.1054"></a> +<span class="sourceLineNo">1055</span> public void restartHBaseCluster(int servers) throws IOException, InterruptedException {<a name="line.1055"></a> +<span class="sourceLineNo">1056</span> if (hbaseAdmin != null) {<a name="line.1056"></a> +<span class="sourceLineNo">1057</span> hbaseAdmin.close();<a name="line.1057"></a> +<span class="sourceLineNo">1058</span> hbaseAdmin = null;<a name="line.1058"></a> +<span class="sourceLineNo">1059</span> }<a name="line.1059"></a> +<span class="sourceLineNo">1060</span> if (this.connection != null) {<a name="line.1060"></a> +<span class="sourceLineNo">1061</span> this.connection.close();<a name="line.1061"></a> +<span class="sourceLineNo">1062</span> this.connection = null;<a name="line.1062"></a> +<span class="sourceLineNo">1063</span> }<a name="line.1063"></a> +<span class="sourceLineNo">1064</span> this.hbaseCluster = new MiniHBaseCluster(this.conf, servers);<a name="line.1064"></a> +<span class="sourceLineNo">1065</span> // Don't leave here till we've done a successful scan of the hbase:meta<a name="line.1065"></a> +<span class="sourceLineNo">1066</span> Connection conn = ConnectionFactory.createConnection(this.conf);<a name="line.1066"></a> +<span class="sourceLineNo">1067</span> Table t = conn.getTable(TableName.META_TABLE_NAME);<a name="line.1067"></a> +<span class="sourceLineNo">1068</span> ResultScanner s = t.getScanner(new Scan());<a name="line.1068"></a> +<span class="sourceLineNo">1069</span> while (s.next() != null) {<a name="line.1069"></a> +<span class="sourceLineNo">1070</span> // do nothing<a name="line.1070"></a> +<span class="sourceLineNo">1071</span> }<a name="line.1071"></a> +<span class="sourceLineNo">1072</span> LOG.info("HBase has been restarted");<a name="line.1072"></a> +<span class="sourceLineNo">1073</span> s.close();<a name="line.1073"></a> +<span class="sourceLineNo">1074</span> t.close();<a name="line.1074"></a> +<span class="sourceLineNo">1075</span> conn.close();<a name="line.1075"></a> +<span class="sourceLineNo">1076</span> }<a name="line.1076"></a> +<span class="sourceLineNo">1077</span><a name="line.1077"></a> +<span class="sourceLineNo">1078</span> /**<a name="line.1078"></a> +<span class="sourceLineNo">1079</span> * @return Current mini hbase cluster. Only has something in it after a call<a name="line.1079"></a> +<span class="sourceLineNo">1080</span> * to {@link #startMiniCluster()}.<a name="line.1080"></a> +<span class="sourceLineNo">1081</span> * @see #startMiniCluster()<a name="line.1081"></a> +<span class="sourceLineNo">1082</span> */<a name="line.1082"></a> +<span class="sourceLineNo">1083</span> public MiniHBaseCluster getMiniHBaseCluster() {<a name="line.1083"></a> +<span class="sourceLineNo">1084</span> if (this.hbaseCluster == null || this.hbaseCluster instanceof MiniHBaseCluster) {<a name="line.1084"></a> +<span class="sourceLineNo">1085</span> return (MiniHBaseCluster)this.hbaseCluster;<a name="line.1085"></a> +<span class="sourceLineNo">1086</span> }<a name="line.1086"></a> +<span class="sourceLineNo">1087</span> throw new RuntimeException(hbaseCluster + " not an instance of " +<a name="line.1087"></a> +<span class="sourceLineNo">1088</span> MiniHBaseCluster.class.getName());<a name="line.1088"></a> +<span class="sourceLineNo">1089</span> }<a name="line.1089"></a> +<span class="sourceLineNo">1090</span><a name="line.1090"></a> +<span class="sourceLineNo">1091</span> /**<a name="line.1091"></a> +<span class="sourceLineNo">1092</span> * Stops mini hbase, zk, and hdfs clusters.<a name="line.1092"></a> +<span class="sourceLineNo">1093</span> * @throws IOException<a name="line.1093"></a> +<span class="sourceLineNo">1094</span> * @see #startMiniCluster(int)<a name="line.1094"></a> +<span class="sourceLineNo">1095</span> */<a name="line.1095"></a> +<span class="sourceLineNo">1096</span> public void shutdownMiniCluster() throws Exception {<a name="line.1096"></a> +<span class="sourceLineNo">1097</span> LOG.info("Shutting down minicluster");<a name="line.1097"></a> +<span class="sourceLineNo">1098</span> shutdownMiniHBaseCluster();<a name="line.1098"></a> +<span class="sourceLineNo">1099</span> shutdownMiniDFSCluster();<a name="line.1099"></a> +<span class="sourceLineNo">1100</span> shutdownMiniZKCluster();<a name="line.1100"></a> +<span class="sourceLineNo">1101</span><a name="line.1101"></a> +<span class="sourceLineNo">1102</span> cleanupTestDir();<a name="line.1102"></a> +<span class="sourceLineNo">1103</span> miniClusterRunning = false;<a name="line.1103"></a> +<span class="sourceLineNo">1104</span> LOG.info("Minicluster is down");<a name="line.1104"></a> +<span class="sourceLineNo">1105</span> }<a name="line.1105"></a> +<span class="sourceLineNo">1106</span><a name="line.1106"></a> +<span class="sourceLineNo">1107</span> /**<a name="line.1107"></a> +<span class="sourceLineNo">1108</span> * Shutdown HBase mini cluster. Does not shutdown zk or dfs if running.<a name="line.1108"></a> +<span class="sourceLineNo">1109</span> */<a name="line.1109"></a> +<span class="sourceLineNo">1110</span> public void shutdownMiniHBaseCluster() throws IOException {<a name="line.1110"></a> +<span class="sourceLineNo">1111</span> if (hbaseAdmin != null) {<a name="line.1111"></a> +<span class="sourceLineNo">1112</span> hbaseAdmin.close();<a name="line.1112"></a> +<span class="sourceLineNo">1113</span> hbaseAdmin = null;<a name="line.1113"></a> +<span class="sourceLineNo">1114</span> }<a name="line.1114"></a> +<span class="sourceLineNo">1115</span> if (this.connection != null) {<a name="line.1115"></a> +<span class="sourceLineNo">1116</span> this.connection.close();<a name="line.1116"></a> +<span class="sourceLineNo">1117</span> this.connection = null;<a name="line.1117"></a> +<span class="sourceLineNo">1118</span> }<a name="line.1118"></a> +<span class="sourceLineNo">1119</span> // unset the configuration for MIN and MAX RS to start<a name="line.1119"></a> +<span class="sourceLineNo">1120</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MINTOSTART, -1);<a name="line.1120"></a> +<span class="sourceLineNo">1121</span> conf.setInt(ServerManager.WAIT_ON_REGIONSERVERS_MAXTOSTART, -1);<a name="line.1121"></a> +<span class="sourceLineNo">1122</span> if (this.hbaseCluster != null) {<a name="line.1122"></a> +<span class="sourceLineNo">1123</span> this.hbaseCluster.shutdown();<a name="line.1123"></a> +<span class="sourceLineNo">1124</span> // Wait till hbase is down before going on to shutdown zk.<a name="line.1124"></a> +<span class="sourceLineNo">1125</span> this.hbaseCluster.waitUntilShutDown();<a name="line.1125"></a> +<span class="sourceLineNo">1126</span> this.hbaseCluster = null;<a name="line.1126"></a> +<span class="sourceLineNo">1127</span> }<a name="line.1127"></a> <span class="sourceLineNo">1128</span> if (zooKeeperWatcher != null) {<a name="line.1128"></a> <span class="sourceLineNo">1129</span> zooKeeperWatcher.close();<a name="line.1129"></a> <span class="sourceLineNo">1130</span> zooKeeperWatcher = null;<a name="line.1130"></a>