hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [hbase-site] branch asf-site updated: Published site at 1ecff8a3903f8f131149c6c073108d2ab2166b36.
Date Fri, 04 Jun 2021 20:20:21 GMT
This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hbase-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 6c1b24e  Published site at 1ecff8a3903f8f131149c6c073108d2ab2166b36.
6c1b24e is described below

commit 6c1b24e218921fb9453d09bd6ec53e7be13bfaed
Author: jenkins <builds@apache.org>
AuthorDate: Fri Jun 4 20:19:42 2021 +0000

    Published site at 1ecff8a3903f8f131149c6c073108d2ab2166b36.
---
 acid-semantics.html                                |    2 +-
 apache_hbase_reference_guide.pdf                   |    4 +-
 book.html                                          |    2 +-
 bulk-loads.html                                    |    2 +-
 checkstyle-aggregate.html                          |    2 +-
 coc.html                                           |    2 +-
 dependencies.html                                  |    2 +-
 dependency-convergence.html                        |    2 +-
 dependency-info.html                               |    2 +-
 dependency-management.html                         |    2 +-
 .../apache/hadoop/hbase/thrift/ThriftServer.html   |   98 +-
 .../apache/hadoop/hbase/thrift/ThriftServer.html   | 1579 ++++++++++----------
 downloads.html                                     |    2 +-
 export_control.html                                |    2 +-
 index.html                                         |    2 +-
 issue-tracking.html                                |    2 +-
 mail-lists.html                                    |    2 +-
 metrics.html                                       |    2 +-
 old_news.html                                      |    2 +-
 plugin-management.html                             |    2 +-
 plugins.html                                       |    2 +-
 poweredbyhbase.html                                |    2 +-
 project-info.html                                  |    2 +-
 project-reports.html                               |    2 +-
 project-summary.html                               |    2 +-
 pseudo-distributed.html                            |    2 +-
 replication.html                                   |    2 +-
 resources.html                                     |    2 +-
 source-repository.html                             |    2 +-
 sponsors.html                                      |    2 +-
 supportingprojects.html                            |    2 +-
 team-list.html                                     |    2 +-
 32 files changed, 878 insertions(+), 861 deletions(-)

diff --git a/acid-semantics.html b/acid-semantics.html
index 4d62dd7..80d26bc 100644
--- a/acid-semantics.html
+++ b/acid-semantics.html
@@ -467,7 +467,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/apache_hbase_reference_guide.pdf b/apache_hbase_reference_guide.pdf
index 52b4f1d..834102b 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.3, based on Prawn 2.2.2)
 /Producer (Apache HBase Team)
-/ModDate (D:20210603200617+00'00')
-/CreationDate (D:20210603201801+00'00')
+/ModDate (D:20210604200557+00'00')
+/CreationDate (D:20210604201720+00'00')
 >>
 endobj
 2 0 obj
diff --git a/book.html b/book.html
index 8344e7f..14f78dd 100644
--- a/book.html
+++ b/book.html
@@ -46192,7 +46192,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 2021-06-03 20:06:17 UTC
+Last updated 2021-06-04 20:05:57 UTC
 </div>
 </div>
 <link rel="stylesheet" href="./coderay-asciidoctor.css">
diff --git a/bulk-loads.html b/bulk-loads.html
index 7a52f4a..d23c9d3 100644
--- a/bulk-loads.html
+++ b/bulk-loads.html
@@ -172,7 +172,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/checkstyle-aggregate.html b/checkstyle-aggregate.html
index c7d2e56..ff2726b 100644
--- a/checkstyle-aggregate.html
+++ b/checkstyle-aggregate.html
@@ -73511,7 +73511,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/coc.html b/coc.html
index ac5d0d8..8f734b5 100644
--- a/coc.html
+++ b/coc.html
@@ -241,7 +241,7 @@ email to <a class="externalLink" href="mailto:private@hbase.apache.org">the priv
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/dependencies.html b/dependencies.html
index d78c7fd..2b75f04 100644
--- a/dependencies.html
+++ b/dependencies.html
@@ -313,7 +313,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/dependency-convergence.html b/dependency-convergence.html
index 634c596..319a50d 100644
--- a/dependency-convergence.html
+++ b/dependency-convergence.html
@@ -824,7 +824,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/dependency-info.html b/dependency-info.html
index 01918e3..426a9f6 100644
--- a/dependency-info.html
+++ b/dependency-info.html
@@ -194,7 +194,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/dependency-management.html b/dependency-management.html
index 5853583..d18b8b4 100644
--- a/dependency-management.html
+++ b/dependency-management.html
@@ -1201,7 +1201,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/devapidocs/org/apache/hadoop/hbase/thrift/ThriftServer.html b/devapidocs/org/apache/hadoop/hbase/thrift/ThriftServer.html
index dd33917..7b23953 100644
--- a/devapidocs/org/apache/hadoop/hbase/thrift/ThriftServer.html
+++ b/devapidocs/org/apache/hadoop/hbase/thrift/ThriftServer.html
@@ -123,7 +123,7 @@ var activeTableTab = "activeTableTab";
 <hr>
 <br>
 <pre>@InterfaceAudience.LimitedPrivate(value="Tools")
-public class <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.161">ThriftServer</a>
+public class <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.163">ThriftServer</a>
 extends org.apache.hadoop.conf.Configured
 implements org.apache.hadoop.util.Tool</pre>
 <div class="block">ThriftServer- this class starts up a Thrift server which implements the
@@ -450,7 +450,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>LOG</h4>
-<pre>private static final&nbsp;org.slf4j.Logger <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.163">LOG</a></pre>
+<pre>private static final&nbsp;org.slf4j.Logger <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.165">LOG</a></pre>
 </li>
 </ul>
 <a name="conf">
@@ -459,7 +459,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>conf</h4>
-<pre>protected&nbsp;org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.167">conf</a></pre>
+<pre>protected&nbsp;org.apache.hadoop.conf.Configuration <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.169">conf</a></pre>
 </li>
 </ul>
 <a name="infoServer">
@@ -468,7 +468,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>infoServer</h4>
-<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/http/InfoServer.html" title="class in org.apache.hadoop.hbase.http">InfoServer</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.169">infoServer</a></pre>
+<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/http/InfoServer.html" title="class in org.apache.hadoop.hbase.http">InfoServer</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.171">infoServer</a></pre>
 </li>
 </ul>
 <a name="processor">
@@ -477,7 +477,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>processor</h4>
-<pre>protected&nbsp;org.apache.thrift.TProcessor <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.171">processor</a></pre>
+<pre>protected&nbsp;org.apache.thrift.TProcessor <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.173">processor</a></pre>
 </li>
 </ul>
 <a name="metrics">
@@ -486,7 +486,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>metrics</h4>
-<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftMetrics.html" title="class in org.apache.hadoop.hbase.thrift">ThriftMetrics</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.173">metrics</a></pre>
+<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftMetrics.html" title="class in org.apache.hadoop.hbase.thrift">ThriftMetrics</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.175">metrics</a></pre>
 </li>
 </ul>
 <a name="hbaseServiceHandler">
@@ -495,7 +495,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>hbaseServiceHandler</h4>
-<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/thrift/HBaseServiceHandler.html" title="class in org.apache.hadoop.hbase.thrift">HBaseServiceHandler</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.174">hbaseServiceHandler</a></pre>
+<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/thrift/HBaseServiceHandler.html" title="class in org.apache.hadoop.hbase.thrift">HBaseServiceHandler</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.176">hbaseServiceHandler</a></pre>
 </li>
 </ul>
 <a name="serviceUGI">
@@ -504,7 +504,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>serviceUGI</h4>
-<pre>protected&nbsp;org.apache.hadoop.security.UserGroupInformation <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.175">serviceUGI</a></pre>
+<pre>protected&nbsp;org.apache.hadoop.security.UserGroupInformation <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.177">serviceUGI</a></pre>
 </li>
 </ul>
 <a name="httpUGI">
@@ -513,7 +513,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>httpUGI</h4>
-<pre>protected&nbsp;org.apache.hadoop.security.UserGroupInformation <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.176">httpUGI</a></pre>
+<pre>protected&nbsp;org.apache.hadoop.security.UserGroupInformation <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.178">httpUGI</a></pre>
 </li>
 </ul>
 <a name="httpEnabled">
@@ -522,7 +522,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>httpEnabled</h4>
-<pre>protected&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.177">httpEnabled</a></pre>
+<pre>protected&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.179">httpEnabled</a></pre>
 </li>
 </ul>
 <a name="qop">
@@ -531,7 +531,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>qop</h4>
-<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/security/SaslUtil.QualityOfProtection.html" title="enum in org.apache.hadoop.hbase.security">SaslUtil.QualityOfProtection</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.179">qop</a></pre>
+<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/security/SaslUtil.QualityOfProtection.html" title="enum in org.apache.hadoop.hbase.security">SaslUtil.QualityOfProtection</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.181">qop</a></pre>
 </li>
 </ul>
 <a name="host">
@@ -540,7 +540,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>host</h4>
-<pre>protected&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/thrift/ThriftServer.html#line.180">host</a></pre>
+<pre>protected&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/thrift/ThriftServer.html#line.182">host</a></pre>
 </li>
 </ul>
 <a name="listenPort">
@@ -549,7 +549,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>listenPort</h4>
-<pre>protected&nbsp;int <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.181">listenPort</a></pre>
+<pre>protected&nbsp;int <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.183">listenPort</a></pre>
 </li>
 </ul>
 <a name="securityEnabled">
@@ -558,7 +558,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>securityEnabled</h4>
-<pre>protected&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.184">securityEnabled</a></pre>
+<pre>protected&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.186">securityEnabled</a></pre>
 </li>
 </ul>
 <a name="doAsEnabled">
@@ -567,7 +567,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>doAsEnabled</h4>
-<pre>protected&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.185">doAsEnabled</a></pre>
+<pre>protected&nbsp;boolean <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.187">doAsEnabled</a></pre>
 </li>
 </ul>
 <a name="pauseMonitor">
@@ -576,7 +576,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>pauseMonitor</h4>
-<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/util/JvmPauseMonitor.html" title="class in org.apache.hadoop.hbase.util">JvmPauseMonitor</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.187">pauseMonitor</a></pre>
+<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/util/JvmPauseMonitor.html" title="class in org.apache.hadoop.hbase.util">JvmPauseMonitor</a> <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.189">pauseMonitor</a></pre>
 </li>
 </ul>
 <a name="tserver">
@@ -585,7 +585,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>tserver</h4>
-<pre>protected volatile&nbsp;org.apache.thrift.server.TServer <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.189">tserver</a></pre>
+<pre>protected volatile&nbsp;org.apache.thrift.server.TServer <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.191">tserver</a></pre>
 </li>
 </ul>
 <a name="httpServer">
@@ -594,7 +594,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockListLast">
 <li class="blockList">
 <h4>httpServer</h4>
-<pre>protected volatile&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.190">httpServer</a></pre>
+<pre>protected volatile&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server <a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.192">httpServer</a></pre>
 </li>
 </ul>
 </li>
@@ -611,7 +611,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockListLast">
 <li class="blockList">
 <h4>ThriftServer</h4>
-<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.197">ThriftServer</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
+<pre>public&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.199">ThriftServer</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
 </li>
 </ul>
 </li>
@@ -628,7 +628,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>createThriftMetrics</h4>
-<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftMetrics.html" title="class in org.apache.hadoop.hbase.thrift">ThriftMetrics</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.201">createThriftMetrics</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
+<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftMetrics.html" title="class in org.apache.hadoop.hbase.thrift">ThriftMetrics</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.203">createThriftMetrics</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
 </li>
 </ul>
 <a name="setupParamters--">
@@ -637,7 +637,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>setupParamters</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.205">setupParamters</a>()
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.207">setupParamters</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>
@@ -651,7 +651,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>getSpengoPrincipal</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/thrift/ThriftServer.html#line.265">getSpengoPrincipal</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<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/thrift/ThriftServer.html#line.267">getSpengoPrincipal</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                   <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;host)
                            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>
@@ -666,7 +666,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>getSpnegoKeytab</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/thrift/ThriftServer.html#line.281">getSpnegoKeytab</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
+<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/thrift/ThriftServer.html#line.283">getSpnegoKeytab</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
 </li>
 </ul>
 <a name="startInfoServer--">
@@ -675,7 +675,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>startInfoServer</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.296">startInfoServer</a>()
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.298">startInfoServer</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>
@@ -689,7 +689,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>checkHttpSecurity</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.311">checkHttpSecurity</a>(<a href="../../../../../org/apache/hadoop/hbase/security/SaslUtil.QualityOfProtection.html" title="enum in org.apache.hadoop.hbase.security">SaslUtil.QualityOfProtection</a>&nbsp;qop,
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.313">checkHttpSecurity</a>(<a href="../../../../../org/apache/hadoop/hbase/security/SaslUtil.QualityOfProtection.html" title="enum in org.apache.hadoop.hbase.security">SaslUtil.QualityOfProtection</a>&nbsp;qop,
                                  org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
 </li>
 </ul>
@@ -699,7 +699,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>createHandler</h4>
-<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/thrift/HBaseServiceHandler.html" title="class in org.apache.hadoop.hbase.thrift">HBaseServiceHandler</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.320">createHandler</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
+<pre>protected&nbsp;<a href="../../../../../org/apache/hadoop/hbase/thrift/HBaseServiceHandler.html" title="class in org.apache.hadoop.hbase.thrift">HBaseServiceHandler</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.322">createHandler</a>(org.apache.hadoop.conf.Configuration&nbsp;conf,
                                             <a href="../../../../../org/apache/hadoop/hbase/security/UserProvider.html" title="class in org.apache.hadoop.hbase.security">UserProvider</a>&nbsp;userProvider)
                                      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>
@@ -714,7 +714,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <ul class="blockList">
 <li class="blockList">
 <h4>createProcessor</h4>
-<pre>protected&nbsp;org.apache.thrift.TProcessor&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.325">createProcessor</a>()</pre>
+<pre>protected&nbsp;org.apache.thrift.TProcessor&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.327">createProcessor</a>()</pre>
 </li>
 </ul>
 <a name="getTserver--">
@@ -724,7 +724,7 @@ implements org.apache.hadoop.util.Tool</pre>
 <li class="blockList">
 <h4>getTserver</h4>
 <pre>@InterfaceAudience.Private
-public&nbsp;org.apache.thrift.server.TServer&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.335">getTserver</a>()</pre>
+public&nbsp;org.apache.thrift.server.TServer&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.337">getTserver</a>()</pre>
 <div class="block">the thrift server, not null means the server is started, for test only</div>
 <dl>
 <dt><span class="returnLabel">Returns:</span></dt>
@@ -739,7 +739,7 @@ public&nbsp;org.apache.thrift.server.TServer&nbsp;<a href="../../../../../src-ht
 <li class="blockList">
 <h4>getHttpServer</h4>
 <pre>@InterfaceAudience.Private
-public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.344">getHttpServer</a>()</pre>
+public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.346">getHttpServer</a>()</pre>
 <div class="block">the Jetty server, not null means the HTTP server is started, for test only</div>
 <dl>
 <dt><span class="returnLabel">Returns:</span></dt>
@@ -753,7 +753,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>printUsageAndExit</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.348">printUsageAndExit</a>(org.apache.hbase.thirdparty.org.apache.commons.cli.Options&nbsp;options,
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.350">printUsageAndExit</a>(org.apache.hbase.thirdparty.org.apache.commons.cli.Options&nbsp;options,
                                  int&nbsp;exitCode)
                           throws org.apache.hadoop.util.Shell.ExitCodeException</pre>
 <dl>
@@ -768,7 +768,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>createTServlet</h4>
-<pre>protected&nbsp;org.apache.thrift.server.TServlet&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.365">createTServlet</a>(org.apache.thrift.protocol.TProtocolFactory&nbsp;protocolFactory)</pre>
+<pre>protected&nbsp;org.apache.thrift.server.TServlet&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.367">createTServlet</a>(org.apache.thrift.protocol.TProtocolFactory&nbsp;protocolFactory)</pre>
 <div class="block">Create a Servlet for the http server</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
@@ -784,7 +784,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>setupHTTPServer</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.375">setupHTTPServer</a>()
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.377">setupHTTPServer</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">Setup an HTTP Server using Jetty to serve calls from THttpClient</div>
 <dl>
@@ -799,7 +799,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>setupServer</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.470">setupServer</a>()
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.472">setupServer</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">Setting up the thrift TServer</div>
 <dl>
@@ -814,7 +814,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>getTNonBlockingServer</h4>
-<pre>protected&nbsp;org.apache.thrift.server.TServer&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.578">getTNonBlockingServer</a>(org.apache.thrift.transport.TNonblockingServerTransport&nbsp;serverTransport,
+<pre>protected&nbsp;org.apache.thrift.server.TServer&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.580">getTNonBlockingServer</a>(org.apache.thrift.transport.TNonblockingServerTransport&nbsp;serverTransport,
                                                                  org.apache.thrift.protocol.TProtocolFactory&nbsp;protocolFactory,
                                                                  org.apache.thrift.TProcessor&nbsp;processor,
                                                                  org.apache.thrift.transport.TTransportFactory&nbsp;transportFactory,
@@ -827,7 +827,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>getTHsHaServer</h4>
-<pre>protected&nbsp;org.apache.thrift.server.TServer&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.589">getTHsHaServer</a>(org.apache.thrift.transport.TNonblockingServerTransport&nbsp;serverTransport,
+<pre>protected&nbsp;org.apache.thrift.server.TServer&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.591">getTHsHaServer</a>(org.apache.thrift.transport.TNonblockingServerTransport&nbsp;serverTransport,
                                                           org.apache.thrift.protocol.TProtocolFactory&nbsp;protocolFactory,
                                                           org.apache.thrift.TProcessor&nbsp;processor,
                                                           org.apache.thrift.transport.TTransportFactory&nbsp;transportFactory,
@@ -840,7 +840,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>getTThreadedSelectorServer</h4>
-<pre>protected&nbsp;org.apache.thrift.server.TServer&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.606">getTThreadedSelectorServer</a>(org.apache.thrift.transport.TNonblockingServerTransport&nbsp;serverTransport,
+<pre>protected&nbsp;org.apache.thrift.server.TServer&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.608">getTThreadedSelectorServer</a>(org.apache.thrift.transport.TNonblockingServerTransport&nbsp;serverTransport,
                                                                       org.apache.thrift.protocol.TProtocolFactory&nbsp;protocolFactory,
                                                                       org.apache.thrift.TProcessor&nbsp;processor,
                                                                       org.apache.thrift.transport.TTransportFactory&nbsp;transportFactory,
@@ -853,7 +853,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>getTThreadPoolServer</h4>
-<pre>protected&nbsp;org.apache.thrift.server.TServer&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.626">getTThreadPoolServer</a>(org.apache.thrift.protocol.TProtocolFactory&nbsp;protocolFactory,
+<pre>protected&nbsp;org.apache.thrift.server.TServer&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.628">getTThreadPoolServer</a>(org.apache.thrift.protocol.TProtocolFactory&nbsp;protocolFactory,
                                                                 org.apache.thrift.TProcessor&nbsp;processor,
                                                                 org.apache.thrift.transport.TTransportFactory&nbsp;transportFactory,
                                                                 <a href="https://docs.oracle.com/javase/8/docs/api/java/net/InetSocketAddress.html?is-external=true" title="class or interface in java.net">InetSocketAddress</a>&nbsp;inetSocketAddress)
@@ -870,7 +870,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>getProtocolFactory</h4>
-<pre>protected&nbsp;org.apache.thrift.protocol.TProtocolFactory&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.645">getProtocolFactory</a>()</pre>
+<pre>protected&nbsp;org.apache.thrift.protocol.TProtocolFactory&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.647">getProtocolFactory</a>()</pre>
 </li>
 </ul>
 <a name="createExecutor-java.util.concurrent.BlockingQueue-int-int-">
@@ -879,7 +879,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>createExecutor</h4>
-<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.659">createExecutor</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/BlockingQueue.html?is-external=true" title="class or interface in java.util.concurrent">BlockingQueue< [...]
+<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html?is-external=true" title="class or interface in java.util.concurrent">ExecutorService</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.661">createExecutor</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/BlockingQueue.html?is-external=true" title="class or interface in java.util.concurrent">BlockingQueue< [...]
                                          int&nbsp;minWorkers,
                                          int&nbsp;maxWorkers)</pre>
 </li>
@@ -890,7 +890,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>getBindAddress</h4>
-<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.670">getBindAddress</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)
+<pre>protected&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/net/InetAddress.html?is-external=true" title="class or interface in java.net">InetAddress</a>&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.672">getBindAddress</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)
                               throws <a href="https://docs.oracle.com/javase/8/docs/api/java/net/UnknownHostException.html?is-external=true" title="class or interface in java.net">UnknownHostException</a></pre>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
@@ -904,7 +904,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>registerFilters</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.677">registerFilters</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
+<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.679">registerFilters</a>(org.apache.hadoop.conf.Configuration&nbsp;conf)</pre>
 </li>
 </ul>
 <a name="addOptions-org.apache.hbase.thirdparty.org.apache.commons.cli.Options-">
@@ -913,7 +913,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>addOptions</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.696">addOptions</a>(org.apache.hbase.thirdparty.org.apache.commons.cli.Options&nbsp;options)</pre>
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.698">addOptions</a>(org.apache.hbase.thirdparty.org.apache.commons.cli.Options&nbsp;options)</pre>
 <div class="block">Add options to command lines</div>
 <dl>
 <dt><span class="paramLabel">Parameters:</span></dt>
@@ -927,7 +927,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>parseCommandLine</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.731">parseCommandLine</a>(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine&nbsp;cmd,
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.733">parseCommandLine</a>(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine&nbsp;cmd,
                                 org.apache.hbase.thirdparty.org.apache.commons.cli.Options&nbsp;options)
                          throws org.apache.hadoop.util.Shell.ExitCodeException</pre>
 <dl>
@@ -942,7 +942,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>processOptions</h4>
-<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.783">processOptions</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;args)
+<pre>protected&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.785">processOptions</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;args)
                        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">Parse the command line options to set parameters the conf.</div>
 <dl>
@@ -957,7 +957,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>stop</h4>
-<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.799">stop</a>()</pre>
+<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.801">stop</a>()</pre>
 </li>
 </ul>
 <a name="optionToConf-org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine-java.lang.String-org.apache.hadoop.conf.Configuration-java.lang.String-">
@@ -966,7 +966,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>optionToConf</h4>
-<pre>protected static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.826">optionToConf</a>(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine&nbsp;cmd,
+<pre>protected static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.828">optionToConf</a>(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine&nbsp;cmd,
                                    <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;option,
                                    org.apache.hadoop.conf.Configuration&nbsp;conf,
                                    <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;destConfKey)</pre>
@@ -978,7 +978,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>run</h4>
-<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.840">run</a>()
+<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.842">run</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">Run without any command line arguments</div>
 <dl>
@@ -995,7 +995,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockList">
 <li class="blockList">
 <h4>run</h4>
-<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.845">run</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;strings)
+<pre>public&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.847">run</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;strings)
         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>
 <dl>
 <dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
@@ -1011,7 +1011,7 @@ public&nbsp;org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server&nbsp;<a
 <ul class="blockListLast">
 <li class="blockList">
 <h4>main</h4>
-<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.860">main</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;args)
+<pre>public static&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html#line.877">main</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;args)
                  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>
 <dl>
 <dt><span class="throwsLabel">Throws:</span></dt>
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html b/devapidocs/src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html
index 38d0118..6a05d69 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/thrift/ThriftServer.html
@@ -86,795 +86,812 @@
 <span class="sourceLineNo">078</span>import java.net.InetAddress;<a name="line.78"></a>
 <span class="sourceLineNo">079</span>import java.net.InetSocketAddress;<a name="line.79"></a>
 <span class="sourceLineNo">080</span>import java.net.UnknownHostException;<a name="line.80"></a>
-<span class="sourceLineNo">081</span>import java.util.List;<a name="line.81"></a>
-<span class="sourceLineNo">082</span>import java.util.Map;<a name="line.82"></a>
-<span class="sourceLineNo">083</span>import java.util.concurrent.BlockingQueue;<a name="line.83"></a>
-<span class="sourceLineNo">084</span>import java.util.concurrent.ExecutorService;<a name="line.84"></a>
-<span class="sourceLineNo">085</span>import java.util.concurrent.LinkedBlockingQueue;<a name="line.85"></a>
-<span class="sourceLineNo">086</span>import java.util.concurrent.ThreadPoolExecutor;<a name="line.86"></a>
-<span class="sourceLineNo">087</span>import java.util.concurrent.TimeUnit;<a name="line.87"></a>
-<span class="sourceLineNo">088</span>import javax.security.auth.callback.Callback;<a name="line.88"></a>
-<span class="sourceLineNo">089</span>import javax.security.auth.callback.UnsupportedCallbackException;<a name="line.89"></a>
-<span class="sourceLineNo">090</span>import javax.security.sasl.AuthorizeCallback;<a name="line.90"></a>
-<span class="sourceLineNo">091</span>import javax.security.sasl.SaslServer;<a name="line.91"></a>
-<span class="sourceLineNo">092</span>import org.apache.commons.lang3.ArrayUtils;<a name="line.92"></a>
-<span class="sourceLineNo">093</span>import org.apache.hadoop.conf.Configuration;<a name="line.93"></a>
-<span class="sourceLineNo">094</span>import org.apache.hadoop.conf.Configured;<a name="line.94"></a>
-<span class="sourceLineNo">095</span>import org.apache.hadoop.hbase.HBaseConfiguration;<a name="line.95"></a>
-<span class="sourceLineNo">096</span>import org.apache.hadoop.hbase.HBaseInterfaceAudience;<a name="line.96"></a>
-<span class="sourceLineNo">097</span>import org.apache.hadoop.hbase.filter.ParseFilter;<a name="line.97"></a>
-<span class="sourceLineNo">098</span>import org.apache.hadoop.hbase.http.HttpServerUtil;<a name="line.98"></a>
-<span class="sourceLineNo">099</span>import org.apache.hadoop.hbase.http.InfoServer;<a name="line.99"></a>
-<span class="sourceLineNo">100</span>import org.apache.hadoop.hbase.security.SaslUtil;<a name="line.100"></a>
-<span class="sourceLineNo">101</span>import org.apache.hadoop.hbase.security.SecurityUtil;<a name="line.101"></a>
-<span class="sourceLineNo">102</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.102"></a>
-<span class="sourceLineNo">103</span>import org.apache.hadoop.hbase.thrift.generated.Hbase;<a name="line.103"></a>
-<span class="sourceLineNo">104</span>import org.apache.hadoop.hbase.util.DNS;<a name="line.104"></a>
-<span class="sourceLineNo">105</span>import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;<a name="line.105"></a>
-<span class="sourceLineNo">106</span>import org.apache.hadoop.hbase.util.JvmPauseMonitor;<a name="line.106"></a>
-<span class="sourceLineNo">107</span>import org.apache.hadoop.hbase.util.Strings;<a name="line.107"></a>
-<span class="sourceLineNo">108</span>import org.apache.hadoop.hbase.util.VersionInfo;<a name="line.108"></a>
-<span class="sourceLineNo">109</span>import org.apache.hadoop.security.SaslRpcServer;<a name="line.109"></a>
-<span class="sourceLineNo">110</span>import org.apache.hadoop.security.UserGroupInformation;<a name="line.110"></a>
-<span class="sourceLineNo">111</span>import org.apache.hadoop.security.authorize.ProxyUsers;<a name="line.111"></a>
-<span class="sourceLineNo">112</span>import org.apache.hadoop.util.Shell.ExitCodeException;<a name="line.112"></a>
-<span class="sourceLineNo">113</span>import org.apache.hadoop.util.Tool;<a name="line.113"></a>
-<span class="sourceLineNo">114</span>import org.apache.hadoop.util.ToolRunner;<a name="line.114"></a>
-<span class="sourceLineNo">115</span>import org.apache.thrift.TProcessor;<a name="line.115"></a>
-<span class="sourceLineNo">116</span>import org.apache.thrift.protocol.TBinaryProtocol;<a name="line.116"></a>
-<span class="sourceLineNo">117</span>import org.apache.thrift.protocol.TCompactProtocol;<a name="line.117"></a>
-<span class="sourceLineNo">118</span>import org.apache.thrift.protocol.TProtocolFactory;<a name="line.118"></a>
-<span class="sourceLineNo">119</span>import org.apache.thrift.server.THsHaServer;<a name="line.119"></a>
-<span class="sourceLineNo">120</span>import org.apache.thrift.server.TNonblockingServer;<a name="line.120"></a>
-<span class="sourceLineNo">121</span>import org.apache.thrift.server.TServer;<a name="line.121"></a>
-<span class="sourceLineNo">122</span>import org.apache.thrift.server.TServlet;<a name="line.122"></a>
-<span class="sourceLineNo">123</span>import org.apache.thrift.server.TThreadedSelectorServer;<a name="line.123"></a>
-<span class="sourceLineNo">124</span>import org.apache.thrift.transport.TNonblockingServerSocket;<a name="line.124"></a>
-<span class="sourceLineNo">125</span>import org.apache.thrift.transport.TNonblockingServerTransport;<a name="line.125"></a>
-<span class="sourceLineNo">126</span>import org.apache.thrift.transport.TSaslServerTransport;<a name="line.126"></a>
-<span class="sourceLineNo">127</span>import org.apache.thrift.transport.TServerSocket;<a name="line.127"></a>
-<span class="sourceLineNo">128</span>import org.apache.thrift.transport.TServerTransport;<a name="line.128"></a>
-<span class="sourceLineNo">129</span>import org.apache.thrift.transport.TTransportFactory;<a name="line.129"></a>
-<span class="sourceLineNo">130</span>import org.apache.thrift.transport.layered.TFramedTransport;<a name="line.130"></a>
-<span class="sourceLineNo">131</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.131"></a>
-<span class="sourceLineNo">132</span>import org.slf4j.Logger;<a name="line.132"></a>
-<span class="sourceLineNo">133</span>import org.slf4j.LoggerFactory;<a name="line.133"></a>
-<span class="sourceLineNo">134</span><a name="line.134"></a>
-<span class="sourceLineNo">135</span>import org.apache.hbase.thirdparty.com.google.common.base.Joiner;<a name="line.135"></a>
-<span class="sourceLineNo">136</span>import org.apache.hbase.thirdparty.com.google.common.base.Splitter;<a name="line.136"></a>
-<span class="sourceLineNo">137</span>import org.apache.hbase.thirdparty.com.google.common.util.concurrent.ThreadFactoryBuilder;<a name="line.137"></a>
-<span class="sourceLineNo">138</span>import org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine;<a name="line.138"></a>
-<span class="sourceLineNo">139</span>import org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLineParser;<a name="line.139"></a>
-<span class="sourceLineNo">140</span>import org.apache.hbase.thirdparty.org.apache.commons.cli.DefaultParser;<a name="line.140"></a>
-<span class="sourceLineNo">141</span>import org.apache.hbase.thirdparty.org.apache.commons.cli.HelpFormatter;<a name="line.141"></a>
-<span class="sourceLineNo">142</span>import org.apache.hbase.thirdparty.org.apache.commons.cli.Options;<a name="line.142"></a>
-<span class="sourceLineNo">143</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.http.HttpVersion;<a name="line.143"></a>
-<span class="sourceLineNo">144</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.HttpConfiguration;<a name="line.144"></a>
-<span class="sourceLineNo">145</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.HttpConnectionFactory;<a name="line.145"></a>
-<span class="sourceLineNo">146</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.SecureRequestCustomizer;<a name="line.146"></a>
-<span class="sourceLineNo">147</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server;<a name="line.147"></a>
-<span class="sourceLineNo">148</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.ServerConnector;<a name="line.148"></a>
-<span class="sourceLineNo">149</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.SslConnectionFactory;<a name="line.149"></a>
-<span class="sourceLineNo">150</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletContextHandler;<a name="line.150"></a>
-<span class="sourceLineNo">151</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletHolder;<a name="line.151"></a>
-<span class="sourceLineNo">152</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.util.ssl.SslContextFactory;<a name="line.152"></a>
-<span class="sourceLineNo">153</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.util.thread.QueuedThreadPool;<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> * ThriftServer- this class starts up a Thrift server which implements the<a name="line.156"></a>
-<span class="sourceLineNo">157</span> * Hbase API specified in the Hbase.thrift IDL file. The server runs in an<a name="line.157"></a>
-<span class="sourceLineNo">158</span> * independent process.<a name="line.158"></a>
-<span class="sourceLineNo">159</span> */<a name="line.159"></a>
-<span class="sourceLineNo">160</span>@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.TOOLS)<a name="line.160"></a>
-<span class="sourceLineNo">161</span>public class ThriftServer  extends Configured implements Tool {<a name="line.161"></a>
-<span class="sourceLineNo">162</span><a name="line.162"></a>
-<span class="sourceLineNo">163</span>  private static final Logger LOG = LoggerFactory.getLogger(ThriftServer.class);<a name="line.163"></a>
+<span class="sourceLineNo">081</span>import java.security.PrivilegedAction;<a name="line.81"></a>
+<span class="sourceLineNo">082</span>import java.util.List;<a name="line.82"></a>
+<span class="sourceLineNo">083</span>import java.util.Map;<a name="line.83"></a>
+<span class="sourceLineNo">084</span>import java.util.concurrent.BlockingQueue;<a name="line.84"></a>
+<span class="sourceLineNo">085</span>import java.util.concurrent.ExecutorService;<a name="line.85"></a>
+<span class="sourceLineNo">086</span>import java.util.concurrent.LinkedBlockingQueue;<a name="line.86"></a>
+<span class="sourceLineNo">087</span>import java.util.concurrent.ThreadPoolExecutor;<a name="line.87"></a>
+<span class="sourceLineNo">088</span>import java.util.concurrent.TimeUnit;<a name="line.88"></a>
+<span class="sourceLineNo">089</span>import javax.security.auth.callback.Callback;<a name="line.89"></a>
+<span class="sourceLineNo">090</span>import javax.security.auth.callback.UnsupportedCallbackException;<a name="line.90"></a>
+<span class="sourceLineNo">091</span>import javax.security.sasl.AuthorizeCallback;<a name="line.91"></a>
+<span class="sourceLineNo">092</span>import javax.security.sasl.SaslServer;<a name="line.92"></a>
+<span class="sourceLineNo">093</span>import org.apache.commons.lang3.ArrayUtils;<a name="line.93"></a>
+<span class="sourceLineNo">094</span>import org.apache.hadoop.conf.Configuration;<a name="line.94"></a>
+<span class="sourceLineNo">095</span>import org.apache.hadoop.conf.Configured;<a name="line.95"></a>
+<span class="sourceLineNo">096</span>import org.apache.hadoop.hbase.HBaseConfiguration;<a name="line.96"></a>
+<span class="sourceLineNo">097</span>import org.apache.hadoop.hbase.HBaseInterfaceAudience;<a name="line.97"></a>
+<span class="sourceLineNo">098</span>import org.apache.hadoop.hbase.filter.ParseFilter;<a name="line.98"></a>
+<span class="sourceLineNo">099</span>import org.apache.hadoop.hbase.http.HttpServerUtil;<a name="line.99"></a>
+<span class="sourceLineNo">100</span>import org.apache.hadoop.hbase.http.InfoServer;<a name="line.100"></a>
+<span class="sourceLineNo">101</span>import org.apache.hadoop.hbase.log.HBaseMarkers;<a name="line.101"></a>
+<span class="sourceLineNo">102</span>import org.apache.hadoop.hbase.security.SaslUtil;<a name="line.102"></a>
+<span class="sourceLineNo">103</span>import org.apache.hadoop.hbase.security.SecurityUtil;<a name="line.103"></a>
+<span class="sourceLineNo">104</span>import org.apache.hadoop.hbase.security.UserProvider;<a name="line.104"></a>
+<span class="sourceLineNo">105</span>import org.apache.hadoop.hbase.thrift.generated.Hbase;<a name="line.105"></a>
+<span class="sourceLineNo">106</span>import org.apache.hadoop.hbase.util.DNS;<a name="line.106"></a>
+<span class="sourceLineNo">107</span>import org.apache.hadoop.hbase.util.EnvironmentEdgeManager;<a name="line.107"></a>
+<span class="sourceLineNo">108</span>import org.apache.hadoop.hbase.util.JvmPauseMonitor;<a name="line.108"></a>
+<span class="sourceLineNo">109</span>import org.apache.hadoop.hbase.util.Strings;<a name="line.109"></a>
+<span class="sourceLineNo">110</span>import org.apache.hadoop.hbase.util.VersionInfo;<a name="line.110"></a>
+<span class="sourceLineNo">111</span>import org.apache.hadoop.security.SaslRpcServer;<a name="line.111"></a>
+<span class="sourceLineNo">112</span>import org.apache.hadoop.security.UserGroupInformation;<a name="line.112"></a>
+<span class="sourceLineNo">113</span>import org.apache.hadoop.security.authorize.ProxyUsers;<a name="line.113"></a>
+<span class="sourceLineNo">114</span>import org.apache.hadoop.util.Shell.ExitCodeException;<a name="line.114"></a>
+<span class="sourceLineNo">115</span>import org.apache.hadoop.util.Tool;<a name="line.115"></a>
+<span class="sourceLineNo">116</span>import org.apache.hadoop.util.ToolRunner;<a name="line.116"></a>
+<span class="sourceLineNo">117</span>import org.apache.thrift.TProcessor;<a name="line.117"></a>
+<span class="sourceLineNo">118</span>import org.apache.thrift.protocol.TBinaryProtocol;<a name="line.118"></a>
+<span class="sourceLineNo">119</span>import org.apache.thrift.protocol.TCompactProtocol;<a name="line.119"></a>
+<span class="sourceLineNo">120</span>import org.apache.thrift.protocol.TProtocolFactory;<a name="line.120"></a>
+<span class="sourceLineNo">121</span>import org.apache.thrift.server.THsHaServer;<a name="line.121"></a>
+<span class="sourceLineNo">122</span>import org.apache.thrift.server.TNonblockingServer;<a name="line.122"></a>
+<span class="sourceLineNo">123</span>import org.apache.thrift.server.TServer;<a name="line.123"></a>
+<span class="sourceLineNo">124</span>import org.apache.thrift.server.TServlet;<a name="line.124"></a>
+<span class="sourceLineNo">125</span>import org.apache.thrift.server.TThreadedSelectorServer;<a name="line.125"></a>
+<span class="sourceLineNo">126</span>import org.apache.thrift.transport.TNonblockingServerSocket;<a name="line.126"></a>
+<span class="sourceLineNo">127</span>import org.apache.thrift.transport.TNonblockingServerTransport;<a name="line.127"></a>
+<span class="sourceLineNo">128</span>import org.apache.thrift.transport.TSaslServerTransport;<a name="line.128"></a>
+<span class="sourceLineNo">129</span>import org.apache.thrift.transport.TServerSocket;<a name="line.129"></a>
+<span class="sourceLineNo">130</span>import org.apache.thrift.transport.TServerTransport;<a name="line.130"></a>
+<span class="sourceLineNo">131</span>import org.apache.thrift.transport.TTransportFactory;<a name="line.131"></a>
+<span class="sourceLineNo">132</span>import org.apache.thrift.transport.layered.TFramedTransport;<a name="line.132"></a>
+<span class="sourceLineNo">133</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.133"></a>
+<span class="sourceLineNo">134</span>import org.slf4j.Logger;<a name="line.134"></a>
+<span class="sourceLineNo">135</span>import org.slf4j.LoggerFactory;<a name="line.135"></a>
+<span class="sourceLineNo">136</span><a name="line.136"></a>
+<span class="sourceLineNo">137</span>import org.apache.hbase.thirdparty.com.google.common.base.Joiner;<a name="line.137"></a>
+<span class="sourceLineNo">138</span>import org.apache.hbase.thirdparty.com.google.common.base.Splitter;<a name="line.138"></a>
+<span class="sourceLineNo">139</span>import org.apache.hbase.thirdparty.com.google.common.util.concurrent.ThreadFactoryBuilder;<a name="line.139"></a>
+<span class="sourceLineNo">140</span>import org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine;<a name="line.140"></a>
+<span class="sourceLineNo">141</span>import org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLineParser;<a name="line.141"></a>
+<span class="sourceLineNo">142</span>import org.apache.hbase.thirdparty.org.apache.commons.cli.DefaultParser;<a name="line.142"></a>
+<span class="sourceLineNo">143</span>import org.apache.hbase.thirdparty.org.apache.commons.cli.HelpFormatter;<a name="line.143"></a>
+<span class="sourceLineNo">144</span>import org.apache.hbase.thirdparty.org.apache.commons.cli.Options;<a name="line.144"></a>
+<span class="sourceLineNo">145</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.http.HttpVersion;<a name="line.145"></a>
+<span class="sourceLineNo">146</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.HttpConfiguration;<a name="line.146"></a>
+<span class="sourceLineNo">147</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.HttpConnectionFactory;<a name="line.147"></a>
+<span class="sourceLineNo">148</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.SecureRequestCustomizer;<a name="line.148"></a>
+<span class="sourceLineNo">149</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.Server;<a name="line.149"></a>
+<span class="sourceLineNo">150</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.ServerConnector;<a name="line.150"></a>
+<span class="sourceLineNo">151</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.server.SslConnectionFactory;<a name="line.151"></a>
+<span class="sourceLineNo">152</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletContextHandler;<a name="line.152"></a>
+<span class="sourceLineNo">153</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletHolder;<a name="line.153"></a>
+<span class="sourceLineNo">154</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.util.ssl.SslContextFactory;<a name="line.154"></a>
+<span class="sourceLineNo">155</span>import org.apache.hbase.thirdparty.org.eclipse.jetty.util.thread.QueuedThreadPool;<a name="line.155"></a>
+<span class="sourceLineNo">156</span><a name="line.156"></a>
+<span class="sourceLineNo">157</span>/**<a name="line.157"></a>
+<span class="sourceLineNo">158</span> * ThriftServer- this class starts up a Thrift server which implements the<a name="line.158"></a>
+<span class="sourceLineNo">159</span> * Hbase API specified in the Hbase.thrift IDL file. The server runs in an<a name="line.159"></a>
+<span class="sourceLineNo">160</span> * independent process.<a name="line.160"></a>
+<span class="sourceLineNo">161</span> */<a name="line.161"></a>
+<span class="sourceLineNo">162</span>@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.TOOLS)<a name="line.162"></a>
+<span class="sourceLineNo">163</span>public class ThriftServer  extends Configured implements Tool {<a name="line.163"></a>
 <span class="sourceLineNo">164</span><a name="line.164"></a>
-<span class="sourceLineNo">165</span><a name="line.165"></a>
+<span class="sourceLineNo">165</span>  private static final Logger LOG = LoggerFactory.getLogger(ThriftServer.class);<a name="line.165"></a>
 <span class="sourceLineNo">166</span><a name="line.166"></a>
-<span class="sourceLineNo">167</span>  protected Configuration conf;<a name="line.167"></a>
+<span class="sourceLineNo">167</span><a name="line.167"></a>
 <span class="sourceLineNo">168</span><a name="line.168"></a>
-<span class="sourceLineNo">169</span>  protected InfoServer infoServer;<a name="line.169"></a>
+<span class="sourceLineNo">169</span>  protected Configuration conf;<a name="line.169"></a>
 <span class="sourceLineNo">170</span><a name="line.170"></a>
-<span class="sourceLineNo">171</span>  protected TProcessor processor;<a name="line.171"></a>
+<span class="sourceLineNo">171</span>  protected InfoServer infoServer;<a name="line.171"></a>
 <span class="sourceLineNo">172</span><a name="line.172"></a>
-<span class="sourceLineNo">173</span>  protected ThriftMetrics metrics;<a name="line.173"></a>
-<span class="sourceLineNo">174</span>  protected HBaseServiceHandler hbaseServiceHandler;<a name="line.174"></a>
-<span class="sourceLineNo">175</span>  protected UserGroupInformation serviceUGI;<a name="line.175"></a>
-<span class="sourceLineNo">176</span>  protected UserGroupInformation httpUGI;<a name="line.176"></a>
-<span class="sourceLineNo">177</span>  protected boolean httpEnabled;<a name="line.177"></a>
-<span class="sourceLineNo">178</span><a name="line.178"></a>
-<span class="sourceLineNo">179</span>  protected SaslUtil.QualityOfProtection qop;<a name="line.179"></a>
-<span class="sourceLineNo">180</span>  protected String host;<a name="line.180"></a>
-<span class="sourceLineNo">181</span>  protected int listenPort;<a name="line.181"></a>
-<span class="sourceLineNo">182</span><a name="line.182"></a>
-<span class="sourceLineNo">183</span><a name="line.183"></a>
-<span class="sourceLineNo">184</span>  protected boolean securityEnabled;<a name="line.184"></a>
-<span class="sourceLineNo">185</span>  protected boolean doAsEnabled;<a name="line.185"></a>
-<span class="sourceLineNo">186</span><a name="line.186"></a>
-<span class="sourceLineNo">187</span>  protected JvmPauseMonitor pauseMonitor;<a name="line.187"></a>
+<span class="sourceLineNo">173</span>  protected TProcessor processor;<a name="line.173"></a>
+<span class="sourceLineNo">174</span><a name="line.174"></a>
+<span class="sourceLineNo">175</span>  protected ThriftMetrics metrics;<a name="line.175"></a>
+<span class="sourceLineNo">176</span>  protected HBaseServiceHandler hbaseServiceHandler;<a name="line.176"></a>
+<span class="sourceLineNo">177</span>  protected UserGroupInformation serviceUGI;<a name="line.177"></a>
+<span class="sourceLineNo">178</span>  protected UserGroupInformation httpUGI;<a name="line.178"></a>
+<span class="sourceLineNo">179</span>  protected boolean httpEnabled;<a name="line.179"></a>
+<span class="sourceLineNo">180</span><a name="line.180"></a>
+<span class="sourceLineNo">181</span>  protected SaslUtil.QualityOfProtection qop;<a name="line.181"></a>
+<span class="sourceLineNo">182</span>  protected String host;<a name="line.182"></a>
+<span class="sourceLineNo">183</span>  protected int listenPort;<a name="line.183"></a>
+<span class="sourceLineNo">184</span><a name="line.184"></a>
+<span class="sourceLineNo">185</span><a name="line.185"></a>
+<span class="sourceLineNo">186</span>  protected boolean securityEnabled;<a name="line.186"></a>
+<span class="sourceLineNo">187</span>  protected boolean doAsEnabled;<a name="line.187"></a>
 <span class="sourceLineNo">188</span><a name="line.188"></a>
-<span class="sourceLineNo">189</span>  protected volatile TServer tserver;<a name="line.189"></a>
-<span class="sourceLineNo">190</span>  protected volatile Server httpServer;<a name="line.190"></a>
-<span class="sourceLineNo">191</span><a name="line.191"></a>
-<span class="sourceLineNo">192</span><a name="line.192"></a>
-<span class="sourceLineNo">193</span>  //<a name="line.193"></a>
-<span class="sourceLineNo">194</span>  // Main program and support routines<a name="line.194"></a>
+<span class="sourceLineNo">189</span>  protected JvmPauseMonitor pauseMonitor;<a name="line.189"></a>
+<span class="sourceLineNo">190</span><a name="line.190"></a>
+<span class="sourceLineNo">191</span>  protected volatile TServer tserver;<a name="line.191"></a>
+<span class="sourceLineNo">192</span>  protected volatile Server httpServer;<a name="line.192"></a>
+<span class="sourceLineNo">193</span><a name="line.193"></a>
+<span class="sourceLineNo">194</span><a name="line.194"></a>
 <span class="sourceLineNo">195</span>  //<a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span>  public ThriftServer(Configuration conf) {<a name="line.197"></a>
-<span class="sourceLineNo">198</span>    this.conf = HBaseConfiguration.create(conf);<a name="line.198"></a>
-<span class="sourceLineNo">199</span>  }<a name="line.199"></a>
-<span class="sourceLineNo">200</span><a name="line.200"></a>
-<span class="sourceLineNo">201</span>  protected ThriftMetrics createThriftMetrics(Configuration conf) {<a name="line.201"></a>
-<span class="sourceLineNo">202</span>    return new ThriftMetrics(conf, ThriftMetrics.ThriftServerType.ONE);<a name="line.202"></a>
-<span class="sourceLineNo">203</span>  }<a name="line.203"></a>
-<span class="sourceLineNo">204</span><a name="line.204"></a>
-<span class="sourceLineNo">205</span>  protected void setupParamters() throws IOException {<a name="line.205"></a>
-<span class="sourceLineNo">206</span>    // login the server principal (if using secure Hadoop)<a name="line.206"></a>
-<span class="sourceLineNo">207</span>    UserProvider userProvider = UserProvider.instantiate(conf);<a name="line.207"></a>
-<span class="sourceLineNo">208</span>    securityEnabled = userProvider.isHadoopSecurityEnabled()<a name="line.208"></a>
-<span class="sourceLineNo">209</span>        &amp;&amp; userProvider.isHBaseSecurityEnabled();<a name="line.209"></a>
-<span class="sourceLineNo">210</span>    if (securityEnabled) {<a name="line.210"></a>
-<span class="sourceLineNo">211</span>      host = Strings.domainNamePointerToHostName(DNS.getDefaultHost(<a name="line.211"></a>
-<span class="sourceLineNo">212</span>          conf.get(THRIFT_DNS_INTERFACE_KEY, "default"),<a name="line.212"></a>
-<span class="sourceLineNo">213</span>          conf.get(THRIFT_DNS_NAMESERVER_KEY, "default")));<a name="line.213"></a>
-<span class="sourceLineNo">214</span>      userProvider.login(THRIFT_KEYTAB_FILE_KEY, THRIFT_KERBEROS_PRINCIPAL_KEY, host);<a name="line.214"></a>
-<span class="sourceLineNo">215</span><a name="line.215"></a>
-<span class="sourceLineNo">216</span>      // Setup the SPNEGO user for HTTP if configured<a name="line.216"></a>
-<span class="sourceLineNo">217</span>      String spnegoPrincipal = getSpengoPrincipal(conf, host);<a name="line.217"></a>
-<span class="sourceLineNo">218</span>      String spnegoKeytab = getSpnegoKeytab(conf);<a name="line.218"></a>
-<span class="sourceLineNo">219</span>      UserGroupInformation.setConfiguration(conf);<a name="line.219"></a>
-<span class="sourceLineNo">220</span>      // login the SPNEGO principal using UGI to avoid polluting the login user<a name="line.220"></a>
-<span class="sourceLineNo">221</span>      this.httpUGI = UserGroupInformation.loginUserFromKeytabAndReturnUGI(spnegoPrincipal,<a name="line.221"></a>
-<span class="sourceLineNo">222</span>        spnegoKeytab);<a name="line.222"></a>
-<span class="sourceLineNo">223</span>    }<a name="line.223"></a>
-<span class="sourceLineNo">224</span>    this.serviceUGI = userProvider.getCurrent().getUGI();<a name="line.224"></a>
-<span class="sourceLineNo">225</span>    if (httpUGI == null) {<a name="line.225"></a>
-<span class="sourceLineNo">226</span>      this.httpUGI = serviceUGI;<a name="line.226"></a>
-<span class="sourceLineNo">227</span>    }<a name="line.227"></a>
-<span class="sourceLineNo">228</span><a name="line.228"></a>
-<span class="sourceLineNo">229</span>    this.listenPort = conf.getInt(PORT_CONF_KEY, DEFAULT_LISTEN_PORT);<a name="line.229"></a>
-<span class="sourceLineNo">230</span>    this.metrics = createThriftMetrics(conf);<a name="line.230"></a>
-<span class="sourceLineNo">231</span>    this.pauseMonitor = new JvmPauseMonitor(conf, this.metrics.getSource());<a name="line.231"></a>
-<span class="sourceLineNo">232</span>    this.hbaseServiceHandler = createHandler(conf, userProvider);<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    this.hbaseServiceHandler.initMetrics(metrics);<a name="line.233"></a>
-<span class="sourceLineNo">234</span>    this.processor = createProcessor();<a name="line.234"></a>
-<span class="sourceLineNo">235</span><a name="line.235"></a>
-<span class="sourceLineNo">236</span>    httpEnabled = conf.getBoolean(USE_HTTP_CONF_KEY, false);<a name="line.236"></a>
-<span class="sourceLineNo">237</span>    doAsEnabled = conf.getBoolean(THRIFT_SUPPORT_PROXYUSER_KEY, false);<a name="line.237"></a>
-<span class="sourceLineNo">238</span>    if (doAsEnabled &amp;&amp; !httpEnabled) {<a name="line.238"></a>
-<span class="sourceLineNo">239</span>      LOG.warn("Fail to enable the doAs feature. " + USE_HTTP_CONF_KEY + " is not configured");<a name="line.239"></a>
-<span class="sourceLineNo">240</span>    }<a name="line.240"></a>
-<span class="sourceLineNo">241</span><a name="line.241"></a>
-<span class="sourceLineNo">242</span>    String strQop = conf.get(THRIFT_QOP_KEY);<a name="line.242"></a>
-<span class="sourceLineNo">243</span>    if (strQop != null) {<a name="line.243"></a>
-<span class="sourceLineNo">244</span>      this.qop = SaslUtil.getQop(strQop);<a name="line.244"></a>
-<span class="sourceLineNo">245</span>    }<a name="line.245"></a>
-<span class="sourceLineNo">246</span>    if (qop != null) {<a name="line.246"></a>
-<span class="sourceLineNo">247</span>      if (qop != SaslUtil.QualityOfProtection.AUTHENTICATION &amp;&amp;<a name="line.247"></a>
-<span class="sourceLineNo">248</span>          qop != SaslUtil.QualityOfProtection.INTEGRITY &amp;&amp;<a name="line.248"></a>
-<span class="sourceLineNo">249</span>          qop != SaslUtil.QualityOfProtection.PRIVACY) {<a name="line.249"></a>
-<span class="sourceLineNo">250</span>        throw new IOException(String.format("Invalid %s: It must be one of %s, %s, or %s.",<a name="line.250"></a>
-<span class="sourceLineNo">251</span>            THRIFT_QOP_KEY,<a name="line.251"></a>
-<span class="sourceLineNo">252</span>            SaslUtil.QualityOfProtection.AUTHENTICATION.name(),<a name="line.252"></a>
-<span class="sourceLineNo">253</span>            SaslUtil.QualityOfProtection.INTEGRITY.name(),<a name="line.253"></a>
-<span class="sourceLineNo">254</span>            SaslUtil.QualityOfProtection.PRIVACY.name()));<a name="line.254"></a>
-<span class="sourceLineNo">255</span>      }<a name="line.255"></a>
-<span class="sourceLineNo">256</span>      checkHttpSecurity(qop, conf);<a name="line.256"></a>
-<span class="sourceLineNo">257</span>      if (!securityEnabled) {<a name="line.257"></a>
-<span class="sourceLineNo">258</span>        throw new IOException("Thrift server must run in secure mode to support authentication");<a name="line.258"></a>
-<span class="sourceLineNo">259</span>      }<a name="line.259"></a>
-<span class="sourceLineNo">260</span>    }<a name="line.260"></a>
-<span class="sourceLineNo">261</span>    registerFilters(conf);<a name="line.261"></a>
-<span class="sourceLineNo">262</span>    pauseMonitor.start();<a name="line.262"></a>
-<span class="sourceLineNo">263</span>  }<a name="line.263"></a>
-<span class="sourceLineNo">264</span><a name="line.264"></a>
-<span class="sourceLineNo">265</span>  private String getSpengoPrincipal(Configuration conf, String host) throws IOException {<a name="line.265"></a>
-<span class="sourceLineNo">266</span>    String principal = conf.get(THRIFT_SPNEGO_PRINCIPAL_KEY);<a name="line.266"></a>
-<span class="sourceLineNo">267</span>    if (principal == null) {<a name="line.267"></a>
-<span class="sourceLineNo">268</span>      // We cannot use the Hadoop configuration deprecation handling here since<a name="line.268"></a>
-<span class="sourceLineNo">269</span>      // the THRIFT_KERBEROS_PRINCIPAL_KEY config is still valid for regular Kerberos<a name="line.269"></a>
-<span class="sourceLineNo">270</span>      // communication. The preference should be to use the THRIFT_SPNEGO_PRINCIPAL_KEY<a name="line.270"></a>
-<span class="sourceLineNo">271</span>      // config so that THRIFT_KERBEROS_PRINCIPAL_KEY doesn't control both backend<a name="line.271"></a>
-<span class="sourceLineNo">272</span>      // Kerberos principal and SPNEGO principal.<a name="line.272"></a>
-<span class="sourceLineNo">273</span>      LOG.info("Using deprecated {} config for SPNEGO principal. Use {} instead.",<a name="line.273"></a>
-<span class="sourceLineNo">274</span>        THRIFT_KERBEROS_PRINCIPAL_KEY, THRIFT_SPNEGO_PRINCIPAL_KEY);<a name="line.274"></a>
-<span class="sourceLineNo">275</span>      principal = conf.get(THRIFT_KERBEROS_PRINCIPAL_KEY);<a name="line.275"></a>
-<span class="sourceLineNo">276</span>    }<a name="line.276"></a>
-<span class="sourceLineNo">277</span>    // Handle _HOST in principal value<a name="line.277"></a>
-<span class="sourceLineNo">278</span>    return org.apache.hadoop.security.SecurityUtil.getServerPrincipal(principal, host);<a name="line.278"></a>
-<span class="sourceLineNo">279</span>  }<a name="line.279"></a>
-<span class="sourceLineNo">280</span><a name="line.280"></a>
-<span class="sourceLineNo">281</span>  private String getSpnegoKeytab(Configuration conf) {<a name="line.281"></a>
-<span class="sourceLineNo">282</span>    String keytab = conf.get(THRIFT_SPNEGO_KEYTAB_FILE_KEY);<a name="line.282"></a>
-<span class="sourceLineNo">283</span>    if (keytab == null) {<a name="line.283"></a>
-<span class="sourceLineNo">284</span>      // We cannot use the Hadoop configuration deprecation handling here since<a name="line.284"></a>
-<span class="sourceLineNo">285</span>      // the THRIFT_KEYTAB_FILE_KEY config is still valid for regular Kerberos<a name="line.285"></a>
-<span class="sourceLineNo">286</span>      // communication. The preference should be to use the THRIFT_SPNEGO_KEYTAB_FILE_KEY<a name="line.286"></a>
-<span class="sourceLineNo">287</span>      // config so that THRIFT_KEYTAB_FILE_KEY doesn't control both backend<a name="line.287"></a>
-<span class="sourceLineNo">288</span>      // Kerberos keytab and SPNEGO keytab.<a name="line.288"></a>
-<span class="sourceLineNo">289</span>      LOG.info("Using deprecated {} config for SPNEGO keytab. Use {} instead.",<a name="line.289"></a>
-<span class="sourceLineNo">290</span>        THRIFT_KEYTAB_FILE_KEY, THRIFT_SPNEGO_KEYTAB_FILE_KEY);<a name="line.290"></a>
-<span class="sourceLineNo">291</span>      keytab = conf.get(THRIFT_KEYTAB_FILE_KEY);<a name="line.291"></a>
-<span class="sourceLineNo">292</span>    }<a name="line.292"></a>
-<span class="sourceLineNo">293</span>    return keytab;<a name="line.293"></a>
-<span class="sourceLineNo">294</span>  }<a name="line.294"></a>
-<span class="sourceLineNo">295</span><a name="line.295"></a>
-<span class="sourceLineNo">296</span>  protected void startInfoServer() throws IOException {<a name="line.296"></a>
-<span class="sourceLineNo">297</span>    // Put up info server.<a name="line.297"></a>
-<span class="sourceLineNo">298</span>    int port = conf.getInt(THRIFT_INFO_SERVER_PORT , THRIFT_INFO_SERVER_PORT_DEFAULT);<a name="line.298"></a>
-<span class="sourceLineNo">299</span><a name="line.299"></a>
-<span class="sourceLineNo">300</span>    if (port &gt;= 0) {<a name="line.300"></a>
-<span class="sourceLineNo">301</span>      conf.setLong("startcode", EnvironmentEdgeManager.currentTime());<a name="line.301"></a>
-<span class="sourceLineNo">302</span>      String a = conf<a name="line.302"></a>
-<span class="sourceLineNo">303</span>          .get(THRIFT_INFO_SERVER_BINDING_ADDRESS, THRIFT_INFO_SERVER_BINDING_ADDRESS_DEFAULT);<a name="line.303"></a>
-<span class="sourceLineNo">304</span>      infoServer = new InfoServer("thrift", a, port, false, conf);<a name="line.304"></a>
-<span class="sourceLineNo">305</span>      infoServer.setAttribute("hbase.conf", conf);<a name="line.305"></a>
-<span class="sourceLineNo">306</span>      infoServer.setAttribute("hbase.thrift.server.type", metrics.getThriftServerType().name());<a name="line.306"></a>
-<span class="sourceLineNo">307</span>      infoServer.start();<a name="line.307"></a>
-<span class="sourceLineNo">308</span>    }<a name="line.308"></a>
-<span class="sourceLineNo">309</span>  }<a name="line.309"></a>
-<span class="sourceLineNo">310</span><a name="line.310"></a>
-<span class="sourceLineNo">311</span>  protected void checkHttpSecurity(SaslUtil.QualityOfProtection qop, Configuration conf) {<a name="line.311"></a>
-<span class="sourceLineNo">312</span>    if (qop == SaslUtil.QualityOfProtection.PRIVACY &amp;&amp;<a name="line.312"></a>
-<span class="sourceLineNo">313</span>        conf.getBoolean(USE_HTTP_CONF_KEY, false) &amp;&amp;<a name="line.313"></a>
-<span class="sourceLineNo">314</span>        !conf.getBoolean(THRIFT_SSL_ENABLED_KEY, false)) {<a name="line.314"></a>
-<span class="sourceLineNo">315</span>      throw new IllegalArgumentException("Thrift HTTP Server's QoP is privacy, but " +<a name="line.315"></a>
-<span class="sourceLineNo">316</span>          THRIFT_SSL_ENABLED_KEY + " is false");<a name="line.316"></a>
-<span class="sourceLineNo">317</span>    }<a name="line.317"></a>
-<span class="sourceLineNo">318</span>  }<a name="line.318"></a>
-<span class="sourceLineNo">319</span><a name="line.319"></a>
-<span class="sourceLineNo">320</span>  protected HBaseServiceHandler createHandler(Configuration conf, UserProvider userProvider)<a name="line.320"></a>
-<span class="sourceLineNo">321</span>      throws IOException {<a name="line.321"></a>
-<span class="sourceLineNo">322</span>    return new ThriftHBaseServiceHandler(conf, userProvider);<a name="line.322"></a>
-<span class="sourceLineNo">323</span>  }<a name="line.323"></a>
-<span class="sourceLineNo">324</span><a name="line.324"></a>
-<span class="sourceLineNo">325</span>  protected TProcessor createProcessor() {<a name="line.325"></a>
-<span class="sourceLineNo">326</span>    return new Hbase.Processor&lt;&gt;(<a name="line.326"></a>
-<span class="sourceLineNo">327</span>        HbaseHandlerMetricsProxy.newInstance((Hbase.Iface) hbaseServiceHandler, metrics, conf));<a name="line.327"></a>
-<span class="sourceLineNo">328</span>  }<a name="line.328"></a>
-<span class="sourceLineNo">329</span><a name="line.329"></a>
-<span class="sourceLineNo">330</span>  /**<a name="line.330"></a>
-<span class="sourceLineNo">331</span>   * the thrift server, not null means the server is started, for test only<a name="line.331"></a>
-<span class="sourceLineNo">332</span>   * @return the tServer<a name="line.332"></a>
-<span class="sourceLineNo">333</span>   */<a name="line.333"></a>
-<span class="sourceLineNo">334</span>  @InterfaceAudience.Private<a name="line.334"></a>
-<span class="sourceLineNo">335</span>  public TServer getTserver() {<a name="line.335"></a>
-<span class="sourceLineNo">336</span>    return tserver;<a name="line.336"></a>
-<span class="sourceLineNo">337</span>  }<a name="line.337"></a>
-<span class="sourceLineNo">338</span><a name="line.338"></a>
-<span class="sourceLineNo">339</span>  /**<a name="line.339"></a>
-<span class="sourceLineNo">340</span>   * the Jetty server, not null means the HTTP server is started, for test only<a name="line.340"></a>
-<span class="sourceLineNo">341</span>   * @return the http server<a name="line.341"></a>
-<span class="sourceLineNo">342</span>   */<a name="line.342"></a>
-<span class="sourceLineNo">343</span>  @InterfaceAudience.Private<a name="line.343"></a>
-<span class="sourceLineNo">344</span>  public Server getHttpServer() {<a name="line.344"></a>
-<span class="sourceLineNo">345</span>    return httpServer;<a name="line.345"></a>
-<span class="sourceLineNo">346</span>  }<a name="line.346"></a>
-<span class="sourceLineNo">347</span><a name="line.347"></a>
-<span class="sourceLineNo">348</span>  protected void printUsageAndExit(Options options, int exitCode)<a name="line.348"></a>
-<span class="sourceLineNo">349</span>      throws ExitCodeException {<a name="line.349"></a>
-<span class="sourceLineNo">350</span>    HelpFormatter formatter = new HelpFormatter();<a name="line.350"></a>
-<span class="sourceLineNo">351</span>    formatter.printHelp("Thrift", null, options,<a name="line.351"></a>
-<span class="sourceLineNo">352</span>        "To start the Thrift server run 'hbase-daemon.sh start thrift' or " +<a name="line.352"></a>
-<span class="sourceLineNo">353</span>        "'hbase thrift'\n" +<a name="line.353"></a>
-<span class="sourceLineNo">354</span>        "To shutdown the thrift server run 'hbase-daemon.sh stop " +<a name="line.354"></a>
-<span class="sourceLineNo">355</span>        "thrift' or send a kill signal to the thrift server pid",<a name="line.355"></a>
-<span class="sourceLineNo">356</span>        true);<a name="line.356"></a>
-<span class="sourceLineNo">357</span>    throw new ExitCodeException(exitCode, "");<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>   * Create a Servlet for the http server<a name="line.361"></a>
-<span class="sourceLineNo">362</span>   * @param protocolFactory protocolFactory<a name="line.362"></a>
-<span class="sourceLineNo">363</span>   * @return the servlet<a name="line.363"></a>
-<span class="sourceLineNo">364</span>   */<a name="line.364"></a>
-<span class="sourceLineNo">365</span>  protected TServlet createTServlet(TProtocolFactory protocolFactory) {<a name="line.365"></a>
-<span class="sourceLineNo">366</span>    return new ThriftHttpServlet(processor, protocolFactory, serviceUGI, httpUGI,<a name="line.366"></a>
-<span class="sourceLineNo">367</span>        hbaseServiceHandler, securityEnabled, doAsEnabled);<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>  /**<a name="line.370"></a>
-<span class="sourceLineNo">371</span>   * Setup an HTTP Server using Jetty to serve calls from THttpClient<a name="line.371"></a>
-<span class="sourceLineNo">372</span>   *<a name="line.372"></a>
-<span class="sourceLineNo">373</span>   * @throws IOException IOException<a name="line.373"></a>
-<span class="sourceLineNo">374</span>   */<a name="line.374"></a>
-<span class="sourceLineNo">375</span>  protected void setupHTTPServer() throws IOException {<a name="line.375"></a>
-<span class="sourceLineNo">376</span>    TProtocolFactory protocolFactory = new TBinaryProtocol.Factory();<a name="line.376"></a>
-<span class="sourceLineNo">377</span>    TServlet thriftHttpServlet = createTServlet(protocolFactory);<a name="line.377"></a>
-<span class="sourceLineNo">378</span><a name="line.378"></a>
-<span class="sourceLineNo">379</span>    // Set the default max thread number to 100 to limit<a name="line.379"></a>
-<span class="sourceLineNo">380</span>    // the number of concurrent requests so that Thrfit HTTP server doesn't OOM easily.<a name="line.380"></a>
-<span class="sourceLineNo">381</span>    // Jetty set the default max thread number to 250, if we don't set it.<a name="line.381"></a>
-<span class="sourceLineNo">382</span>    //<a name="line.382"></a>
-<span class="sourceLineNo">383</span>    // Our default min thread number 2 is the same as that used by Jetty.<a name="line.383"></a>
-<span class="sourceLineNo">384</span>    int minThreads = conf.getInt(HTTP_MIN_THREADS_KEY,<a name="line.384"></a>
-<span class="sourceLineNo">385</span>        conf.getInt(TBoundedThreadPoolServer.MIN_WORKER_THREADS_CONF_KEY,<a name="line.385"></a>
-<span class="sourceLineNo">386</span>            HTTP_MIN_THREADS_KEY_DEFAULT));<a name="line.386"></a>
-<span class="sourceLineNo">387</span>    int maxThreads = conf.getInt(HTTP_MAX_THREADS_KEY,<a name="line.387"></a>
-<span class="sourceLineNo">388</span>        conf.getInt(TBoundedThreadPoolServer.MAX_WORKER_THREADS_CONF_KEY,<a name="line.388"></a>
-<span class="sourceLineNo">389</span>            HTTP_MAX_THREADS_KEY_DEFAULT));<a name="line.389"></a>
-<span class="sourceLineNo">390</span>    QueuedThreadPool threadPool = new QueuedThreadPool(maxThreads);<a name="line.390"></a>
-<span class="sourceLineNo">391</span>    threadPool.setMinThreads(minThreads);<a name="line.391"></a>
-<span class="sourceLineNo">392</span>    httpServer = new Server(threadPool);<a name="line.392"></a>
-<span class="sourceLineNo">393</span><a name="line.393"></a>
-<span class="sourceLineNo">394</span>    // Context handler<a name="line.394"></a>
-<span class="sourceLineNo">395</span>    ServletContextHandler ctxHandler = new ServletContextHandler(httpServer, "/",<a name="line.395"></a>
-<span class="sourceLineNo">396</span>        ServletContextHandler.SESSIONS);<a name="line.396"></a>
-<span class="sourceLineNo">397</span>    ctxHandler.addServlet(new ServletHolder(thriftHttpServlet), "/*");<a name="line.397"></a>
-<span class="sourceLineNo">398</span>    HttpServerUtil.constrainHttpMethods(ctxHandler,<a name="line.398"></a>
-<span class="sourceLineNo">399</span>        conf.getBoolean(THRIFT_HTTP_ALLOW_OPTIONS_METHOD,<a name="line.399"></a>
-<span class="sourceLineNo">400</span>            THRIFT_HTTP_ALLOW_OPTIONS_METHOD_DEFAULT));<a name="line.400"></a>
-<span class="sourceLineNo">401</span><a name="line.401"></a>
-<span class="sourceLineNo">402</span>    // set up Jetty and run the embedded server<a name="line.402"></a>
-<span class="sourceLineNo">403</span>    HttpConfiguration httpConfig = new HttpConfiguration();<a name="line.403"></a>
-<span class="sourceLineNo">404</span>    httpConfig.setSecureScheme("https");<a name="line.404"></a>
-<span class="sourceLineNo">405</span>    httpConfig.setSecurePort(listenPort);<a name="line.405"></a>
-<span class="sourceLineNo">406</span>    httpConfig.setHeaderCacheSize(DEFAULT_HTTP_MAX_HEADER_SIZE);<a name="line.406"></a>
-<span class="sourceLineNo">407</span>    httpConfig.setRequestHeaderSize(DEFAULT_HTTP_MAX_HEADER_SIZE);<a name="line.407"></a>
-<span class="sourceLineNo">408</span>    httpConfig.setResponseHeaderSize(DEFAULT_HTTP_MAX_HEADER_SIZE);<a name="line.408"></a>
-<span class="sourceLineNo">409</span>    httpConfig.setSendServerVersion(false);<a name="line.409"></a>
-<span class="sourceLineNo">410</span>    httpConfig.setSendDateHeader(false);<a name="line.410"></a>
-<span class="sourceLineNo">411</span><a name="line.411"></a>
-<span class="sourceLineNo">412</span>    ServerConnector serverConnector;<a name="line.412"></a>
-<span class="sourceLineNo">413</span>    if(conf.getBoolean(THRIFT_SSL_ENABLED_KEY, false)) {<a name="line.413"></a>
-<span class="sourceLineNo">414</span>      HttpConfiguration httpsConfig = new HttpConfiguration(httpConfig);<a name="line.414"></a>
-<span class="sourceLineNo">415</span>      httpsConfig.addCustomizer(new SecureRequestCustomizer());<a name="line.415"></a>
-<span class="sourceLineNo">416</span><a name="line.416"></a>
-<span class="sourceLineNo">417</span>      SslContextFactory sslCtxFactory = new SslContextFactory();<a name="line.417"></a>
-<span class="sourceLineNo">418</span>      String keystore = conf.get(THRIFT_SSL_KEYSTORE_STORE_KEY);<a name="line.418"></a>
-<span class="sourceLineNo">419</span>      String password = HBaseConfiguration.getPassword(conf,<a name="line.419"></a>
-<span class="sourceLineNo">420</span>          THRIFT_SSL_KEYSTORE_PASSWORD_KEY, null);<a name="line.420"></a>
-<span class="sourceLineNo">421</span>      String keyPassword = HBaseConfiguration.getPassword(conf,<a name="line.421"></a>
-<span class="sourceLineNo">422</span>          THRIFT_SSL_KEYSTORE_KEYPASSWORD_KEY, password);<a name="line.422"></a>
-<span class="sourceLineNo">423</span>      sslCtxFactory.setKeyStorePath(keystore);<a name="line.423"></a>
-<span class="sourceLineNo">424</span>      sslCtxFactory.setKeyStorePassword(password);<a name="line.424"></a>
-<span class="sourceLineNo">425</span>      sslCtxFactory.setKeyManagerPassword(keyPassword);<a name="line.425"></a>
-<span class="sourceLineNo">426</span><a name="line.426"></a>
-<span class="sourceLineNo">427</span>      String[] excludeCiphers = conf.getStrings(<a name="line.427"></a>
-<span class="sourceLineNo">428</span>          THRIFT_SSL_EXCLUDE_CIPHER_SUITES_KEY, ArrayUtils.EMPTY_STRING_ARRAY);<a name="line.428"></a>
-<span class="sourceLineNo">429</span>      if (excludeCiphers.length != 0) {<a name="line.429"></a>
-<span class="sourceLineNo">430</span>        sslCtxFactory.setExcludeCipherSuites(excludeCiphers);<a name="line.430"></a>
-<span class="sourceLineNo">431</span>      }<a name="line.431"></a>
-<span class="sourceLineNo">432</span>      String[] includeCiphers = conf.getStrings(<a name="line.432"></a>
-<span class="sourceLineNo">433</span>          THRIFT_SSL_INCLUDE_CIPHER_SUITES_KEY, ArrayUtils.EMPTY_STRING_ARRAY);<a name="line.433"></a>
-<span class="sourceLineNo">434</span>      if (includeCiphers.length != 0) {<a name="line.434"></a>
-<span class="sourceLineNo">435</span>        sslCtxFactory.setIncludeCipherSuites(includeCiphers);<a name="line.435"></a>
-<span class="sourceLineNo">436</span>      }<a name="line.436"></a>
-<span class="sourceLineNo">437</span><a name="line.437"></a>
-<span class="sourceLineNo">438</span>      // Disable SSLv3 by default due to "Poodle" Vulnerability - CVE-2014-3566<a name="line.438"></a>
-<span class="sourceLineNo">439</span>      String[] excludeProtocols = conf.getStrings(<a name="line.439"></a>
-<span class="sourceLineNo">440</span>          THRIFT_SSL_EXCLUDE_PROTOCOLS_KEY, "SSLv3");<a name="line.440"></a>
-<span class="sourceLineNo">441</span>      if (excludeProtocols.length != 0) {<a name="line.441"></a>
-<span class="sourceLineNo">442</span>        sslCtxFactory.setExcludeProtocols(excludeProtocols);<a name="line.442"></a>
-<span class="sourceLineNo">443</span>      }<a name="line.443"></a>
-<span class="sourceLineNo">444</span>      String[] includeProtocols = conf.getStrings(<a name="line.444"></a>
-<span class="sourceLineNo">445</span>          THRIFT_SSL_INCLUDE_PROTOCOLS_KEY, ArrayUtils.EMPTY_STRING_ARRAY);<a name="line.445"></a>
-<span class="sourceLineNo">446</span>      if (includeProtocols.length != 0) {<a name="line.446"></a>
-<span class="sourceLineNo">447</span>        sslCtxFactory.setIncludeProtocols(includeProtocols);<a name="line.447"></a>
-<span class="sourceLineNo">448</span>      }<a name="line.448"></a>
-<span class="sourceLineNo">449</span><a name="line.449"></a>
-<span class="sourceLineNo">450</span>      serverConnector = new ServerConnector(httpServer,<a name="line.450"></a>
-<span class="sourceLineNo">451</span>          new SslConnectionFactory(sslCtxFactory, HttpVersion.HTTP_1_1.toString()),<a name="line.451"></a>
-<span class="sourceLineNo">452</span>          new HttpConnectionFactory(httpsConfig));<a name="line.452"></a>
-<span class="sourceLineNo">453</span>    } else {<a name="line.453"></a>
-<span class="sourceLineNo">454</span>      serverConnector = new ServerConnector(httpServer, new HttpConnectionFactory(httpConfig));<a name="line.454"></a>
-<span class="sourceLineNo">455</span>    }<a name="line.455"></a>
-<span class="sourceLineNo">456</span>    serverConnector.setPort(listenPort);<a name="line.456"></a>
-<span class="sourceLineNo">457</span>    serverConnector.setHost(getBindAddress(conf).getHostAddress());<a name="line.457"></a>
-<span class="sourceLineNo">458</span>    httpServer.addConnector(serverConnector);<a name="line.458"></a>
-<span class="sourceLineNo">459</span>    httpServer.setStopAtShutdown(true);<a name="line.459"></a>
-<span class="sourceLineNo">460</span><a name="line.460"></a>
-<span class="sourceLineNo">461</span>    if (doAsEnabled) {<a name="line.461"></a>
-<span class="sourceLineNo">462</span>      ProxyUsers.refreshSuperUserGroupsConfiguration(conf);<a name="line.462"></a>
-<span class="sourceLineNo">463</span>    }<a name="line.463"></a>
-<span class="sourceLineNo">464</span>    LOG.info("Starting Thrift HTTP Server on {}", Integer.toString(listenPort));<a name="line.464"></a>
-<span class="sourceLineNo">465</span>  }<a name="line.465"></a>
-<span class="sourceLineNo">466</span><a name="line.466"></a>
-<span class="sourceLineNo">467</span>  /**<a name="line.467"></a>
-<span class="sourceLineNo">468</span>   * Setting up the thrift TServer<a name="line.468"></a>
-<span class="sourceLineNo">469</span>   */<a name="line.469"></a>
-<span class="sourceLineNo">470</span>  protected void setupServer() throws Exception {<a name="line.470"></a>
-<span class="sourceLineNo">471</span>    // Construct correct ProtocolFactory<a name="line.471"></a>
-<span class="sourceLineNo">472</span>    TProtocolFactory protocolFactory = getProtocolFactory();<a name="line.472"></a>
-<span class="sourceLineNo">473</span><a name="line.473"></a>
-<span class="sourceLineNo">474</span>    ImplType implType = ImplType.getServerImpl(conf);<a name="line.474"></a>
-<span class="sourceLineNo">475</span>    TProcessor processorToUse = processor;<a name="line.475"></a>
-<span class="sourceLineNo">476</span><a name="line.476"></a>
-<span class="sourceLineNo">477</span>    // Construct correct TransportFactory<a name="line.477"></a>
-<span class="sourceLineNo">478</span>    TTransportFactory transportFactory;<a name="line.478"></a>
-<span class="sourceLineNo">479</span>    if (conf.getBoolean(FRAMED_CONF_KEY, FRAMED_CONF_DEFAULT) || implType.isAlwaysFramed) {<a name="line.479"></a>
-<span class="sourceLineNo">480</span>      if (qop != null) {<a name="line.480"></a>
-<span class="sourceLineNo">481</span>        throw new RuntimeException("Thrift server authentication"<a name="line.481"></a>
-<span class="sourceLineNo">482</span>            + " doesn't work with framed transport yet");<a name="line.482"></a>
-<span class="sourceLineNo">483</span>      }<a name="line.483"></a>
-<span class="sourceLineNo">484</span>      transportFactory = new TFramedTransport.Factory(<a name="line.484"></a>
-<span class="sourceLineNo">485</span>        conf.getInt(MAX_FRAME_SIZE_CONF_KEY, MAX_FRAME_SIZE_CONF_DEFAULT) * 1024 * 1024);<a name="line.485"></a>
-<span class="sourceLineNo">486</span>      LOG.debug("Using framed transport");<a name="line.486"></a>
-<span class="sourceLineNo">487</span>    } else if (qop == null) {<a name="line.487"></a>
-<span class="sourceLineNo">488</span>      transportFactory = new TTransportFactory();<a name="line.488"></a>
-<span class="sourceLineNo">489</span>    } else {<a name="line.489"></a>
-<span class="sourceLineNo">490</span>      // Extract the name from the principal<a name="line.490"></a>
-<span class="sourceLineNo">491</span>      String thriftKerberosPrincipal = conf.get(THRIFT_KERBEROS_PRINCIPAL_KEY);<a name="line.491"></a>
-<span class="sourceLineNo">492</span>      if (thriftKerberosPrincipal == null) {<a name="line.492"></a>
-<span class="sourceLineNo">493</span>        throw new IllegalArgumentException(THRIFT_KERBEROS_PRINCIPAL_KEY + " cannot be null");<a name="line.493"></a>
-<span class="sourceLineNo">494</span>      }<a name="line.494"></a>
-<span class="sourceLineNo">495</span>      String name = SecurityUtil.getUserFromPrincipal(thriftKerberosPrincipal);<a name="line.495"></a>
-<span class="sourceLineNo">496</span>      Map&lt;String, String&gt; saslProperties = SaslUtil.initSaslProperties(qop.name());<a name="line.496"></a>
-<span class="sourceLineNo">497</span>      TSaslServerTransport.Factory saslFactory = new TSaslServerTransport.Factory();<a name="line.497"></a>
-<span class="sourceLineNo">498</span>      saslFactory.addServerDefinition("GSSAPI", name, host, saslProperties,<a name="line.498"></a>
-<span class="sourceLineNo">499</span>          new SaslRpcServer.SaslGssCallbackHandler() {<a name="line.499"></a>
-<span class="sourceLineNo">500</span>            @Override<a name="line.500"></a>
-<span class="sourceLineNo">501</span>            public void handle(Callback[] callbacks)<a name="line.501"></a>
-<span class="sourceLineNo">502</span>                throws UnsupportedCallbackException {<a name="line.502"></a>
-<span class="sourceLineNo">503</span>              AuthorizeCallback ac = null;<a name="line.503"></a>
-<span class="sourceLineNo">504</span>              for (Callback callback : callbacks) {<a name="line.504"></a>
-<span class="sourceLineNo">505</span>                if (callback instanceof AuthorizeCallback) {<a name="line.505"></a>
-<span class="sourceLineNo">506</span>                  ac = (AuthorizeCallback) callback;<a name="line.506"></a>
-<span class="sourceLineNo">507</span>                } else {<a name="line.507"></a>
-<span class="sourceLineNo">508</span>                  throw new UnsupportedCallbackException(callback,<a name="line.508"></a>
-<span class="sourceLineNo">509</span>                      "Unrecognized SASL GSSAPI Callback");<a name="line.509"></a>
-<span class="sourceLineNo">510</span>                }<a name="line.510"></a>
-<span class="sourceLineNo">511</span>              }<a name="line.511"></a>
-<span class="sourceLineNo">512</span>              if (ac != null) {<a name="line.512"></a>
-<span class="sourceLineNo">513</span>                String authid = ac.getAuthenticationID();<a name="line.513"></a>
-<span class="sourceLineNo">514</span>                String authzid = ac.getAuthorizationID();<a name="line.514"></a>
-<span class="sourceLineNo">515</span>                if (!authid.equals(authzid)) {<a name="line.515"></a>
-<span class="sourceLineNo">516</span>                  ac.setAuthorized(false);<a name="line.516"></a>
-<span class="sourceLineNo">517</span>                } else {<a name="line.517"></a>
-<span class="sourceLineNo">518</span>                  ac.setAuthorized(true);<a name="line.518"></a>
-<span class="sourceLineNo">519</span>                  String userName = SecurityUtil.getUserFromPrincipal(authzid);<a name="line.519"></a>
-<span class="sourceLineNo">520</span>                  LOG.info("Effective user: {}", userName);<a name="line.520"></a>
-<span class="sourceLineNo">521</span>                  ac.setAuthorizedID(userName);<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>            }<a name="line.524"></a>
-<span class="sourceLineNo">525</span>          });<a name="line.525"></a>
-<span class="sourceLineNo">526</span>      transportFactory = saslFactory;<a name="line.526"></a>
-<span class="sourceLineNo">527</span><a name="line.527"></a>
-<span class="sourceLineNo">528</span>      // Create a processor wrapper, to get the caller<a name="line.528"></a>
-<span class="sourceLineNo">529</span>      processorToUse = (inProt, outProt) -&gt; {<a name="line.529"></a>
-<span class="sourceLineNo">530</span>        TSaslServerTransport saslServerTransport =<a name="line.530"></a>
-<span class="sourceLineNo">531</span>            (TSaslServerTransport)inProt.getTransport();<a name="line.531"></a>
-<span class="sourceLineNo">532</span>        SaslServer saslServer = saslServerTransport.getSaslServer();<a name="line.532"></a>
-<span class="sourceLineNo">533</span>        String principal = saslServer.getAuthorizationID();<a name="line.533"></a>
-<span class="sourceLineNo">534</span>        hbaseServiceHandler.setEffectiveUser(principal);<a name="line.534"></a>
-<span class="sourceLineNo">535</span>        processor.process(inProt, outProt);<a name="line.535"></a>
-<span class="sourceLineNo">536</span>      };<a name="line.536"></a>
-<span class="sourceLineNo">537</span>    }<a name="line.537"></a>
-<span class="sourceLineNo">538</span><a name="line.538"></a>
-<span class="sourceLineNo">539</span>    if (conf.get(BIND_CONF_KEY) != null &amp;&amp; !implType.canSpecifyBindIP) {<a name="line.539"></a>
-<span class="sourceLineNo">540</span>      LOG.error("Server types {} don't support IP address binding at the moment. See " +<a name="line.540"></a>
-<span class="sourceLineNo">541</span>              "https://issues.apache.org/jira/browse/HBASE-2155 for details.",<a name="line.541"></a>
-<span class="sourceLineNo">542</span>          Joiner.on(", ").join(ImplType.serversThatCannotSpecifyBindIP()));<a name="line.542"></a>
-<span class="sourceLineNo">543</span>      throw new RuntimeException("-" + BIND_CONF_KEY + " not supported with " + implType);<a name="line.543"></a>
-<span class="sourceLineNo">544</span>    }<a name="line.544"></a>
-<span class="sourceLineNo">545</span><a name="line.545"></a>
-<span class="sourceLineNo">546</span>    InetSocketAddress inetSocketAddress = new InetSocketAddress(getBindAddress(conf), listenPort);<a name="line.546"></a>
-<span class="sourceLineNo">547</span>    if (implType == ImplType.HS_HA || implType == ImplType.NONBLOCKING ||<a name="line.547"></a>
-<span class="sourceLineNo">548</span>        implType == ImplType.THREADED_SELECTOR) {<a name="line.548"></a>
-<span class="sourceLineNo">549</span>      TNonblockingServerTransport serverTransport = new TNonblockingServerSocket(inetSocketAddress);<a name="line.549"></a>
-<span class="sourceLineNo">550</span>      if (implType == ImplType.NONBLOCKING) {<a name="line.550"></a>
-<span class="sourceLineNo">551</span>        tserver = getTNonBlockingServer(serverTransport, protocolFactory, processorToUse,<a name="line.551"></a>
-<span class="sourceLineNo">552</span>            transportFactory, inetSocketAddress);<a name="line.552"></a>
-<span class="sourceLineNo">553</span>      } else if (implType == ImplType.HS_HA) {<a name="line.553"></a>
-<span class="sourceLineNo">554</span>        tserver = getTHsHaServer(serverTransport, protocolFactory, processorToUse, transportFactory,<a name="line.554"></a>
-<span class="sourceLineNo">555</span>            inetSocketAddress);<a name="line.555"></a>
-<span class="sourceLineNo">556</span>      } else { // THREADED_SELECTOR<a name="line.556"></a>
-<span class="sourceLineNo">557</span>        tserver = getTThreadedSelectorServer(serverTransport, protocolFactory, processorToUse,<a name="line.557"></a>
-<span class="sourceLineNo">558</span>            transportFactory, inetSocketAddress);<a name="line.558"></a>
-<span class="sourceLineNo">559</span>      }<a name="line.559"></a>
-<span class="sourceLineNo">560</span>      LOG.info("starting HBase {} server on {}", implType.simpleClassName(),<a name="line.560"></a>
-<span class="sourceLineNo">561</span>          Integer.toString(listenPort));<a name="line.561"></a>
-<span class="sourceLineNo">562</span>    } else if (implType == ImplType.THREAD_POOL) {<a name="line.562"></a>
-<span class="sourceLineNo">563</span>      this.tserver = getTThreadPoolServer(protocolFactory, processorToUse, transportFactory,<a name="line.563"></a>
-<span class="sourceLineNo">564</span>          inetSocketAddress);<a name="line.564"></a>
-<span class="sourceLineNo">565</span>    } else {<a name="line.565"></a>
-<span class="sourceLineNo">566</span>      throw new AssertionError("Unsupported Thrift server implementation: " +<a name="line.566"></a>
-<span class="sourceLineNo">567</span>          implType.simpleClassName());<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 sanity check that we instantiated the right type of server.<a name="line.570"></a>
-<span class="sourceLineNo">571</span>    if (tserver.getClass() != implType.serverClass) {<a name="line.571"></a>
-<span class="sourceLineNo">572</span>      throw new AssertionError("Expected to create Thrift server class " +<a name="line.572"></a>
-<span class="sourceLineNo">573</span>          implType.serverClass.getName() + " but got " +<a name="line.573"></a>
-<span class="sourceLineNo">574</span>          tserver.getClass().getName());<a name="line.574"></a>
-<span class="sourceLineNo">575</span>    }<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>  protected TServer getTNonBlockingServer(TNonblockingServerTransport serverTransport,<a name="line.578"></a>
-<span class="sourceLineNo">579</span>      TProtocolFactory protocolFactory, TProcessor processor, TTransportFactory transportFactory,<a name="line.579"></a>
-<span class="sourceLineNo">580</span>      InetSocketAddress inetSocketAddress) {<a name="line.580"></a>
-<span class="sourceLineNo">581</span>    LOG.info("starting HBase Nonblocking Thrift server on " + inetSocketAddress.toString());<a name="line.581"></a>
-<span class="sourceLineNo">582</span>    TNonblockingServer.Args serverArgs = new TNonblockingServer.Args(serverTransport);<a name="line.582"></a>
-<span class="sourceLineNo">583</span>    serverArgs.processor(processor);<a name="line.583"></a>
-<span class="sourceLineNo">584</span>    serverArgs.transportFactory(transportFactory);<a name="line.584"></a>
-<span class="sourceLineNo">585</span>    serverArgs.protocolFactory(protocolFactory);<a name="line.585"></a>
-<span class="sourceLineNo">586</span>    return new TNonblockingServer(serverArgs);<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>  protected TServer getTHsHaServer(TNonblockingServerTransport serverTransport,<a name="line.589"></a>
-<span class="sourceLineNo">590</span>      TProtocolFactory protocolFactory, TProcessor processor, TTransportFactory transportFactory,<a name="line.590"></a>
-<span class="sourceLineNo">591</span>      InetSocketAddress inetSocketAddress) {<a name="line.591"></a>
-<span class="sourceLineNo">592</span>    LOG.info("starting HBase HsHA Thrift server on " + inetSocketAddress.toString());<a name="line.592"></a>
-<span class="sourceLineNo">593</span>    THsHaServer.Args serverArgs = new THsHaServer.Args(serverTransport);<a name="line.593"></a>
-<span class="sourceLineNo">594</span>    int queueSize = conf.getInt(TBoundedThreadPoolServer.MAX_QUEUED_REQUESTS_CONF_KEY,<a name="line.594"></a>
-<span class="sourceLineNo">595</span>        TBoundedThreadPoolServer.DEFAULT_MAX_QUEUED_REQUESTS);<a name="line.595"></a>
-<span class="sourceLineNo">596</span>    CallQueue callQueue = new CallQueue(new LinkedBlockingQueue&lt;&gt;(queueSize), metrics);<a name="line.596"></a>
-<span class="sourceLineNo">597</span>    int workerThread = conf.getInt(TBoundedThreadPoolServer.MAX_WORKER_THREADS_CONF_KEY,<a name="line.597"></a>
-<span class="sourceLineNo">598</span>        serverArgs.getMaxWorkerThreads());<a name="line.598"></a>
-<span class="sourceLineNo">599</span>    ExecutorService executorService = createExecutor(<a name="line.599"></a>
-<span class="sourceLineNo">600</span>        callQueue, workerThread, workerThread);<a name="line.600"></a>
-<span class="sourceLineNo">601</span>    serverArgs.executorService(executorService).processor(processor)<a name="line.601"></a>
-<span class="sourceLineNo">602</span>        .transportFactory(transportFactory).protocolFactory(protocolFactory);<a name="line.602"></a>
-<span class="sourceLineNo">603</span>    return new THsHaServer(serverArgs);<a name="line.603"></a>
-<span class="sourceLineNo">604</span>  }<a name="line.604"></a>
-<span class="sourceLineNo">605</span><a name="line.605"></a>
-<span class="sourceLineNo">606</span>  protected TServer getTThreadedSelectorServer(TNonblockingServerTransport serverTransport,<a name="line.606"></a>
-<span class="sourceLineNo">607</span>      TProtocolFactory protocolFactory, TProcessor processor, TTransportFactory transportFactory,<a name="line.607"></a>
-<span class="sourceLineNo">608</span>      InetSocketAddress inetSocketAddress) {<a name="line.608"></a>
-<span class="sourceLineNo">609</span>    LOG.info("starting HBase ThreadedSelector Thrift server on " + inetSocketAddress.toString());<a name="line.609"></a>
-<span class="sourceLineNo">610</span>    TThreadedSelectorServer.Args serverArgs =<a name="line.610"></a>
-<span class="sourceLineNo">611</span>        new HThreadedSelectorServerArgs(serverTransport, conf);<a name="line.611"></a>
-<span class="sourceLineNo">612</span>    int queueSize = conf.getInt(TBoundedThreadPoolServer.MAX_QUEUED_REQUESTS_CONF_KEY,<a name="line.612"></a>
-<span class="sourceLineNo">613</span>        TBoundedThreadPoolServer.DEFAULT_MAX_QUEUED_REQUESTS);<a name="line.613"></a>
-<span class="sourceLineNo">614</span>    CallQueue callQueue = new CallQueue(new LinkedBlockingQueue&lt;&gt;(queueSize), metrics);<a name="line.614"></a>
-<span class="sourceLineNo">615</span>    int workerThreads = conf.getInt(TBoundedThreadPoolServer.MAX_WORKER_THREADS_CONF_KEY,<a name="line.615"></a>
-<span class="sourceLineNo">616</span>        serverArgs.getWorkerThreads());<a name="line.616"></a>
-<span class="sourceLineNo">617</span>    int selectorThreads = conf.getInt(THRIFT_SELECTOR_NUM, serverArgs.getSelectorThreads());<a name="line.617"></a>
-<span class="sourceLineNo">618</span>    serverArgs.selectorThreads(selectorThreads);<a name="line.618"></a>
-<span class="sourceLineNo">619</span>    ExecutorService executorService = createExecutor(<a name="line.619"></a>
-<span class="sourceLineNo">620</span>        callQueue, workerThreads, workerThreads);<a name="line.620"></a>
-<span class="sourceLineNo">621</span>    serverArgs.executorService(executorService).processor(processor)<a name="line.621"></a>
-<span class="sourceLineNo">622</span>        .transportFactory(transportFactory).protocolFactory(protocolFactory);<a name="line.622"></a>
-<span class="sourceLineNo">623</span>    return new TThreadedSelectorServer(serverArgs);<a name="line.623"></a>
-<span class="sourceLineNo">624</span>  }<a name="line.624"></a>
-<span class="sourceLineNo">625</span><a name="line.625"></a>
-<span class="sourceLineNo">626</span>  protected TServer getTThreadPoolServer(TProtocolFactory protocolFactory, TProcessor processor,<a name="line.626"></a>
-<span class="sourceLineNo">627</span>      TTransportFactory transportFactory, InetSocketAddress inetSocketAddress) throws Exception {<a name="line.627"></a>
-<span class="sourceLineNo">628</span>    LOG.info("starting HBase ThreadPool Thrift server on " + inetSocketAddress.toString());<a name="line.628"></a>
-<span class="sourceLineNo">629</span>    // Thrift's implementation uses '0' as a placeholder for 'use the default.'<a name="line.629"></a>
-<span class="sourceLineNo">630</span>    int backlog = conf.getInt(BACKLOG_CONF_KEY, BACKLOG_CONF_DEAFULT);<a name="line.630"></a>
-<span class="sourceLineNo">631</span>    int readTimeout = conf.getInt(THRIFT_SERVER_SOCKET_READ_TIMEOUT_KEY,<a name="line.631"></a>
-<span class="sourceLineNo">632</span>        THRIFT_SERVER_SOCKET_READ_TIMEOUT_DEFAULT);<a name="line.632"></a>
-<span class="sourceLineNo">633</span>    TServerTransport serverTransport = new TServerSocket(<a name="line.633"></a>
-<span class="sourceLineNo">634</span>        new TServerSocket.ServerSocketTransportArgs().<a name="line.634"></a>
-<span class="sourceLineNo">635</span>            bindAddr(inetSocketAddress).backlog(backlog).<a name="line.635"></a>
-<span class="sourceLineNo">636</span>            clientTimeout(readTimeout));<a name="line.636"></a>
-<span class="sourceLineNo">637</span><a name="line.637"></a>
-<span class="sourceLineNo">638</span>    TBoundedThreadPoolServer.Args serverArgs =<a name="line.638"></a>
-<span class="sourceLineNo">639</span>        new TBoundedThreadPoolServer.Args(serverTransport, conf);<a name="line.639"></a>
-<span class="sourceLineNo">640</span>    serverArgs.processor(processor).transportFactory(transportFactory)<a name="line.640"></a>
-<span class="sourceLineNo">641</span>        .protocolFactory(protocolFactory);<a name="line.641"></a>
-<span class="sourceLineNo">642</span>    return new TBoundedThreadPoolServer(serverArgs, metrics);<a name="line.642"></a>
-<span class="sourceLineNo">643</span>  }<a name="line.643"></a>
-<span class="sourceLineNo">644</span><a name="line.644"></a>
-<span class="sourceLineNo">645</span>  protected TProtocolFactory getProtocolFactory() {<a name="line.645"></a>
-<span class="sourceLineNo">646</span>    TProtocolFactory protocolFactory;<a name="line.646"></a>
-<span class="sourceLineNo">647</span><a name="line.647"></a>
-<span class="sourceLineNo">648</span>    if (conf.getBoolean(COMPACT_CONF_KEY, COMPACT_CONF_DEFAULT)) {<a name="line.648"></a>
-<span class="sourceLineNo">649</span>      LOG.debug("Using compact protocol");<a name="line.649"></a>
-<span class="sourceLineNo">650</span>      protocolFactory = new TCompactProtocol.Factory();<a name="line.650"></a>
-<span class="sourceLineNo">651</span>    } else {<a name="line.651"></a>
-<span class="sourceLineNo">652</span>      LOG.debug("Using binary protocol");<a name="line.652"></a>
-<span class="sourceLineNo">653</span>      protocolFactory = new TBinaryProtocol.Factory();<a name="line.653"></a>
-<span class="sourceLineNo">654</span>    }<a name="line.654"></a>
-<span class="sourceLineNo">655</span><a name="line.655"></a>
-<span class="sourceLineNo">656</span>    return protocolFactory;<a name="line.656"></a>
-<span class="sourceLineNo">657</span>  }<a name="line.657"></a>
-<span class="sourceLineNo">658</span><a name="line.658"></a>
-<span class="sourceLineNo">659</span>  protected ExecutorService createExecutor(BlockingQueue&lt;Runnable&gt; callQueue,<a name="line.659"></a>
-<span class="sourceLineNo">660</span>      int minWorkers, int maxWorkers) {<a name="line.660"></a>
-<span class="sourceLineNo">661</span>    ThreadFactoryBuilder tfb = new ThreadFactoryBuilder();<a name="line.661"></a>
-<span class="sourceLineNo">662</span>    tfb.setDaemon(true);<a name="line.662"></a>
-<span class="sourceLineNo">663</span>    tfb.setNameFormat("thrift-worker-%d");<a name="line.663"></a>
-<span class="sourceLineNo">664</span>    ThreadPoolExecutor threadPool = new THBaseThreadPoolExecutor(minWorkers, maxWorkers,<a name="line.664"></a>
-<span class="sourceLineNo">665</span>        Long.MAX_VALUE, TimeUnit.SECONDS, callQueue, tfb.build(), metrics);<a name="line.665"></a>
-<span class="sourceLineNo">666</span>    threadPool.allowCoreThreadTimeOut(true);<a name="line.666"></a>
-<span class="sourceLineNo">667</span>    return threadPool;<a name="line.667"></a>
-<span class="sourceLineNo">668</span>  }<a name="line.668"></a>
-<span class="sourceLineNo">669</span><a name="line.669"></a>
-<span class="sourceLineNo">670</span>  protected InetAddress getBindAddress(Configuration conf)<a name="line.670"></a>
-<span class="sourceLineNo">671</span>      throws UnknownHostException {<a name="line.671"></a>
-<span class="sourceLineNo">672</span>    String bindAddressStr = conf.get(BIND_CONF_KEY, DEFAULT_BIND_ADDR);<a name="line.672"></a>
-<span class="sourceLineNo">673</span>    return InetAddress.getByName(bindAddressStr);<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><a name="line.676"></a>
-<span class="sourceLineNo">677</span>  public static void registerFilters(Configuration conf) {<a name="line.677"></a>
-<span class="sourceLineNo">678</span>    String[] filters = conf.getStrings(THRIFT_FILTERS);<a name="line.678"></a>
-<span class="sourceLineNo">679</span>    Splitter splitter = Splitter.on(':');<a name="line.679"></a>
-<span class="sourceLineNo">680</span>    if(filters != null) {<a name="line.680"></a>
-<span class="sourceLineNo">681</span>      for(String filterClass: filters) {<a name="line.681"></a>
-<span class="sourceLineNo">682</span>        List&lt;String&gt; filterPart = splitter.splitToList(filterClass);<a name="line.682"></a>
-<span class="sourceLineNo">683</span>        if(filterPart.size() != 2) {<a name="line.683"></a>
-<span class="sourceLineNo">684</span>          LOG.warn("Invalid filter specification " + filterClass + " - skipping");<a name="line.684"></a>
-<span class="sourceLineNo">685</span>        } else {<a name="line.685"></a>
-<span class="sourceLineNo">686</span>          ParseFilter.registerFilter(filterPart.get(0), filterPart.get(1));<a name="line.686"></a>
-<span class="sourceLineNo">687</span>        }<a name="line.687"></a>
-<span class="sourceLineNo">688</span>      }<a name="line.688"></a>
-<span class="sourceLineNo">689</span>    }<a name="line.689"></a>
-<span class="sourceLineNo">690</span>  }<a name="line.690"></a>
-<span class="sourceLineNo">691</span><a name="line.691"></a>
-<span class="sourceLineNo">692</span>  /**<a name="line.692"></a>
-<span class="sourceLineNo">693</span>   * Add options to command lines<a name="line.693"></a>
-<span class="sourceLineNo">694</span>   * @param options options<a name="line.694"></a>
-<span class="sourceLineNo">695</span>   */<a name="line.695"></a>
-<span class="sourceLineNo">696</span>  protected void addOptions(Options options) {<a name="line.696"></a>
-<span class="sourceLineNo">697</span>    options.addOption("b", BIND_OPTION, true, "Address to bind " +<a name="line.697"></a>
-<span class="sourceLineNo">698</span>        "the Thrift server to. [default: " + DEFAULT_BIND_ADDR + "]");<a name="line.698"></a>
-<span class="sourceLineNo">699</span>    options.addOption("p", PORT_OPTION, true, "Port to bind to [default: " +<a name="line.699"></a>
-<span class="sourceLineNo">700</span>        DEFAULT_LISTEN_PORT + "]");<a name="line.700"></a>
-<span class="sourceLineNo">701</span>    options.addOption("f", FRAMED_OPTION, false, "Use framed transport");<a name="line.701"></a>
-<span class="sourceLineNo">702</span>    options.addOption("c", COMPACT_OPTION, false, "Use the compact protocol");<a name="line.702"></a>
-<span class="sourceLineNo">703</span>    options.addOption("h", "help", false, "Print help information");<a name="line.703"></a>
-<span class="sourceLineNo">704</span>    options.addOption("s", SELECTOR_NUM_OPTION, true, "How many selector threads to use.");<a name="line.704"></a>
-<span class="sourceLineNo">705</span>    options.addOption(null, INFOPORT_OPTION, true, "Port for web UI");<a name="line.705"></a>
-<span class="sourceLineNo">706</span><a name="line.706"></a>
-<span class="sourceLineNo">707</span>    options.addOption("m", MIN_WORKERS_OPTION, true,<a name="line.707"></a>
-<span class="sourceLineNo">708</span>        "The minimum number of worker threads for " +<a name="line.708"></a>
-<span class="sourceLineNo">709</span>            ImplType.THREAD_POOL.simpleClassName());<a name="line.709"></a>
-<span class="sourceLineNo">710</span><a name="line.710"></a>
-<span class="sourceLineNo">711</span>    options.addOption("w", MAX_WORKERS_OPTION, true,<a name="line.711"></a>
-<span class="sourceLineNo">712</span>        "The maximum number of worker threads for " +<a name="line.712"></a>
-<span class="sourceLineNo">713</span>            ImplType.THREAD_POOL.simpleClassName());<a name="line.713"></a>
-<span class="sourceLineNo">714</span><a name="line.714"></a>
-<span class="sourceLineNo">715</span>    options.addOption("q", MAX_QUEUE_SIZE_OPTION, true,<a name="line.715"></a>
-<span class="sourceLineNo">716</span>        "The maximum number of queued requests in " +<a name="line.716"></a>
-<span class="sourceLineNo">717</span>            ImplType.THREAD_POOL.simpleClassName());<a name="line.717"></a>
-<span class="sourceLineNo">718</span><a name="line.718"></a>
-<span class="sourceLineNo">719</span>    options.addOption("k", KEEP_ALIVE_SEC_OPTION, true,<a name="line.719"></a>
-<span class="sourceLineNo">720</span>        "The amount of time in secods to keep a thread alive when idle in " +<a name="line.720"></a>
-<span class="sourceLineNo">721</span>            ImplType.THREAD_POOL.simpleClassName());<a name="line.721"></a>
-<span class="sourceLineNo">722</span><a name="line.722"></a>
-<span class="sourceLineNo">723</span>    options.addOption("t", READ_TIMEOUT_OPTION, true,<a name="line.723"></a>
-<span class="sourceLineNo">724</span>        "Amount of time in milliseconds before a server thread will timeout " +<a name="line.724"></a>
-<span class="sourceLineNo">725</span>            "waiting for client to send data on a connected socket. Currently, " +<a name="line.725"></a>
-<span class="sourceLineNo">726</span>            "only applies to TBoundedThreadPoolServer");<a name="line.726"></a>
-<span class="sourceLineNo">727</span><a name="line.727"></a>
-<span class="sourceLineNo">728</span>    options.addOptionGroup(ImplType.createOptionGroup());<a name="line.728"></a>
-<span class="sourceLineNo">729</span>  }<a name="line.729"></a>
-<span class="sourceLineNo">730</span><a name="line.730"></a>
-<span class="sourceLineNo">731</span>  protected void parseCommandLine(CommandLine cmd, Options options) throws ExitCodeException {<a name="line.731"></a>
-<span class="sourceLineNo">732</span>    // Get port to bind to<a name="line.732"></a>
-<span class="sourceLineNo">733</span>    try {<a name="line.733"></a>
-<span class="sourceLineNo">734</span>      if (cmd.hasOption(PORT_OPTION)) {<a name="line.734"></a>
-<span class="sourceLineNo">735</span>        int listenPort = Integer.parseInt(cmd.getOptionValue(PORT_OPTION));<a name="line.735"></a>
-<span class="sourceLineNo">736</span>        conf.setInt(PORT_CONF_KEY, listenPort);<a name="line.736"></a>
-<span class="sourceLineNo">737</span>      }<a name="line.737"></a>
-<span class="sourceLineNo">738</span>    } catch (NumberFormatException e) {<a name="line.738"></a>
-<span class="sourceLineNo">739</span>      LOG.error("Could not parse the value provided for the port option", e);<a name="line.739"></a>
-<span class="sourceLineNo">740</span>      printUsageAndExit(options, -1);<a name="line.740"></a>
-<span class="sourceLineNo">741</span>    }<a name="line.741"></a>
-<span class="sourceLineNo">742</span>    // check for user-defined info server port setting, if so override the conf<a name="line.742"></a>
-<span class="sourceLineNo">743</span>    try {<a name="line.743"></a>
-<span class="sourceLineNo">744</span>      if (cmd.hasOption(INFOPORT_OPTION)) {<a name="line.744"></a>
-<span class="sourceLineNo">745</span>        String val = cmd.getOptionValue(INFOPORT_OPTION);<a name="line.745"></a>
-<span class="sourceLineNo">746</span>        conf.setInt(THRIFT_INFO_SERVER_PORT, Integer.parseInt(val));<a name="line.746"></a>
-<span class="sourceLineNo">747</span>        LOG.debug("Web UI port set to " + val);<a name="line.747"></a>
-<span class="sourceLineNo">748</span>      }<a name="line.748"></a>
-<span class="sourceLineNo">749</span>    } catch (NumberFormatException e) {<a name="line.749"></a>
-<span class="sourceLineNo">750</span>      LOG.error("Could not parse the value provided for the " + INFOPORT_OPTION +<a name="line.750"></a>
-<span class="sourceLineNo">751</span>          " option", e);<a name="line.751"></a>
-<span class="sourceLineNo">752</span>      printUsageAndExit(options, -1);<a name="line.752"></a>
-<span class="sourceLineNo">753</span>    }<a name="line.753"></a>
-<span class="sourceLineNo">754</span>    // Make optional changes to the configuration based on command-line options<a name="line.754"></a>
-<span class="sourceLineNo">755</span>    optionToConf(cmd, MIN_WORKERS_OPTION,<a name="line.755"></a>
-<span class="sourceLineNo">756</span>        conf, TBoundedThreadPoolServer.MIN_WORKER_THREADS_CONF_KEY);<a name="line.756"></a>
-<span class="sourceLineNo">757</span>    optionToConf(cmd, MAX_WORKERS_OPTION,<a name="line.757"></a>
-<span class="sourceLineNo">758</span>        conf, TBoundedThreadPoolServer.MAX_WORKER_THREADS_CONF_KEY);<a name="line.758"></a>
-<span class="sourceLineNo">759</span>    optionToConf(cmd, MAX_QUEUE_SIZE_OPTION,<a name="line.759"></a>
-<span class="sourceLineNo">760</span>        conf, TBoundedThreadPoolServer.MAX_QUEUED_REQUESTS_CONF_KEY);<a name="line.760"></a>
-<span class="sourceLineNo">761</span>    optionToConf(cmd, KEEP_ALIVE_SEC_OPTION,<a name="line.761"></a>
-<span class="sourceLineNo">762</span>        conf, TBoundedThreadPoolServer.THREAD_KEEP_ALIVE_TIME_SEC_CONF_KEY);<a name="line.762"></a>
-<span class="sourceLineNo">763</span>    optionToConf(cmd, READ_TIMEOUT_OPTION, conf, THRIFT_SERVER_SOCKET_READ_TIMEOUT_KEY);<a name="line.763"></a>
-<span class="sourceLineNo">764</span>    optionToConf(cmd, SELECTOR_NUM_OPTION, conf, THRIFT_SELECTOR_NUM);<a name="line.764"></a>
-<span class="sourceLineNo">765</span><a name="line.765"></a>
-<span class="sourceLineNo">766</span>    // Set general thrift server options<a name="line.766"></a>
-<span class="sourceLineNo">767</span>    boolean compact = cmd.hasOption(COMPACT_OPTION) ||<a name="line.767"></a>
-<span class="sourceLineNo">768</span>        conf.getBoolean(COMPACT_CONF_KEY, false);<a name="line.768"></a>
-<span class="sourceLineNo">769</span>    conf.setBoolean(COMPACT_CONF_KEY, compact);<a name="line.769"></a>
-<span class="sourceLineNo">770</span>    boolean framed = cmd.hasOption(FRAMED_OPTION) ||<a name="line.770"></a>
-<span class="sourceLineNo">771</span>        conf.getBoolean(FRAMED_CONF_KEY, false);<a name="line.771"></a>
-<span class="sourceLineNo">772</span>    conf.setBoolean(FRAMED_CONF_KEY, framed);<a name="line.772"></a>
-<span class="sourceLineNo">773</span><a name="line.773"></a>
-<span class="sourceLineNo">774</span>    optionToConf(cmd, BIND_OPTION, conf, BIND_CONF_KEY);<a name="line.774"></a>
+<span class="sourceLineNo">196</span>  // Main program and support routines<a name="line.196"></a>
+<span class="sourceLineNo">197</span>  //<a name="line.197"></a>
+<span class="sourceLineNo">198</span><a name="line.198"></a>
+<span class="sourceLineNo">199</span>  public ThriftServer(Configuration conf) {<a name="line.199"></a>
+<span class="sourceLineNo">200</span>    this.conf = HBaseConfiguration.create(conf);<a name="line.200"></a>
+<span class="sourceLineNo">201</span>  }<a name="line.201"></a>
+<span class="sourceLineNo">202</span><a name="line.202"></a>
+<span class="sourceLineNo">203</span>  protected ThriftMetrics createThriftMetrics(Configuration conf) {<a name="line.203"></a>
+<span class="sourceLineNo">204</span>    return new ThriftMetrics(conf, ThriftMetrics.ThriftServerType.ONE);<a name="line.204"></a>
+<span class="sourceLineNo">205</span>  }<a name="line.205"></a>
+<span class="sourceLineNo">206</span><a name="line.206"></a>
+<span class="sourceLineNo">207</span>  protected void setupParamters() throws IOException {<a name="line.207"></a>
+<span class="sourceLineNo">208</span>    // login the server principal (if using secure Hadoop)<a name="line.208"></a>
+<span class="sourceLineNo">209</span>    UserProvider userProvider = UserProvider.instantiate(conf);<a name="line.209"></a>
+<span class="sourceLineNo">210</span>    securityEnabled = userProvider.isHadoopSecurityEnabled()<a name="line.210"></a>
+<span class="sourceLineNo">211</span>        &amp;&amp; userProvider.isHBaseSecurityEnabled();<a name="line.211"></a>
+<span class="sourceLineNo">212</span>    if (securityEnabled) {<a name="line.212"></a>
+<span class="sourceLineNo">213</span>      host = Strings.domainNamePointerToHostName(DNS.getDefaultHost(<a name="line.213"></a>
+<span class="sourceLineNo">214</span>          conf.get(THRIFT_DNS_INTERFACE_KEY, "default"),<a name="line.214"></a>
+<span class="sourceLineNo">215</span>          conf.get(THRIFT_DNS_NAMESERVER_KEY, "default")));<a name="line.215"></a>
+<span class="sourceLineNo">216</span>      userProvider.login(THRIFT_KEYTAB_FILE_KEY, THRIFT_KERBEROS_PRINCIPAL_KEY, host);<a name="line.216"></a>
+<span class="sourceLineNo">217</span><a name="line.217"></a>
+<span class="sourceLineNo">218</span>      // Setup the SPNEGO user for HTTP if configured<a name="line.218"></a>
+<span class="sourceLineNo">219</span>      String spnegoPrincipal = getSpengoPrincipal(conf, host);<a name="line.219"></a>
+<span class="sourceLineNo">220</span>      String spnegoKeytab = getSpnegoKeytab(conf);<a name="line.220"></a>
+<span class="sourceLineNo">221</span>      UserGroupInformation.setConfiguration(conf);<a name="line.221"></a>
+<span class="sourceLineNo">222</span>      // login the SPNEGO principal using UGI to avoid polluting the login user<a name="line.222"></a>
+<span class="sourceLineNo">223</span>      this.httpUGI = UserGroupInformation.loginUserFromKeytabAndReturnUGI(spnegoPrincipal,<a name="line.223"></a>
+<span class="sourceLineNo">224</span>        spnegoKeytab);<a name="line.224"></a>
+<span class="sourceLineNo">225</span>    }<a name="line.225"></a>
+<span class="sourceLineNo">226</span>    this.serviceUGI = userProvider.getCurrent().getUGI();<a name="line.226"></a>
+<span class="sourceLineNo">227</span>    if (httpUGI == null) {<a name="line.227"></a>
+<span class="sourceLineNo">228</span>      this.httpUGI = serviceUGI;<a name="line.228"></a>
+<span class="sourceLineNo">229</span>    }<a name="line.229"></a>
+<span class="sourceLineNo">230</span><a name="line.230"></a>
+<span class="sourceLineNo">231</span>    this.listenPort = conf.getInt(PORT_CONF_KEY, DEFAULT_LISTEN_PORT);<a name="line.231"></a>
+<span class="sourceLineNo">232</span>    this.metrics = createThriftMetrics(conf);<a name="line.232"></a>
+<span class="sourceLineNo">233</span>    this.pauseMonitor = new JvmPauseMonitor(conf, this.metrics.getSource());<a name="line.233"></a>
+<span class="sourceLineNo">234</span>    this.hbaseServiceHandler = createHandler(conf, userProvider);<a name="line.234"></a>
+<span class="sourceLineNo">235</span>    this.hbaseServiceHandler.initMetrics(metrics);<a name="line.235"></a>
+<span class="sourceLineNo">236</span>    this.processor = createProcessor();<a name="line.236"></a>
+<span class="sourceLineNo">237</span><a name="line.237"></a>
+<span class="sourceLineNo">238</span>    httpEnabled = conf.getBoolean(USE_HTTP_CONF_KEY, false);<a name="line.238"></a>
+<span class="sourceLineNo">239</span>    doAsEnabled = conf.getBoolean(THRIFT_SUPPORT_PROXYUSER_KEY, false);<a name="line.239"></a>
+<span class="sourceLineNo">240</span>    if (doAsEnabled &amp;&amp; !httpEnabled) {<a name="line.240"></a>
+<span class="sourceLineNo">241</span>      LOG.warn("Fail to enable the doAs feature. " + USE_HTTP_CONF_KEY + " is not configured");<a name="line.241"></a>
+<span class="sourceLineNo">242</span>    }<a name="line.242"></a>
+<span class="sourceLineNo">243</span><a name="line.243"></a>
+<span class="sourceLineNo">244</span>    String strQop = conf.get(THRIFT_QOP_KEY);<a name="line.244"></a>
+<span class="sourceLineNo">245</span>    if (strQop != null) {<a name="line.245"></a>
+<span class="sourceLineNo">246</span>      this.qop = SaslUtil.getQop(strQop);<a name="line.246"></a>
+<span class="sourceLineNo">247</span>    }<a name="line.247"></a>
+<span class="sourceLineNo">248</span>    if (qop != null) {<a name="line.248"></a>
+<span class="sourceLineNo">249</span>      if (qop != SaslUtil.QualityOfProtection.AUTHENTICATION &amp;&amp;<a name="line.249"></a>
+<span class="sourceLineNo">250</span>          qop != SaslUtil.QualityOfProtection.INTEGRITY &amp;&amp;<a name="line.250"></a>
+<span class="sourceLineNo">251</span>          qop != SaslUtil.QualityOfProtection.PRIVACY) {<a name="line.251"></a>
+<span class="sourceLineNo">252</span>        throw new IOException(String.format("Invalid %s: It must be one of %s, %s, or %s.",<a name="line.252"></a>
+<span class="sourceLineNo">253</span>            THRIFT_QOP_KEY,<a name="line.253"></a>
+<span class="sourceLineNo">254</span>            SaslUtil.QualityOfProtection.AUTHENTICATION.name(),<a name="line.254"></a>
+<span class="sourceLineNo">255</span>            SaslUtil.QualityOfProtection.INTEGRITY.name(),<a name="line.255"></a>
+<span class="sourceLineNo">256</span>            SaslUtil.QualityOfProtection.PRIVACY.name()));<a name="line.256"></a>
+<span class="sourceLineNo">257</span>      }<a name="line.257"></a>
+<span class="sourceLineNo">258</span>      checkHttpSecurity(qop, conf);<a name="line.258"></a>
+<span class="sourceLineNo">259</span>      if (!securityEnabled) {<a name="line.259"></a>
+<span class="sourceLineNo">260</span>        throw new IOException("Thrift server must run in secure mode to support authentication");<a name="line.260"></a>
+<span class="sourceLineNo">261</span>      }<a name="line.261"></a>
+<span class="sourceLineNo">262</span>    }<a name="line.262"></a>
+<span class="sourceLineNo">263</span>    registerFilters(conf);<a name="line.263"></a>
+<span class="sourceLineNo">264</span>    pauseMonitor.start();<a name="line.264"></a>
+<span class="sourceLineNo">265</span>  }<a name="line.265"></a>
+<span class="sourceLineNo">266</span><a name="line.266"></a>
+<span class="sourceLineNo">267</span>  private String getSpengoPrincipal(Configuration conf, String host) throws IOException {<a name="line.267"></a>
+<span class="sourceLineNo">268</span>    String principal = conf.get(THRIFT_SPNEGO_PRINCIPAL_KEY);<a name="line.268"></a>
+<span class="sourceLineNo">269</span>    if (principal == null) {<a name="line.269"></a>
+<span class="sourceLineNo">270</span>      // We cannot use the Hadoop configuration deprecation handling here since<a name="line.270"></a>
+<span class="sourceLineNo">271</span>      // the THRIFT_KERBEROS_PRINCIPAL_KEY config is still valid for regular Kerberos<a name="line.271"></a>
+<span class="sourceLineNo">272</span>      // communication. The preference should be to use the THRIFT_SPNEGO_PRINCIPAL_KEY<a name="line.272"></a>
+<span class="sourceLineNo">273</span>      // config so that THRIFT_KERBEROS_PRINCIPAL_KEY doesn't control both backend<a name="line.273"></a>
+<span class="sourceLineNo">274</span>      // Kerberos principal and SPNEGO principal.<a name="line.274"></a>
+<span class="sourceLineNo">275</span>      LOG.info("Using deprecated {} config for SPNEGO principal. Use {} instead.",<a name="line.275"></a>
+<span class="sourceLineNo">276</span>        THRIFT_KERBEROS_PRINCIPAL_KEY, THRIFT_SPNEGO_PRINCIPAL_KEY);<a name="line.276"></a>
+<span class="sourceLineNo">277</span>      principal = conf.get(THRIFT_KERBEROS_PRINCIPAL_KEY);<a name="line.277"></a>
+<span class="sourceLineNo">278</span>    }<a name="line.278"></a>
+<span class="sourceLineNo">279</span>    // Handle _HOST in principal value<a name="line.279"></a>
+<span class="sourceLineNo">280</span>    return org.apache.hadoop.security.SecurityUtil.getServerPrincipal(principal, host);<a name="line.280"></a>
+<span class="sourceLineNo">281</span>  }<a name="line.281"></a>
+<span class="sourceLineNo">282</span><a name="line.282"></a>
+<span class="sourceLineNo">283</span>  private String getSpnegoKeytab(Configuration conf) {<a name="line.283"></a>
+<span class="sourceLineNo">284</span>    String keytab = conf.get(THRIFT_SPNEGO_KEYTAB_FILE_KEY);<a name="line.284"></a>
+<span class="sourceLineNo">285</span>    if (keytab == null) {<a name="line.285"></a>
+<span class="sourceLineNo">286</span>      // We cannot use the Hadoop configuration deprecation handling here since<a name="line.286"></a>
+<span class="sourceLineNo">287</span>      // the THRIFT_KEYTAB_FILE_KEY config is still valid for regular Kerberos<a name="line.287"></a>
+<span class="sourceLineNo">288</span>      // communication. The preference should be to use the THRIFT_SPNEGO_KEYTAB_FILE_KEY<a name="line.288"></a>
+<span class="sourceLineNo">289</span>      // config so that THRIFT_KEYTAB_FILE_KEY doesn't control both backend<a name="line.289"></a>
+<span class="sourceLineNo">290</span>      // Kerberos keytab and SPNEGO keytab.<a name="line.290"></a>
+<span class="sourceLineNo">291</span>      LOG.info("Using deprecated {} config for SPNEGO keytab. Use {} instead.",<a name="line.291"></a>
+<span class="sourceLineNo">292</span>        THRIFT_KEYTAB_FILE_KEY, THRIFT_SPNEGO_KEYTAB_FILE_KEY);<a name="line.292"></a>
+<span class="sourceLineNo">293</span>      keytab = conf.get(THRIFT_KEYTAB_FILE_KEY);<a name="line.293"></a>
+<span class="sourceLineNo">294</span>    }<a name="line.294"></a>
+<span class="sourceLineNo">295</span>    return keytab;<a name="line.295"></a>
+<span class="sourceLineNo">296</span>  }<a name="line.296"></a>
+<span class="sourceLineNo">297</span><a name="line.297"></a>
+<span class="sourceLineNo">298</span>  protected void startInfoServer() throws IOException {<a name="line.298"></a>
+<span class="sourceLineNo">299</span>    // Put up info server.<a name="line.299"></a>
+<span class="sourceLineNo">300</span>    int port = conf.getInt(THRIFT_INFO_SERVER_PORT , THRIFT_INFO_SERVER_PORT_DEFAULT);<a name="line.300"></a>
+<span class="sourceLineNo">301</span><a name="line.301"></a>
+<span class="sourceLineNo">302</span>    if (port &gt;= 0) {<a name="line.302"></a>
+<span class="sourceLineNo">303</span>      conf.setLong("startcode", EnvironmentEdgeManager.currentTime());<a name="line.303"></a>
+<span class="sourceLineNo">304</span>      String a = conf<a name="line.304"></a>
+<span class="sourceLineNo">305</span>          .get(THRIFT_INFO_SERVER_BINDING_ADDRESS, THRIFT_INFO_SERVER_BINDING_ADDRESS_DEFAULT);<a name="line.305"></a>
+<span class="sourceLineNo">306</span>      infoServer = new InfoServer("thrift", a, port, false, conf);<a name="line.306"></a>
+<span class="sourceLineNo">307</span>      infoServer.setAttribute("hbase.conf", conf);<a name="line.307"></a>
+<span class="sourceLineNo">308</span>      infoServer.setAttribute("hbase.thrift.server.type", metrics.getThriftServerType().name());<a name="line.308"></a>
+<span class="sourceLineNo">309</span>      infoServer.start();<a name="line.309"></a>
+<span class="sourceLineNo">310</span>    }<a name="line.310"></a>
+<span class="sourceLineNo">311</span>  }<a name="line.311"></a>
+<span class="sourceLineNo">312</span><a name="line.312"></a>
+<span class="sourceLineNo">313</span>  protected void checkHttpSecurity(SaslUtil.QualityOfProtection qop, Configuration conf) {<a name="line.313"></a>
+<span class="sourceLineNo">314</span>    if (qop == SaslUtil.QualityOfProtection.PRIVACY &amp;&amp;<a name="line.314"></a>
+<span class="sourceLineNo">315</span>        conf.getBoolean(USE_HTTP_CONF_KEY, false) &amp;&amp;<a name="line.315"></a>
+<span class="sourceLineNo">316</span>        !conf.getBoolean(THRIFT_SSL_ENABLED_KEY, false)) {<a name="line.316"></a>
+<span class="sourceLineNo">317</span>      throw new IllegalArgumentException("Thrift HTTP Server's QoP is privacy, but " +<a name="line.317"></a>
+<span class="sourceLineNo">318</span>          THRIFT_SSL_ENABLED_KEY + " is false");<a name="line.318"></a>
+<span class="sourceLineNo">319</span>    }<a name="line.319"></a>
+<span class="sourceLineNo">320</span>  }<a name="line.320"></a>
+<span class="sourceLineNo">321</span><a name="line.321"></a>
+<span class="sourceLineNo">322</span>  protected HBaseServiceHandler createHandler(Configuration conf, UserProvider userProvider)<a name="line.322"></a>
+<span class="sourceLineNo">323</span>      throws IOException {<a name="line.323"></a>
+<span class="sourceLineNo">324</span>    return new ThriftHBaseServiceHandler(conf, userProvider);<a name="line.324"></a>
+<span class="sourceLineNo">325</span>  }<a name="line.325"></a>
+<span class="sourceLineNo">326</span><a name="line.326"></a>
+<span class="sourceLineNo">327</span>  protected TProcessor createProcessor() {<a name="line.327"></a>
+<span class="sourceLineNo">328</span>    return new Hbase.Processor&lt;&gt;(<a name="line.328"></a>
+<span class="sourceLineNo">329</span>        HbaseHandlerMetricsProxy.newInstance((Hbase.Iface) hbaseServiceHandler, metrics, conf));<a name="line.329"></a>
+<span class="sourceLineNo">330</span>  }<a name="line.330"></a>
+<span class="sourceLineNo">331</span><a name="line.331"></a>
+<span class="sourceLineNo">332</span>  /**<a name="line.332"></a>
+<span class="sourceLineNo">333</span>   * the thrift server, not null means the server is started, for test only<a name="line.333"></a>
+<span class="sourceLineNo">334</span>   * @return the tServer<a name="line.334"></a>
+<span class="sourceLineNo">335</span>   */<a name="line.335"></a>
+<span class="sourceLineNo">336</span>  @InterfaceAudience.Private<a name="line.336"></a>
+<span class="sourceLineNo">337</span>  public TServer getTserver() {<a name="line.337"></a>
+<span class="sourceLineNo">338</span>    return tserver;<a name="line.338"></a>
+<span class="sourceLineNo">339</span>  }<a name="line.339"></a>
+<span class="sourceLineNo">340</span><a name="line.340"></a>
+<span class="sourceLineNo">341</span>  /**<a name="line.341"></a>
+<span class="sourceLineNo">342</span>   * the Jetty server, not null means the HTTP server is started, for test only<a name="line.342"></a>
+<span class="sourceLineNo">343</span>   * @return the http server<a name="line.343"></a>
+<span class="sourceLineNo">344</span>   */<a name="line.344"></a>
+<span class="sourceLineNo">345</span>  @InterfaceAudience.Private<a name="line.345"></a>
+<span class="sourceLineNo">346</span>  public Server getHttpServer() {<a name="line.346"></a>
+<span class="sourceLineNo">347</span>    return httpServer;<a name="line.347"></a>
+<span class="sourceLineNo">348</span>  }<a name="line.348"></a>
+<span class="sourceLineNo">349</span><a name="line.349"></a>
+<span class="sourceLineNo">350</span>  protected void printUsageAndExit(Options options, int exitCode)<a name="line.350"></a>
+<span class="sourceLineNo">351</span>      throws ExitCodeException {<a name="line.351"></a>
+<span class="sourceLineNo">352</span>    HelpFormatter formatter = new HelpFormatter();<a name="line.352"></a>
+<span class="sourceLineNo">353</span>    formatter.printHelp("Thrift", null, options,<a name="line.353"></a>
+<span class="sourceLineNo">354</span>        "To start the Thrift server run 'hbase-daemon.sh start thrift' or " +<a name="line.354"></a>
+<span class="sourceLineNo">355</span>        "'hbase thrift'\n" +<a name="line.355"></a>
+<span class="sourceLineNo">356</span>        "To shutdown the thrift server run 'hbase-daemon.sh stop " +<a name="line.356"></a>
+<span class="sourceLineNo">357</span>        "thrift' or send a kill signal to the thrift server pid",<a name="line.357"></a>
+<span class="sourceLineNo">358</span>        true);<a name="line.358"></a>
+<span class="sourceLineNo">359</span>    throw new ExitCodeException(exitCode, "");<a name="line.359"></a>
+<span class="sourceLineNo">360</span>  }<a name="line.360"></a>
+<span class="sourceLineNo">361</span><a name="line.361"></a>
+<span class="sourceLineNo">362</span>  /**<a name="line.362"></a>
+<span class="sourceLineNo">363</span>   * Create a Servlet for the http server<a name="line.363"></a>
+<span class="sourceLineNo">364</span>   * @param protocolFactory protocolFactory<a name="line.364"></a>
+<span class="sourceLineNo">365</span>   * @return the servlet<a name="line.365"></a>
+<span class="sourceLineNo">366</span>   */<a name="line.366"></a>
+<span class="sourceLineNo">367</span>  protected TServlet createTServlet(TProtocolFactory protocolFactory) {<a name="line.367"></a>
+<span class="sourceLineNo">368</span>    return new ThriftHttpServlet(processor, protocolFactory, serviceUGI, httpUGI,<a name="line.368"></a>
+<span class="sourceLineNo">369</span>        hbaseServiceHandler, securityEnabled, doAsEnabled);<a name="line.369"></a>
+<span class="sourceLineNo">370</span>  }<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>   * Setup an HTTP Server using Jetty to serve calls from THttpClient<a name="line.373"></a>
+<span class="sourceLineNo">374</span>   *<a name="line.374"></a>
+<span class="sourceLineNo">375</span>   * @throws IOException IOException<a name="line.375"></a>
+<span class="sourceLineNo">376</span>   */<a name="line.376"></a>
+<span class="sourceLineNo">377</span>  protected void setupHTTPServer() throws IOException {<a name="line.377"></a>
+<span class="sourceLineNo">378</span>    TProtocolFactory protocolFactory = new TBinaryProtocol.Factory();<a name="line.378"></a>
+<span class="sourceLineNo">379</span>    TServlet thriftHttpServlet = createTServlet(protocolFactory);<a name="line.379"></a>
+<span class="sourceLineNo">380</span><a name="line.380"></a>
+<span class="sourceLineNo">381</span>    // Set the default max thread number to 100 to limit<a name="line.381"></a>
+<span class="sourceLineNo">382</span>    // the number of concurrent requests so that Thrfit HTTP server doesn't OOM easily.<a name="line.382"></a>
+<span class="sourceLineNo">383</span>    // Jetty set the default max thread number to 250, if we don't set it.<a name="line.383"></a>
+<span class="sourceLineNo">384</span>    //<a name="line.384"></a>
+<span class="sourceLineNo">385</span>    // Our default min thread number 2 is the same as that used by Jetty.<a name="line.385"></a>
+<span class="sourceLineNo">386</span>    int minThreads = conf.getInt(HTTP_MIN_THREADS_KEY,<a name="line.386"></a>
+<span class="sourceLineNo">387</span>        conf.getInt(TBoundedThreadPoolServer.MIN_WORKER_THREADS_CONF_KEY,<a name="line.387"></a>
+<span class="sourceLineNo">388</span>            HTTP_MIN_THREADS_KEY_DEFAULT));<a name="line.388"></a>
+<span class="sourceLineNo">389</span>    int maxThreads = conf.getInt(HTTP_MAX_THREADS_KEY,<a name="line.389"></a>
+<span class="sourceLineNo">390</span>        conf.getInt(TBoundedThreadPoolServer.MAX_WORKER_THREADS_CONF_KEY,<a name="line.390"></a>
+<span class="sourceLineNo">391</span>            HTTP_MAX_THREADS_KEY_DEFAULT));<a name="line.391"></a>
+<span class="sourceLineNo">392</span>    QueuedThreadPool threadPool = new QueuedThreadPool(maxThreads);<a name="line.392"></a>
+<span class="sourceLineNo">393</span>    threadPool.setMinThreads(minThreads);<a name="line.393"></a>
+<span class="sourceLineNo">394</span>    httpServer = new Server(threadPool);<a name="line.394"></a>
+<span class="sourceLineNo">395</span><a name="line.395"></a>
+<span class="sourceLineNo">396</span>    // Context handler<a name="line.396"></a>
+<span class="sourceLineNo">397</span>    ServletContextHandler ctxHandler = new ServletContextHandler(httpServer, "/",<a name="line.397"></a>
+<span class="sourceLineNo">398</span>        ServletContextHandler.SESSIONS);<a name="line.398"></a>
+<span class="sourceLineNo">399</span>    ctxHandler.addServlet(new ServletHolder(thriftHttpServlet), "/*");<a name="line.399"></a>
+<span class="sourceLineNo">400</span>    HttpServerUtil.constrainHttpMethods(ctxHandler,<a name="line.400"></a>
+<span class="sourceLineNo">401</span>        conf.getBoolean(THRIFT_HTTP_ALLOW_OPTIONS_METHOD,<a name="line.401"></a>
+<span class="sourceLineNo">402</span>            THRIFT_HTTP_ALLOW_OPTIONS_METHOD_DEFAULT));<a name="line.402"></a>
+<span class="sourceLineNo">403</span><a name="line.403"></a>
+<span class="sourceLineNo">404</span>    // set up Jetty and run the embedded server<a name="line.404"></a>
+<span class="sourceLineNo">405</span>    HttpConfiguration httpConfig = new HttpConfiguration();<a name="line.405"></a>
+<span class="sourceLineNo">406</span>    httpConfig.setSecureScheme("https");<a name="line.406"></a>
+<span class="sourceLineNo">407</span>    httpConfig.setSecurePort(listenPort);<a name="line.407"></a>
+<span class="sourceLineNo">408</span>    httpConfig.setHeaderCacheSize(DEFAULT_HTTP_MAX_HEADER_SIZE);<a name="line.408"></a>
+<span class="sourceLineNo">409</span>    httpConfig.setRequestHeaderSize(DEFAULT_HTTP_MAX_HEADER_SIZE);<a name="line.409"></a>
+<span class="sourceLineNo">410</span>    httpConfig.setResponseHeaderSize(DEFAULT_HTTP_MAX_HEADER_SIZE);<a name="line.410"></a>
+<span class="sourceLineNo">411</span>    httpConfig.setSendServerVersion(false);<a name="line.411"></a>
+<span class="sourceLineNo">412</span>    httpConfig.setSendDateHeader(false);<a name="line.412"></a>
+<span class="sourceLineNo">413</span><a name="line.413"></a>
+<span class="sourceLineNo">414</span>    ServerConnector serverConnector;<a name="line.414"></a>
+<span class="sourceLineNo">415</span>    if(conf.getBoolean(THRIFT_SSL_ENABLED_KEY, false)) {<a name="line.415"></a>
+<span class="sourceLineNo">416</span>      HttpConfiguration httpsConfig = new HttpConfiguration(httpConfig);<a name="line.416"></a>
+<span class="sourceLineNo">417</span>      httpsConfig.addCustomizer(new SecureRequestCustomizer());<a name="line.417"></a>
+<span class="sourceLineNo">418</span><a name="line.418"></a>
+<span class="sourceLineNo">419</span>      SslContextFactory sslCtxFactory = new SslContextFactory();<a name="line.419"></a>
+<span class="sourceLineNo">420</span>      String keystore = conf.get(THRIFT_SSL_KEYSTORE_STORE_KEY);<a name="line.420"></a>
+<span class="sourceLineNo">421</span>      String password = HBaseConfiguration.getPassword(conf,<a name="line.421"></a>
+<span class="sourceLineNo">422</span>          THRIFT_SSL_KEYSTORE_PASSWORD_KEY, null);<a name="line.422"></a>
+<span class="sourceLineNo">423</span>      String keyPassword = HBaseConfiguration.getPassword(conf,<a name="line.423"></a>
+<span class="sourceLineNo">424</span>          THRIFT_SSL_KEYSTORE_KEYPASSWORD_KEY, password);<a name="line.424"></a>
+<span class="sourceLineNo">425</span>      sslCtxFactory.setKeyStorePath(keystore);<a name="line.425"></a>
+<span class="sourceLineNo">426</span>      sslCtxFactory.setKeyStorePassword(password);<a name="line.426"></a>
+<span class="sourceLineNo">427</span>      sslCtxFactory.setKeyManagerPassword(keyPassword);<a name="line.427"></a>
+<span class="sourceLineNo">428</span><a name="line.428"></a>
+<span class="sourceLineNo">429</span>      String[] excludeCiphers = conf.getStrings(<a name="line.429"></a>
+<span class="sourceLineNo">430</span>          THRIFT_SSL_EXCLUDE_CIPHER_SUITES_KEY, ArrayUtils.EMPTY_STRING_ARRAY);<a name="line.430"></a>
+<span class="sourceLineNo">431</span>      if (excludeCiphers.length != 0) {<a name="line.431"></a>
+<span class="sourceLineNo">432</span>        sslCtxFactory.setExcludeCipherSuites(excludeCiphers);<a name="line.432"></a>
+<span class="sourceLineNo">433</span>      }<a name="line.433"></a>
+<span class="sourceLineNo">434</span>      String[] includeCiphers = conf.getStrings(<a name="line.434"></a>
+<span class="sourceLineNo">435</span>          THRIFT_SSL_INCLUDE_CIPHER_SUITES_KEY, ArrayUtils.EMPTY_STRING_ARRAY);<a name="line.435"></a>
+<span class="sourceLineNo">436</span>      if (includeCiphers.length != 0) {<a name="line.436"></a>
+<span class="sourceLineNo">437</span>        sslCtxFactory.setIncludeCipherSuites(includeCiphers);<a name="line.437"></a>
+<span class="sourceLineNo">438</span>      }<a name="line.438"></a>
+<span class="sourceLineNo">439</span><a name="line.439"></a>
+<span class="sourceLineNo">440</span>      // Disable SSLv3 by default due to "Poodle" Vulnerability - CVE-2014-3566<a name="line.440"></a>
+<span class="sourceLineNo">441</span>      String[] excludeProtocols = conf.getStrings(<a name="line.441"></a>
+<span class="sourceLineNo">442</span>          THRIFT_SSL_EXCLUDE_PROTOCOLS_KEY, "SSLv3");<a name="line.442"></a>
+<span class="sourceLineNo">443</span>      if (excludeProtocols.length != 0) {<a name="line.443"></a>
+<span class="sourceLineNo">444</span>        sslCtxFactory.setExcludeProtocols(excludeProtocols);<a name="line.444"></a>
+<span class="sourceLineNo">445</span>      }<a name="line.445"></a>
+<span class="sourceLineNo">446</span>      String[] includeProtocols = conf.getStrings(<a name="line.446"></a>
+<span class="sourceLineNo">447</span>          THRIFT_SSL_INCLUDE_PROTOCOLS_KEY, ArrayUtils.EMPTY_STRING_ARRAY);<a name="line.447"></a>
+<span class="sourceLineNo">448</span>      if (includeProtocols.length != 0) {<a name="line.448"></a>
+<span class="sourceLineNo">449</span>        sslCtxFactory.setIncludeProtocols(includeProtocols);<a name="line.449"></a>
+<span class="sourceLineNo">450</span>      }<a name="line.450"></a>
+<span class="sourceLineNo">451</span><a name="line.451"></a>
+<span class="sourceLineNo">452</span>      serverConnector = new ServerConnector(httpServer,<a name="line.452"></a>
+<span class="sourceLineNo">453</span>          new SslConnectionFactory(sslCtxFactory, HttpVersion.HTTP_1_1.toString()),<a name="line.453"></a>
+<span class="sourceLineNo">454</span>          new HttpConnectionFactory(httpsConfig));<a name="line.454"></a>
+<span class="sourceLineNo">455</span>    } else {<a name="line.455"></a>
+<span class="sourceLineNo">456</span>      serverConnector = new ServerConnector(httpServer, new HttpConnectionFactory(httpConfig));<a name="line.456"></a>
+<span class="sourceLineNo">457</span>    }<a name="line.457"></a>
+<span class="sourceLineNo">458</span>    serverConnector.setPort(listenPort);<a name="line.458"></a>
+<span class="sourceLineNo">459</span>    serverConnector.setHost(getBindAddress(conf).getHostAddress());<a name="line.459"></a>
+<span class="sourceLineNo">460</span>    httpServer.addConnector(serverConnector);<a name="line.460"></a>
+<span class="sourceLineNo">461</span>    httpServer.setStopAtShutdown(true);<a name="line.461"></a>
+<span class="sourceLineNo">462</span><a name="line.462"></a>
+<span class="sourceLineNo">463</span>    if (doAsEnabled) {<a name="line.463"></a>
+<span class="sourceLineNo">464</span>      ProxyUsers.refreshSuperUserGroupsConfiguration(conf);<a name="line.464"></a>
+<span class="sourceLineNo">465</span>    }<a name="line.465"></a>
+<span class="sourceLineNo">466</span>    LOG.info("Starting Thrift HTTP Server on {}", Integer.toString(listenPort));<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>  /**<a name="line.469"></a>
+<span class="sourceLineNo">470</span>   * Setting up the thrift TServer<a name="line.470"></a>
+<span class="sourceLineNo">471</span>   */<a name="line.471"></a>
+<span class="sourceLineNo">472</span>  protected void setupServer() throws Exception {<a name="line.472"></a>
+<span class="sourceLineNo">473</span>    // Construct correct ProtocolFactory<a name="line.473"></a>
+<span class="sourceLineNo">474</span>    TProtocolFactory protocolFactory = getProtocolFactory();<a name="line.474"></a>
+<span class="sourceLineNo">475</span><a name="line.475"></a>
+<span class="sourceLineNo">476</span>    ImplType implType = ImplType.getServerImpl(conf);<a name="line.476"></a>
+<span class="sourceLineNo">477</span>    TProcessor processorToUse = processor;<a name="line.477"></a>
+<span class="sourceLineNo">478</span><a name="line.478"></a>
+<span class="sourceLineNo">479</span>    // Construct correct TransportFactory<a name="line.479"></a>
+<span class="sourceLineNo">480</span>    TTransportFactory transportFactory;<a name="line.480"></a>
+<span class="sourceLineNo">481</span>    if (conf.getBoolean(FRAMED_CONF_KEY, FRAMED_CONF_DEFAULT) || implType.isAlwaysFramed) {<a name="line.481"></a>
+<span class="sourceLineNo">482</span>      if (qop != null) {<a name="line.482"></a>
+<span class="sourceLineNo">483</span>        throw new RuntimeException("Thrift server authentication"<a name="line.483"></a>
+<span class="sourceLineNo">484</span>            + " doesn't work with framed transport yet");<a name="line.484"></a>
+<span class="sourceLineNo">485</span>      }<a name="line.485"></a>
+<span class="sourceLineNo">486</span>      transportFactory = new TFramedTransport.Factory(<a name="line.486"></a>
+<span class="sourceLineNo">487</span>        conf.getInt(MAX_FRAME_SIZE_CONF_KEY, MAX_FRAME_SIZE_CONF_DEFAULT) * 1024 * 1024);<a name="line.487"></a>
+<span class="sourceLineNo">488</span>      LOG.debug("Using framed transport");<a name="line.488"></a>
+<span class="sourceLineNo">489</span>    } else if (qop == null) {<a name="line.489"></a>
+<span class="sourceLineNo">490</span>      transportFactory = new TTransportFactory();<a name="line.490"></a>
+<span class="sourceLineNo">491</span>    } else {<a name="line.491"></a>
+<span class="sourceLineNo">492</span>      // Extract the name from the principal<a name="line.492"></a>
+<span class="sourceLineNo">493</span>      String thriftKerberosPrincipal = conf.get(THRIFT_KERBEROS_PRINCIPAL_KEY);<a name="line.493"></a>
+<span class="sourceLineNo">494</span>      if (thriftKerberosPrincipal == null) {<a name="line.494"></a>
+<span class="sourceLineNo">495</span>        throw new IllegalArgumentException(THRIFT_KERBEROS_PRINCIPAL_KEY + " cannot be null");<a name="line.495"></a>
+<span class="sourceLineNo">496</span>      }<a name="line.496"></a>
+<span class="sourceLineNo">497</span>      String name = SecurityUtil.getUserFromPrincipal(thriftKerberosPrincipal);<a name="line.497"></a>
+<span class="sourceLineNo">498</span>      Map&lt;String, String&gt; saslProperties = SaslUtil.initSaslProperties(qop.name());<a name="line.498"></a>
+<span class="sourceLineNo">499</span>      TSaslServerTransport.Factory saslFactory = new TSaslServerTransport.Factory();<a name="line.499"></a>
+<span class="sourceLineNo">500</span>      saslFactory.addServerDefinition("GSSAPI", name, host, saslProperties,<a name="line.500"></a>
+<span class="sourceLineNo">501</span>          new SaslRpcServer.SaslGssCallbackHandler() {<a name="line.501"></a>
+<span class="sourceLineNo">502</span>            @Override<a name="line.502"></a>
+<span class="sourceLineNo">503</span>            public void handle(Callback[] callbacks)<a name="line.503"></a>
+<span class="sourceLineNo">504</span>                throws UnsupportedCallbackException {<a name="line.504"></a>
+<span class="sourceLineNo">505</span>              AuthorizeCallback ac = null;<a name="line.505"></a>
+<span class="sourceLineNo">506</span>              for (Callback callback : callbacks) {<a name="line.506"></a>
+<span class="sourceLineNo">507</span>                if (callback instanceof AuthorizeCallback) {<a name="line.507"></a>
+<span class="sourceLineNo">508</span>                  ac = (AuthorizeCallback) callback;<a name="line.508"></a>
+<span class="sourceLineNo">509</span>                } else {<a name="line.509"></a>
+<span class="sourceLineNo">510</span>                  throw new UnsupportedCallbackException(callback,<a name="line.510"></a>
+<span class="sourceLineNo">511</span>                      "Unrecognized SASL GSSAPI Callback");<a name="line.511"></a>
+<span class="sourceLineNo">512</span>                }<a name="line.512"></a>
+<span class="sourceLineNo">513</span>              }<a name="line.513"></a>
+<span class="sourceLineNo">514</span>              if (ac != null) {<a name="line.514"></a>
+<span class="sourceLineNo">515</span>                String authid = ac.getAuthenticationID();<a name="line.515"></a>
+<span class="sourceLineNo">516</span>                String authzid = ac.getAuthorizationID();<a name="line.516"></a>
+<span class="sourceLineNo">517</span>                if (!authid.equals(authzid)) {<a name="line.517"></a>
+<span class="sourceLineNo">518</span>                  ac.setAuthorized(false);<a name="line.518"></a>
+<span class="sourceLineNo">519</span>                } else {<a name="line.519"></a>
+<span class="sourceLineNo">520</span>                  ac.setAuthorized(true);<a name="line.520"></a>
+<span class="sourceLineNo">521</span>                  String userName = SecurityUtil.getUserFromPrincipal(authzid);<a name="line.521"></a>
+<span class="sourceLineNo">522</span>                  LOG.info("Effective user: {}", userName);<a name="line.522"></a>
+<span class="sourceLineNo">523</span>                  ac.setAuthorizedID(userName);<a name="line.523"></a>
+<span class="sourceLineNo">524</span>                }<a name="line.524"></a>
+<span class="sourceLineNo">525</span>              }<a name="line.525"></a>
+<span class="sourceLineNo">526</span>            }<a name="line.526"></a>
+<span class="sourceLineNo">527</span>          });<a name="line.527"></a>
+<span class="sourceLineNo">528</span>      transportFactory = saslFactory;<a name="line.528"></a>
+<span class="sourceLineNo">529</span><a name="line.529"></a>
+<span class="sourceLineNo">530</span>      // Create a processor wrapper, to get the caller<a name="line.530"></a>
+<span class="sourceLineNo">531</span>      processorToUse = (inProt, outProt) -&gt; {<a name="line.531"></a>
+<span class="sourceLineNo">532</span>        TSaslServerTransport saslServerTransport =<a name="line.532"></a>
+<span class="sourceLineNo">533</span>            (TSaslServerTransport)inProt.getTransport();<a name="line.533"></a>
+<span class="sourceLineNo">534</span>        SaslServer saslServer = saslServerTransport.getSaslServer();<a name="line.534"></a>
+<span class="sourceLineNo">535</span>        String principal = saslServer.getAuthorizationID();<a name="line.535"></a>
+<span class="sourceLineNo">536</span>        hbaseServiceHandler.setEffectiveUser(principal);<a name="line.536"></a>
+<span class="sourceLineNo">537</span>        processor.process(inProt, outProt);<a name="line.537"></a>
+<span class="sourceLineNo">538</span>      };<a name="line.538"></a>
+<span class="sourceLineNo">539</span>    }<a name="line.539"></a>
+<span class="sourceLineNo">540</span><a name="line.540"></a>
+<span class="sourceLineNo">541</span>    if (conf.get(BIND_CONF_KEY) != null &amp;&amp; !implType.canSpecifyBindIP) {<a name="line.541"></a>
+<span class="sourceLineNo">542</span>      LOG.error("Server types {} don't support IP address binding at the moment. See " +<a name="line.542"></a>
+<span class="sourceLineNo">543</span>              "https://issues.apache.org/jira/browse/HBASE-2155 for details.",<a name="line.543"></a>
+<span class="sourceLineNo">544</span>          Joiner.on(", ").join(ImplType.serversThatCannotSpecifyBindIP()));<a name="line.544"></a>
+<span class="sourceLineNo">545</span>      throw new RuntimeException("-" + BIND_CONF_KEY + " not supported with " + implType);<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>    InetSocketAddress inetSocketAddress = new InetSocketAddress(getBindAddress(conf), listenPort);<a name="line.548"></a>
+<span class="sourceLineNo">549</span>    if (implType == ImplType.HS_HA || implType == ImplType.NONBLOCKING ||<a name="line.549"></a>
+<span class="sourceLineNo">550</span>        implType == ImplType.THREADED_SELECTOR) {<a name="line.550"></a>
+<span class="sourceLineNo">551</span>      TNonblockingServerTransport serverTransport = new TNonblockingServerSocket(inetSocketAddress);<a name="line.551"></a>
+<span class="sourceLineNo">552</span>      if (implType == ImplType.NONBLOCKING) {<a name="line.552"></a>
+<span class="sourceLineNo">553</span>        tserver = getTNonBlockingServer(serverTransport, protocolFactory, processorToUse,<a name="line.553"></a>
+<span class="sourceLineNo">554</span>            transportFactory, inetSocketAddress);<a name="line.554"></a>
+<span class="sourceLineNo">555</span>      } else if (implType == ImplType.HS_HA) {<a name="line.555"></a>
+<span class="sourceLineNo">556</span>        tserver = getTHsHaServer(serverTransport, protocolFactory, processorToUse, transportFactory,<a name="line.556"></a>
+<span class="sourceLineNo">557</span>            inetSocketAddress);<a name="line.557"></a>
+<span class="sourceLineNo">558</span>      } else { // THREADED_SELECTOR<a name="line.558"></a>
+<span class="sourceLineNo">559</span>        tserver = getTThreadedSelectorServer(serverTransport, protocolFactory, processorToUse,<a name="line.559"></a>
+<span class="sourceLineNo">560</span>            transportFactory, inetSocketAddress);<a name="line.560"></a>
+<span class="sourceLineNo">561</span>      }<a name="line.561"></a>
+<span class="sourceLineNo">562</span>      LOG.info("starting HBase {} server on {}", implType.simpleClassName(),<a name="line.562"></a>
+<span class="sourceLineNo">563</span>          Integer.toString(listenPort));<a name="line.563"></a>
+<span class="sourceLineNo">564</span>    } else if (implType == ImplType.THREAD_POOL) {<a name="line.564"></a>
+<span class="sourceLineNo">565</span>      this.tserver = getTThreadPoolServer(protocolFactory, processorToUse, transportFactory,<a name="line.565"></a>
+<span class="sourceLineNo">566</span>          inetSocketAddress);<a name="line.566"></a>
+<span class="sourceLineNo">567</span>    } else {<a name="line.567"></a>
+<span class="sourceLineNo">568</span>      throw new AssertionError("Unsupported Thrift server implementation: " +<a name="line.568"></a>
+<span class="sourceLineNo">569</span>          implType.simpleClassName());<a name="line.569"></a>
+<span class="sourceLineNo">570</span>    }<a name="line.570"></a>
+<span class="sourceLineNo">571</span><a name="line.571"></a>
+<span class="sourceLineNo">572</span>    // A sanity check that we instantiated the right type of server.<a name="line.572"></a>
+<span class="sourceLineNo">573</span>    if (tserver.getClass() != implType.serverClass) {<a name="line.573"></a>
+<span class="sourceLineNo">574</span>      throw new AssertionError("Expected to create Thrift server class " +<a name="line.574"></a>
+<span class="sourceLineNo">575</span>          implType.serverClass.getName() + " but got " +<a name="line.575"></a>
+<span class="sourceLineNo">576</span>          tserver.getClass().getName());<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><a name="line.579"></a>
+<span class="sourceLineNo">580</span>  protected TServer getTNonBlockingServer(TNonblockingServerTransport serverTransport,<a name="line.580"></a>
+<span class="sourceLineNo">581</span>      TProtocolFactory protocolFactory, TProcessor processor, TTransportFactory transportFactory,<a name="line.581"></a>
+<span class="sourceLineNo">582</span>      InetSocketAddress inetSocketAddress) {<a name="line.582"></a>
+<span class="sourceLineNo">583</span>    LOG.info("starting HBase Nonblocking Thrift server on " + inetSocketAddress.toString());<a name="line.583"></a>
+<span class="sourceLineNo">584</span>    TNonblockingServer.Args serverArgs = new TNonblockingServer.Args(serverTransport);<a name="line.584"></a>
+<span class="sourceLineNo">585</span>    serverArgs.processor(processor);<a name="line.585"></a>
+<span class="sourceLineNo">586</span>    serverArgs.transportFactory(transportFactory);<a name="line.586"></a>
+<span class="sourceLineNo">587</span>    serverArgs.protocolFactory(protocolFactory);<a name="line.587"></a>
+<span class="sourceLineNo">588</span>    return new TNonblockingServer(serverArgs);<a name="line.588"></a>
+<span class="sourceLineNo">589</span>  }<a name="line.589"></a>
+<span class="sourceLineNo">590</span><a name="line.590"></a>
+<span class="sourceLineNo">591</span>  protected TServer getTHsHaServer(TNonblockingServerTransport serverTransport,<a name="line.591"></a>
+<span class="sourceLineNo">592</span>      TProtocolFactory protocolFactory, TProcessor processor, TTransportFactory transportFactory,<a name="line.592"></a>
+<span class="sourceLineNo">593</span>      InetSocketAddress inetSocketAddress) {<a name="line.593"></a>
+<span class="sourceLineNo">594</span>    LOG.info("starting HBase HsHA Thrift server on " + inetSocketAddress.toString());<a name="line.594"></a>
+<span class="sourceLineNo">595</span>    THsHaServer.Args serverArgs = new THsHaServer.Args(serverTransport);<a name="line.595"></a>
+<span class="sourceLineNo">596</span>    int queueSize = conf.getInt(TBoundedThreadPoolServer.MAX_QUEUED_REQUESTS_CONF_KEY,<a name="line.596"></a>
+<span class="sourceLineNo">597</span>        TBoundedThreadPoolServer.DEFAULT_MAX_QUEUED_REQUESTS);<a name="line.597"></a>
+<span class="sourceLineNo">598</span>    CallQueue callQueue = new CallQueue(new LinkedBlockingQueue&lt;&gt;(queueSize), metrics);<a name="line.598"></a>
+<span class="sourceLineNo">599</span>    int workerThread = conf.getInt(TBoundedThreadPoolServer.MAX_WORKER_THREADS_CONF_KEY,<a name="line.599"></a>
+<span class="sourceLineNo">600</span>        serverArgs.getMaxWorkerThreads());<a name="line.600"></a>
+<span class="sourceLineNo">601</span>    ExecutorService executorService = createExecutor(<a name="line.601"></a>
+<span class="sourceLineNo">602</span>        callQueue, workerThread, workerThread);<a name="line.602"></a>
+<span class="sourceLineNo">603</span>    serverArgs.executorService(executorService).processor(processor)<a name="line.603"></a>
+<span class="sourceLineNo">604</span>        .transportFactory(transportFactory).protocolFactory(protocolFactory);<a name="line.604"></a>
+<span class="sourceLineNo">605</span>    return new THsHaServer(serverArgs);<a name="line.605"></a>
+<span class="sourceLineNo">606</span>  }<a name="line.606"></a>
+<span class="sourceLineNo">607</span><a name="line.607"></a>
+<span class="sourceLineNo">608</span>  protected TServer getTThreadedSelectorServer(TNonblockingServerTransport serverTransport,<a name="line.608"></a>
+<span class="sourceLineNo">609</span>      TProtocolFactory protocolFactory, TProcessor processor, TTransportFactory transportFactory,<a name="line.609"></a>
+<span class="sourceLineNo">610</span>      InetSocketAddress inetSocketAddress) {<a name="line.610"></a>
+<span class="sourceLineNo">611</span>    LOG.info("starting HBase ThreadedSelector Thrift server on " + inetSocketAddress.toString());<a name="line.611"></a>
+<span class="sourceLineNo">612</span>    TThreadedSelectorServer.Args serverArgs =<a name="line.612"></a>
+<span class="sourceLineNo">613</span>        new HThreadedSelectorServerArgs(serverTransport, conf);<a name="line.613"></a>
+<span class="sourceLineNo">614</span>    int queueSize = conf.getInt(TBoundedThreadPoolServer.MAX_QUEUED_REQUESTS_CONF_KEY,<a name="line.614"></a>
+<span class="sourceLineNo">615</span>        TBoundedThreadPoolServer.DEFAULT_MAX_QUEUED_REQUESTS);<a name="line.615"></a>
+<span class="sourceLineNo">616</span>    CallQueue callQueue = new CallQueue(new LinkedBlockingQueue&lt;&gt;(queueSize), metrics);<a name="line.616"></a>
+<span class="sourceLineNo">617</span>    int workerThreads = conf.getInt(TBoundedThreadPoolServer.MAX_WORKER_THREADS_CONF_KEY,<a name="line.617"></a>
+<span class="sourceLineNo">618</span>        serverArgs.getWorkerThreads());<a name="line.618"></a>
+<span class="sourceLineNo">619</span>    int selectorThreads = conf.getInt(THRIFT_SELECTOR_NUM, serverArgs.getSelectorThreads());<a name="line.619"></a>
+<span class="sourceLineNo">620</span>    serverArgs.selectorThreads(selectorThreads);<a name="line.620"></a>
+<span class="sourceLineNo">621</span>    ExecutorService executorService = createExecutor(<a name="line.621"></a>
+<span class="sourceLineNo">622</span>        callQueue, workerThreads, workerThreads);<a name="line.622"></a>
+<span class="sourceLineNo">623</span>    serverArgs.executorService(executorService).processor(processor)<a name="line.623"></a>
+<span class="sourceLineNo">624</span>        .transportFactory(transportFactory).protocolFactory(protocolFactory);<a name="line.624"></a>
+<span class="sourceLineNo">625</span>    return new TThreadedSelectorServer(serverArgs);<a name="line.625"></a>
+<span class="sourceLineNo">626</span>  }<a name="line.626"></a>
+<span class="sourceLineNo">627</span><a name="line.627"></a>
+<span class="sourceLineNo">628</span>  protected TServer getTThreadPoolServer(TProtocolFactory protocolFactory, TProcessor processor,<a name="line.628"></a>
+<span class="sourceLineNo">629</span>      TTransportFactory transportFactory, InetSocketAddress inetSocketAddress) throws Exception {<a name="line.629"></a>
+<span class="sourceLineNo">630</span>    LOG.info("starting HBase ThreadPool Thrift server on " + inetSocketAddress.toString());<a name="line.630"></a>
+<span class="sourceLineNo">631</span>    // Thrift's implementation uses '0' as a placeholder for 'use the default.'<a name="line.631"></a>
+<span class="sourceLineNo">632</span>    int backlog = conf.getInt(BACKLOG_CONF_KEY, BACKLOG_CONF_DEAFULT);<a name="line.632"></a>
+<span class="sourceLineNo">633</span>    int readTimeout = conf.getInt(THRIFT_SERVER_SOCKET_READ_TIMEOUT_KEY,<a name="line.633"></a>
+<span class="sourceLineNo">634</span>        THRIFT_SERVER_SOCKET_READ_TIMEOUT_DEFAULT);<a name="line.634"></a>
+<span class="sourceLineNo">635</span>    TServerTransport serverTransport = new TServerSocket(<a name="line.635"></a>
+<span class="sourceLineNo">636</span>        new TServerSocket.ServerSocketTransportArgs().<a name="line.636"></a>
+<span class="sourceLineNo">637</span>            bindAddr(inetSocketAddress).backlog(backlog).<a name="line.637"></a>
+<span class="sourceLineNo">638</span>            clientTimeout(readTimeout));<a name="line.638"></a>
+<span class="sourceLineNo">639</span><a name="line.639"></a>
+<span class="sourceLineNo">640</span>    TBoundedThreadPoolServer.Args serverArgs =<a name="line.640"></a>
+<span class="sourceLineNo">641</span>        new TBoundedThreadPoolServer.Args(serverTransport, conf);<a name="line.641"></a>
+<span class="sourceLineNo">642</span>    serverArgs.processor(processor).transportFactory(transportFactory)<a name="line.642"></a>
+<span class="sourceLineNo">643</span>        .protocolFactory(protocolFactory);<a name="line.643"></a>
+<span class="sourceLineNo">644</span>    return new TBoundedThreadPoolServer(serverArgs, metrics);<a name="line.644"></a>
+<span class="sourceLineNo">645</span>  }<a name="line.645"></a>
+<span class="sourceLineNo">646</span><a name="line.646"></a>
+<span class="sourceLineNo">647</span>  protected TProtocolFactory getProtocolFactory() {<a name="line.647"></a>
+<span class="sourceLineNo">648</span>    TProtocolFactory protocolFactory;<a name="line.648"></a>
+<span class="sourceLineNo">649</span><a name="line.649"></a>
+<span class="sourceLineNo">650</span>    if (conf.getBoolean(COMPACT_CONF_KEY, COMPACT_CONF_DEFAULT)) {<a name="line.650"></a>
+<span class="sourceLineNo">651</span>      LOG.debug("Using compact protocol");<a name="line.651"></a>
+<span class="sourceLineNo">652</span>      protocolFactory = new TCompactProtocol.Factory();<a name="line.652"></a>
+<span class="sourceLineNo">653</span>    } else {<a name="line.653"></a>
+<span class="sourceLineNo">654</span>      LOG.debug("Using binary protocol");<a name="line.654"></a>
+<span class="sourceLineNo">655</span>      protocolFactory = new TBinaryProtocol.Factory();<a name="line.655"></a>
+<span class="sourceLineNo">656</span>    }<a name="line.656"></a>
+<span class="sourceLineNo">657</span><a name="line.657"></a>
+<span class="sourceLineNo">658</span>    return protocolFactory;<a name="line.658"></a>
+<span class="sourceLineNo">659</span>  }<a name="line.659"></a>
+<span class="sourceLineNo">660</span><a name="line.660"></a>
+<span class="sourceLineNo">661</span>  protected ExecutorService createExecutor(BlockingQueue&lt;Runnable&gt; callQueue,<a name="line.661"></a>
+<span class="sourceLineNo">662</span>      int minWorkers, int maxWorkers) {<a name="line.662"></a>
+<span class="sourceLineNo">663</span>    ThreadFactoryBuilder tfb = new ThreadFactoryBuilder();<a name="line.663"></a>
+<span class="sourceLineNo">664</span>    tfb.setDaemon(true);<a name="line.664"></a>
+<span class="sourceLineNo">665</span>    tfb.setNameFormat("thrift-worker-%d");<a name="line.665"></a>
+<span class="sourceLineNo">666</span>    ThreadPoolExecutor threadPool = new THBaseThreadPoolExecutor(minWorkers, maxWorkers,<a name="line.666"></a>
+<span class="sourceLineNo">667</span>        Long.MAX_VALUE, TimeUnit.SECONDS, callQueue, tfb.build(), metrics);<a name="line.667"></a>
+<span class="sourceLineNo">668</span>    threadPool.allowCoreThreadTimeOut(true);<a name="line.668"></a>
+<span class="sourceLineNo">669</span>    return threadPool;<a name="line.669"></a>
+<span class="sourceLineNo">670</span>  }<a name="line.670"></a>
+<span class="sourceLineNo">671</span><a name="line.671"></a>
+<span class="sourceLineNo">672</span>  protected InetAddress getBindAddress(Configuration conf)<a name="line.672"></a>
+<span class="sourceLineNo">673</span>      throws UnknownHostException {<a name="line.673"></a>
+<span class="sourceLineNo">674</span>    String bindAddressStr = conf.get(BIND_CONF_KEY, DEFAULT_BIND_ADDR);<a name="line.674"></a>
+<span class="sourceLineNo">675</span>    return InetAddress.getByName(bindAddressStr);<a name="line.675"></a>
+<span class="sourceLineNo">676</span>  }<a name="line.676"></a>
+<span class="sourceLineNo">677</span><a name="line.677"></a>
+<span class="sourceLineNo">678</span><a name="line.678"></a>
+<span class="sourceLineNo">679</span>  public static void registerFilters(Configuration conf) {<a name="line.679"></a>
+<span class="sourceLineNo">680</span>    String[] filters = conf.getStrings(THRIFT_FILTERS);<a name="line.680"></a>
+<span class="sourceLineNo">681</span>    Splitter splitter = Splitter.on(':');<a name="line.681"></a>
+<span class="sourceLineNo">682</span>    if(filters != null) {<a name="line.682"></a>
+<span class="sourceLineNo">683</span>      for(String filterClass: filters) {<a name="line.683"></a>
+<span class="sourceLineNo">684</span>        List&lt;String&gt; filterPart = splitter.splitToList(filterClass);<a name="line.684"></a>
+<span class="sourceLineNo">685</span>        if(filterPart.size() != 2) {<a name="line.685"></a>
+<span class="sourceLineNo">686</span>          LOG.warn("Invalid filter specification " + filterClass + " - skipping");<a name="line.686"></a>
+<span class="sourceLineNo">687</span>        } else {<a name="line.687"></a>
+<span class="sourceLineNo">688</span>          ParseFilter.registerFilter(filterPart.get(0), filterPart.get(1));<a name="line.688"></a>
+<span class="sourceLineNo">689</span>        }<a name="line.689"></a>
+<span class="sourceLineNo">690</span>      }<a name="line.690"></a>
+<span class="sourceLineNo">691</span>    }<a name="line.691"></a>
+<span class="sourceLineNo">692</span>  }<a name="line.692"></a>
+<span class="sourceLineNo">693</span><a name="line.693"></a>
+<span class="sourceLineNo">694</span>  /**<a name="line.694"></a>
+<span class="sourceLineNo">695</span>   * Add options to command lines<a name="line.695"></a>
+<span class="sourceLineNo">696</span>   * @param options options<a name="line.696"></a>
+<span class="sourceLineNo">697</span>   */<a name="line.697"></a>
+<span class="sourceLineNo">698</span>  protected void addOptions(Options options) {<a name="line.698"></a>
+<span class="sourceLineNo">699</span>    options.addOption("b", BIND_OPTION, true, "Address to bind " +<a name="line.699"></a>
+<span class="sourceLineNo">700</span>        "the Thrift server to. [default: " + DEFAULT_BIND_ADDR + "]");<a name="line.700"></a>
+<span class="sourceLineNo">701</span>    options.addOption("p", PORT_OPTION, true, "Port to bind to [default: " +<a name="line.701"></a>
+<span class="sourceLineNo">702</span>        DEFAULT_LISTEN_PORT + "]");<a name="line.702"></a>
+<span class="sourceLineNo">703</span>    options.addOption("f", FRAMED_OPTION, false, "Use framed transport");<a name="line.703"></a>
+<span class="sourceLineNo">704</span>    options.addOption("c", COMPACT_OPTION, false, "Use the compact protocol");<a name="line.704"></a>
+<span class="sourceLineNo">705</span>    options.addOption("h", "help", false, "Print help information");<a name="line.705"></a>
+<span class="sourceLineNo">706</span>    options.addOption("s", SELECTOR_NUM_OPTION, true, "How many selector threads to use.");<a name="line.706"></a>
+<span class="sourceLineNo">707</span>    options.addOption(null, INFOPORT_OPTION, true, "Port for web UI");<a name="line.707"></a>
+<span class="sourceLineNo">708</span><a name="line.708"></a>
+<span class="sourceLineNo">709</span>    options.addOption("m", MIN_WORKERS_OPTION, true,<a name="line.709"></a>
+<span class="sourceLineNo">710</span>        "The minimum number of worker threads for " +<a name="line.710"></a>
+<span class="sourceLineNo">711</span>            ImplType.THREAD_POOL.simpleClassName());<a name="line.711"></a>
+<span class="sourceLineNo">712</span><a name="line.712"></a>
+<span class="sourceLineNo">713</span>    options.addOption("w", MAX_WORKERS_OPTION, true,<a name="line.713"></a>
+<span class="sourceLineNo">714</span>        "The maximum number of worker threads for " +<a name="line.714"></a>
+<span class="sourceLineNo">715</span>            ImplType.THREAD_POOL.simpleClassName());<a name="line.715"></a>
+<span class="sourceLineNo">716</span><a name="line.716"></a>
+<span class="sourceLineNo">717</span>    options.addOption("q", MAX_QUEUE_SIZE_OPTION, true,<a name="line.717"></a>
+<span class="sourceLineNo">718</span>        "The maximum number of queued requests in " +<a name="line.718"></a>
+<span class="sourceLineNo">719</span>            ImplType.THREAD_POOL.simpleClassName());<a name="line.719"></a>
+<span class="sourceLineNo">720</span><a name="line.720"></a>
+<span class="sourceLineNo">721</span>    options.addOption("k", KEEP_ALIVE_SEC_OPTION, true,<a name="line.721"></a>
+<span class="sourceLineNo">722</span>        "The amount of time in secods to keep a thread alive when idle in " +<a name="line.722"></a>
+<span class="sourceLineNo">723</span>            ImplType.THREAD_POOL.simpleClassName());<a name="line.723"></a>
+<span class="sourceLineNo">724</span><a name="line.724"></a>
+<span class="sourceLineNo">725</span>    options.addOption("t", READ_TIMEOUT_OPTION, true,<a name="line.725"></a>
+<span class="sourceLineNo">726</span>        "Amount of time in milliseconds before a server thread will timeout " +<a name="line.726"></a>
+<span class="sourceLineNo">727</span>            "waiting for client to send data on a connected socket. Currently, " +<a name="line.727"></a>
+<span class="sourceLineNo">728</span>            "only applies to TBoundedThreadPoolServer");<a name="line.728"></a>
+<span class="sourceLineNo">729</span><a name="line.729"></a>
+<span class="sourceLineNo">730</span>    options.addOptionGroup(ImplType.createOptionGroup());<a name="line.730"></a>
+<span class="sourceLineNo">731</span>  }<a name="line.731"></a>
+<span class="sourceLineNo">732</span><a name="line.732"></a>
+<span class="sourceLineNo">733</span>  protected void parseCommandLine(CommandLine cmd, Options options) throws ExitCodeException {<a name="line.733"></a>
+<span class="sourceLineNo">734</span>    // Get port to bind to<a name="line.734"></a>
+<span class="sourceLineNo">735</span>    try {<a name="line.735"></a>
+<span class="sourceLineNo">736</span>      if (cmd.hasOption(PORT_OPTION)) {<a name="line.736"></a>
+<span class="sourceLineNo">737</span>        int listenPort = Integer.parseInt(cmd.getOptionValue(PORT_OPTION));<a name="line.737"></a>
+<span class="sourceLineNo">738</span>        conf.setInt(PORT_CONF_KEY, listenPort);<a name="line.738"></a>
+<span class="sourceLineNo">739</span>      }<a name="line.739"></a>
+<span class="sourceLineNo">740</span>    } catch (NumberFormatException e) {<a name="line.740"></a>
+<span class="sourceLineNo">741</span>      LOG.error("Could not parse the value provided for the port option", e);<a name="line.741"></a>
+<span class="sourceLineNo">742</span>      printUsageAndExit(options, -1);<a name="line.742"></a>
+<span class="sourceLineNo">743</span>    }<a name="line.743"></a>
+<span class="sourceLineNo">744</span>    // check for user-defined info server port setting, if so override the conf<a name="line.744"></a>
+<span class="sourceLineNo">745</span>    try {<a name="line.745"></a>
+<span class="sourceLineNo">746</span>      if (cmd.hasOption(INFOPORT_OPTION)) {<a name="line.746"></a>
+<span class="sourceLineNo">747</span>        String val = cmd.getOptionValue(INFOPORT_OPTION);<a name="line.747"></a>
+<span class="sourceLineNo">748</span>        conf.setInt(THRIFT_INFO_SERVER_PORT, Integer.parseInt(val));<a name="line.748"></a>
+<span class="sourceLineNo">749</span>        LOG.debug("Web UI port set to " + val);<a name="line.749"></a>
+<span class="sourceLineNo">750</span>      }<a name="line.750"></a>
+<span class="sourceLineNo">751</span>    } catch (NumberFormatException e) {<a name="line.751"></a>
+<span class="sourceLineNo">752</span>      LOG.error("Could not parse the value provided for the " + INFOPORT_OPTION +<a name="line.752"></a>
+<span class="sourceLineNo">753</span>          " option", e);<a name="line.753"></a>
+<span class="sourceLineNo">754</span>      printUsageAndExit(options, -1);<a name="line.754"></a>
+<span class="sourceLineNo">755</span>    }<a name="line.755"></a>
+<span class="sourceLineNo">756</span>    // Make optional changes to the configuration based on command-line options<a name="line.756"></a>
+<span class="sourceLineNo">757</span>    optionToConf(cmd, MIN_WORKERS_OPTION,<a name="line.757"></a>
+<span class="sourceLineNo">758</span>        conf, TBoundedThreadPoolServer.MIN_WORKER_THREADS_CONF_KEY);<a name="line.758"></a>
+<span class="sourceLineNo">759</span>    optionToConf(cmd, MAX_WORKERS_OPTION,<a name="line.759"></a>
+<span class="sourceLineNo">760</span>        conf, TBoundedThreadPoolServer.MAX_WORKER_THREADS_CONF_KEY);<a name="line.760"></a>
+<span class="sourceLineNo">761</span>    optionToConf(cmd, MAX_QUEUE_SIZE_OPTION,<a name="line.761"></a>
+<span class="sourceLineNo">762</span>        conf, TBoundedThreadPoolServer.MAX_QUEUED_REQUESTS_CONF_KEY);<a name="line.762"></a>
+<span class="sourceLineNo">763</span>    optionToConf(cmd, KEEP_ALIVE_SEC_OPTION,<a name="line.763"></a>
+<span class="sourceLineNo">764</span>        conf, TBoundedThreadPoolServer.THREAD_KEEP_ALIVE_TIME_SEC_CONF_KEY);<a name="line.764"></a>
+<span class="sourceLineNo">765</span>    optionToConf(cmd, READ_TIMEOUT_OPTION, conf, THRIFT_SERVER_SOCKET_READ_TIMEOUT_KEY);<a name="line.765"></a>
+<span class="sourceLineNo">766</span>    optionToConf(cmd, SELECTOR_NUM_OPTION, conf, THRIFT_SELECTOR_NUM);<a name="line.766"></a>
+<span class="sourceLineNo">767</span><a name="line.767"></a>
+<span class="sourceLineNo">768</span>    // Set general thrift server options<a name="line.768"></a>
+<span class="sourceLineNo">769</span>    boolean compact = cmd.hasOption(COMPACT_OPTION) ||<a name="line.769"></a>
+<span class="sourceLineNo">770</span>        conf.getBoolean(COMPACT_CONF_KEY, false);<a name="line.770"></a>
+<span class="sourceLineNo">771</span>    conf.setBoolean(COMPACT_CONF_KEY, compact);<a name="line.771"></a>
+<span class="sourceLineNo">772</span>    boolean framed = cmd.hasOption(FRAMED_OPTION) ||<a name="line.772"></a>
+<span class="sourceLineNo">773</span>        conf.getBoolean(FRAMED_CONF_KEY, false);<a name="line.773"></a>
+<span class="sourceLineNo">774</span>    conf.setBoolean(FRAMED_CONF_KEY, framed);<a name="line.774"></a>
 <span class="sourceLineNo">775</span><a name="line.775"></a>
-<span class="sourceLineNo">776</span><a name="line.776"></a>
-<span class="sourceLineNo">777</span>    ImplType.setServerImpl(cmd, conf);<a name="line.777"></a>
-<span class="sourceLineNo">778</span>  }<a name="line.778"></a>
-<span class="sourceLineNo">779</span><a name="line.779"></a>
-<span class="sourceLineNo">780</span>  /**<a name="line.780"></a>
-<span class="sourceLineNo">781</span>   * Parse the command line options to set parameters the conf.<a name="line.781"></a>
-<span class="sourceLineNo">782</span>   */<a name="line.782"></a>
-<span class="sourceLineNo">783</span>  protected void processOptions(final String[] args) throws Exception {<a name="line.783"></a>
-<span class="sourceLineNo">784</span>    if (args == null || args.length == 0) {<a name="line.784"></a>
-<span class="sourceLineNo">785</span>      return;<a name="line.785"></a>
-<span class="sourceLineNo">786</span>    }<a name="line.786"></a>
-<span class="sourceLineNo">787</span>    Options options = new Options();<a name="line.787"></a>
-<span class="sourceLineNo">788</span>    addOptions(options);<a name="line.788"></a>
-<span class="sourceLineNo">789</span><a name="line.789"></a>
-<span class="sourceLineNo">790</span>    CommandLineParser parser = new DefaultParser();<a name="line.790"></a>
-<span class="sourceLineNo">791</span>    CommandLine cmd = parser.parse(options, args);<a name="line.791"></a>
-<span class="sourceLineNo">792</span><a name="line.792"></a>
-<span class="sourceLineNo">793</span>    if (cmd.hasOption("help")) {<a name="line.793"></a>
-<span class="sourceLineNo">794</span>      printUsageAndExit(options, 1);<a name="line.794"></a>
-<span class="sourceLineNo">795</span>    }<a name="line.795"></a>
-<span class="sourceLineNo">796</span>    parseCommandLine(cmd, options);<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>  public void stop() {<a name="line.799"></a>
-<span class="sourceLineNo">800</span>    if (this.infoServer != null) {<a name="line.800"></a>
-<span class="sourceLineNo">801</span>      LOG.info("Stopping infoServer");<a name="line.801"></a>
-<span class="sourceLineNo">802</span>      try {<a name="line.802"></a>
-<span class="sourceLineNo">803</span>        this.infoServer.stop();<a name="line.803"></a>
-<span class="sourceLineNo">804</span>      } catch (Exception ex) {<a name="line.804"></a>
-<span class="sourceLineNo">805</span>        LOG.error("Failed to stop infoServer", ex);<a name="line.805"></a>
-<span class="sourceLineNo">806</span>      }<a name="line.806"></a>
-<span class="sourceLineNo">807</span>    }<a name="line.807"></a>
-<span class="sourceLineNo">808</span>    if (pauseMonitor != null) {<a name="line.808"></a>
-<span class="sourceLineNo">809</span>      pauseMonitor.stop();<a name="line.809"></a>
-<span class="sourceLineNo">810</span>    }<a name="line.810"></a>
-<span class="sourceLineNo">811</span>    if (tserver != null) {<a name="line.811"></a>
-<span class="sourceLineNo">812</span>      tserver.stop();<a name="line.812"></a>
-<span class="sourceLineNo">813</span>      tserver = null;<a name="line.813"></a>
-<span class="sourceLineNo">814</span>    }<a name="line.814"></a>
-<span class="sourceLineNo">815</span>    if (httpServer != null) {<a name="line.815"></a>
-<span class="sourceLineNo">816</span>      try {<a name="line.816"></a>
-<span class="sourceLineNo">817</span>        httpServer.stop();<a name="line.817"></a>
-<span class="sourceLineNo">818</span>        httpServer = null;<a name="line.818"></a>
-<span class="sourceLineNo">819</span>      } catch (Exception e) {<a name="line.819"></a>
-<span class="sourceLineNo">820</span>        LOG.error("Problem encountered in shutting down HTTP server", e);<a name="line.820"></a>
-<span class="sourceLineNo">821</span>      }<a name="line.821"></a>
-<span class="sourceLineNo">822</span>      httpServer = null;<a name="line.822"></a>
-<span class="sourceLineNo">823</span>    }<a name="line.823"></a>
-<span class="sourceLineNo">824</span>  }<a name="line.824"></a>
-<span class="sourceLineNo">825</span><a name="line.825"></a>
-<span class="sourceLineNo">826</span>  protected static void optionToConf(CommandLine cmd, String option,<a name="line.826"></a>
-<span class="sourceLineNo">827</span>      Configuration conf, String destConfKey) {<a name="line.827"></a>
-<span class="sourceLineNo">828</span>    if (cmd.hasOption(option)) {<a name="line.828"></a>
-<span class="sourceLineNo">829</span>      String value = cmd.getOptionValue(option);<a name="line.829"></a>
-<span class="sourceLineNo">830</span>      LOG.info("Set configuration key:" + destConfKey + " value:" + value);<a name="line.830"></a>
-<span class="sourceLineNo">831</span>      conf.set(destConfKey, value);<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>  /**<a name="line.835"></a>
-<span class="sourceLineNo">836</span>   * Run without any command line arguments<a name="line.836"></a>
-<span class="sourceLineNo">837</span>   * @return exit code<a name="line.837"></a>
-<span class="sourceLineNo">838</span>   * @throws Exception exception<a name="line.838"></a>
-<span class="sourceLineNo">839</span>   */<a name="line.839"></a>
-<span class="sourceLineNo">840</span>  public int run() throws Exception {<a name="line.840"></a>
-<span class="sourceLineNo">841</span>    return run(null);<a name="line.841"></a>
-<span class="sourceLineNo">842</span>  }<a name="line.842"></a>
-<span class="sourceLineNo">843</span><a name="line.843"></a>
-<span class="sourceLineNo">844</span>  @Override<a name="line.844"></a>
-<span class="sourceLineNo">845</span>  public int run(String[] strings) throws Exception {<a name="line.845"></a>
-<span class="sourceLineNo">846</span>    processOptions(strings);<a name="line.846"></a>
-<span class="sourceLineNo">847</span>    setupParamters();<a name="line.847"></a>
-<span class="sourceLineNo">848</span>    startInfoServer();<a name="line.848"></a>
-<span class="sourceLineNo">849</span>    if (httpEnabled) {<a name="line.849"></a>
-<span class="sourceLineNo">850</span>      setupHTTPServer();<a name="line.850"></a>
-<span class="sourceLineNo">851</span>      httpServer.start();<a name="line.851"></a>
-<span class="sourceLineNo">852</span>      httpServer.join();<a name="line.852"></a>
-<span class="sourceLineNo">853</span>    } else {<a name="line.853"></a>
-<span class="sourceLineNo">854</span>      setupServer();<a name="line.854"></a>
-<span class="sourceLineNo">855</span>      tserver.serve();<a name="line.855"></a>
-<span class="sourceLineNo">856</span>    }<a name="line.856"></a>
-<span class="sourceLineNo">857</span>    return 0;<a name="line.857"></a>
-<span class="sourceLineNo">858</span>  }<a name="line.858"></a>
-<span class="sourceLineNo">859</span><a name="line.859"></a>
-<span class="sourceLineNo">860</span>  public static void main(String [] args) throws Exception {<a name="line.860"></a>
-<span class="sourceLineNo">861</span>    LOG.info("***** STARTING service '" + ThriftServer.class.getSimpleName() + "' *****");<a name="line.861"></a>
-<span class="sourceLineNo">862</span>    VersionInfo.logVersion();<a name="line.862"></a>
-<span class="sourceLineNo">863</span>    final Configuration conf = HBaseConfiguration.create();<a name="line.863"></a>
-<span class="sourceLineNo">864</span>    // for now, only time we return is on an argument error.<a name="line.864"></a>
-<span class="sourceLineNo">865</span>    final int status = ToolRunner.run(conf, new ThriftServer(conf), args);<a name="line.865"></a>
-<span class="sourceLineNo">866</span>    LOG.info("***** STOPPING service '" + ThriftServer.class.getSimpleName() + "' *****");<a name="line.866"></a>
-<span class="sourceLineNo">867</span>    System.exit(status);<a name="line.867"></a>
-<span class="sourceLineNo">868</span>  }<a name="line.868"></a>
-<span class="sourceLineNo">869</span>}<a name="line.869"></a>
+<span class="sourceLineNo">776</span>    optionToConf(cmd, BIND_OPTION, conf, BIND_CONF_KEY);<a name="line.776"></a>
+<span class="sourceLineNo">777</span><a name="line.777"></a>
+<span class="sourceLineNo">778</span><a name="line.778"></a>
+<span class="sourceLineNo">779</span>    ImplType.setServerImpl(cmd, conf);<a name="line.779"></a>
+<span class="sourceLineNo">780</span>  }<a name="line.780"></a>
+<span class="sourceLineNo">781</span><a name="line.781"></a>
+<span class="sourceLineNo">782</span>  /**<a name="line.782"></a>
+<span class="sourceLineNo">783</span>   * Parse the command line options to set parameters the conf.<a name="line.783"></a>
+<span class="sourceLineNo">784</span>   */<a name="line.784"></a>
+<span class="sourceLineNo">785</span>  protected void processOptions(final String[] args) throws Exception {<a name="line.785"></a>
+<span class="sourceLineNo">786</span>    if (args == null || args.length == 0) {<a name="line.786"></a>
+<span class="sourceLineNo">787</span>      return;<a name="line.787"></a>
+<span class="sourceLineNo">788</span>    }<a name="line.788"></a>
+<span class="sourceLineNo">789</span>    Options options = new Options();<a name="line.789"></a>
+<span class="sourceLineNo">790</span>    addOptions(options);<a name="line.790"></a>
+<span class="sourceLineNo">791</span><a name="line.791"></a>
+<span class="sourceLineNo">792</span>    CommandLineParser parser = new DefaultParser();<a name="line.792"></a>
+<span class="sourceLineNo">793</span>    CommandLine cmd = parser.parse(options, args);<a name="line.793"></a>
+<span class="sourceLineNo">794</span><a name="line.794"></a>
+<span class="sourceLineNo">795</span>    if (cmd.hasOption("help")) {<a name="line.795"></a>
+<span class="sourceLineNo">796</span>      printUsageAndExit(options, 1);<a name="line.796"></a>
+<span class="sourceLineNo">797</span>    }<a name="line.797"></a>
+<span class="sourceLineNo">798</span>    parseCommandLine(cmd, options);<a name="line.798"></a>
+<span class="sourceLineNo">799</span>  }<a name="line.799"></a>
+<span class="sourceLineNo">800</span><a name="line.800"></a>
+<span class="sourceLineNo">801</span>  public void stop() {<a name="line.801"></a>
+<span class="sourceLineNo">802</span>    if (this.infoServer != null) {<a name="line.802"></a>
+<span class="sourceLineNo">803</span>      LOG.info("Stopping infoServer");<a name="line.803"></a>
+<span class="sourceLineNo">804</span>      try {<a name="line.804"></a>
+<span class="sourceLineNo">805</span>        this.infoServer.stop();<a name="line.805"></a>
+<span class="sourceLineNo">806</span>      } catch (Exception ex) {<a name="line.806"></a>
+<span class="sourceLineNo">807</span>        LOG.error("Failed to stop infoServer", ex);<a name="line.807"></a>
+<span class="sourceLineNo">808</span>      }<a name="line.808"></a>
+<span class="sourceLineNo">809</span>    }<a name="line.809"></a>
+<span class="sourceLineNo">810</span>    if (pauseMonitor != null) {<a name="line.810"></a>
+<span class="sourceLineNo">811</span>      pauseMonitor.stop();<a name="line.811"></a>
+<span class="sourceLineNo">812</span>    }<a name="line.812"></a>
+<span class="sourceLineNo">813</span>    if (tserver != null) {<a name="line.813"></a>
+<span class="sourceLineNo">814</span>      tserver.stop();<a name="line.814"></a>
+<span class="sourceLineNo">815</span>      tserver = null;<a name="line.815"></a>
+<span class="sourceLineNo">816</span>    }<a name="line.816"></a>
+<span class="sourceLineNo">817</span>    if (httpServer != null) {<a name="line.817"></a>
+<span class="sourceLineNo">818</span>      try {<a name="line.818"></a>
+<span class="sourceLineNo">819</span>        httpServer.stop();<a name="line.819"></a>
+<span class="sourceLineNo">820</span>        httpServer = null;<a name="line.820"></a>
+<span class="sourceLineNo">821</span>      } catch (Exception e) {<a name="line.821"></a>
+<span class="sourceLineNo">822</span>        LOG.error("Problem encountered in shutting down HTTP server", e);<a name="line.822"></a>
+<span class="sourceLineNo">823</span>      }<a name="line.823"></a>
+<span class="sourceLineNo">824</span>      httpServer = null;<a name="line.824"></a>
+<span class="sourceLineNo">825</span>    }<a name="line.825"></a>
+<span class="sourceLineNo">826</span>  }<a name="line.826"></a>
+<span class="sourceLineNo">827</span><a name="line.827"></a>
+<span class="sourceLineNo">828</span>  protected static void optionToConf(CommandLine cmd, String option,<a name="line.828"></a>
+<span class="sourceLineNo">829</span>      Configuration conf, String destConfKey) {<a name="line.829"></a>
+<span class="sourceLineNo">830</span>    if (cmd.hasOption(option)) {<a name="line.830"></a>
+<span class="sourceLineNo">831</span>      String value = cmd.getOptionValue(option);<a name="line.831"></a>
+<span class="sourceLineNo">832</span>      LOG.info("Set configuration key:" + destConfKey + " value:" + value);<a name="line.832"></a>
+<span class="sourceLineNo">833</span>      conf.set(destConfKey, value);<a name="line.833"></a>
+<span class="sourceLineNo">834</span>    }<a name="line.834"></a>
+<span class="sourceLineNo">835</span>  }<a name="line.835"></a>
+<span class="sourceLineNo">836</span><a name="line.836"></a>
+<span class="sourceLineNo">837</span>  /**<a name="line.837"></a>
+<span class="sourceLineNo">838</span>   * Run without any command line arguments<a name="line.838"></a>
+<span class="sourceLineNo">839</span>   * @return exit code<a name="line.839"></a>
+<span class="sourceLineNo">840</span>   * @throws Exception exception<a name="line.840"></a>
+<span class="sourceLineNo">841</span>   */<a name="line.841"></a>
+<span class="sourceLineNo">842</span>  public int run() throws Exception {<a name="line.842"></a>
+<span class="sourceLineNo">843</span>    return run(null);<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>  @Override<a name="line.846"></a>
+<span class="sourceLineNo">847</span>  public int run(String[] strings) throws Exception {<a name="line.847"></a>
+<span class="sourceLineNo">848</span>    processOptions(strings);<a name="line.848"></a>
+<span class="sourceLineNo">849</span>    setupParamters();<a name="line.849"></a>
+<span class="sourceLineNo">850</span>    if (httpEnabled) {<a name="line.850"></a>
+<span class="sourceLineNo">851</span>      setupHTTPServer();<a name="line.851"></a>
+<span class="sourceLineNo">852</span>    } else {<a name="line.852"></a>
+<span class="sourceLineNo">853</span>      setupServer();<a name="line.853"></a>
+<span class="sourceLineNo">854</span>    }<a name="line.854"></a>
+<span class="sourceLineNo">855</span>    serviceUGI.doAs(new PrivilegedAction&lt;Object&gt;() {<a name="line.855"></a>
+<span class="sourceLineNo">856</span>      @Override<a name="line.856"></a>
+<span class="sourceLineNo">857</span>      public Object run() {<a name="line.857"></a>
+<span class="sourceLineNo">858</span>        try {<a name="line.858"></a>
+<span class="sourceLineNo">859</span>          startInfoServer();<a name="line.859"></a>
+<span class="sourceLineNo">860</span>          if (httpEnabled) {<a name="line.860"></a>
+<span class="sourceLineNo">861</span>            httpServer.start();<a name="line.861"></a>
+<span class="sourceLineNo">862</span>            httpServer.join();<a name="line.862"></a>
+<span class="sourceLineNo">863</span>          } else {<a name="line.863"></a>
+<span class="sourceLineNo">864</span>            tserver.serve();<a name="line.864"></a>
+<span class="sourceLineNo">865</span>          }<a name="line.865"></a>
+<span class="sourceLineNo">866</span>        } catch (Exception e) {<a name="line.866"></a>
+<span class="sourceLineNo">867</span>          LOG.error(HBaseMarkers.FATAL, "Cannot run ThriftServer", e);<a name="line.867"></a>
+<span class="sourceLineNo">868</span><a name="line.868"></a>
+<span class="sourceLineNo">869</span>          System.exit(-1);<a name="line.869"></a>
+<span class="sourceLineNo">870</span>        }<a name="line.870"></a>
+<span class="sourceLineNo">871</span>        return null;<a name="line.871"></a>
+<span class="sourceLineNo">872</span>      }<a name="line.872"></a>
+<span class="sourceLineNo">873</span>    });<a name="line.873"></a>
+<span class="sourceLineNo">874</span>    return 0;<a name="line.874"></a>
+<span class="sourceLineNo">875</span>  }<a name="line.875"></a>
+<span class="sourceLineNo">876</span><a name="line.876"></a>
+<span class="sourceLineNo">877</span>  public static void main(String [] args) throws Exception {<a name="line.877"></a>
+<span class="sourceLineNo">878</span>    LOG.info("***** STARTING service '" + ThriftServer.class.getSimpleName() + "' *****");<a name="line.878"></a>
+<span class="sourceLineNo">879</span>    VersionInfo.logVersion();<a name="line.879"></a>
+<span class="sourceLineNo">880</span>    final Configuration conf = HBaseConfiguration.create();<a name="line.880"></a>
+<span class="sourceLineNo">881</span>    // for now, only time we return is on an argument error.<a name="line.881"></a>
+<span class="sourceLineNo">882</span>    final int status = ToolRunner.run(conf, new ThriftServer(conf), args);<a name="line.882"></a>
+<span class="sourceLineNo">883</span>    LOG.info("***** STOPPING service '" + ThriftServer.class.getSimpleName() + "' *****");<a name="line.883"></a>
+<span class="sourceLineNo">884</span>    System.exit(status);<a name="line.884"></a>
+<span class="sourceLineNo">885</span>  }<a name="line.885"></a>
+<span class="sourceLineNo">886</span>}<a name="line.886"></a>
 
 
 
diff --git a/downloads.html b/downloads.html
index 640f3ae..9afb6ef 100644
--- a/downloads.html
+++ b/downloads.html
@@ -466,7 +466,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/export_control.html b/export_control.html
index 1859a10..00974b0 100644
--- a/export_control.html
+++ b/export_control.html
@@ -197,7 +197,7 @@ for more details.</p>
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/index.html b/index.html
index cbd6c2f..ea38165 100644
--- a/index.html
+++ b/index.html
@@ -275,7 +275,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/issue-tracking.html b/issue-tracking.html
index 1327fd1..dfa1ed8 100644
--- a/issue-tracking.html
+++ b/issue-tracking.html
@@ -169,7 +169,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/mail-lists.html b/mail-lists.html
index fca5495..1edaf87 100644
--- a/mail-lists.html
+++ b/mail-lists.html
@@ -215,7 +215,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/metrics.html b/metrics.html
index 05d7a87..f22bf26 100644
--- a/metrics.html
+++ b/metrics.html
@@ -325,7 +325,7 @@ export HBASE_REGIONSERVER_OPTS=&quot;$HBASE_JMX_OPTS -Dcom.sun.management.jmxrem
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/old_news.html b/old_news.html
index 3fa9f2a..72f757b 100644
--- a/old_news.html
+++ b/old_news.html
@@ -316,7 +316,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/plugin-management.html b/plugin-management.html
index 28ce0eb..391391c 100644
--- a/plugin-management.html
+++ b/plugin-management.html
@@ -321,7 +321,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/plugins.html b/plugins.html
index 91fb595..db493c8 100644
--- a/plugins.html
+++ b/plugins.html
@@ -248,7 +248,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/poweredbyhbase.html b/poweredbyhbase.html
index b7176c7..2e1dd7f 100644
--- a/poweredbyhbase.html
+++ b/poweredbyhbase.html
@@ -650,7 +650,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/project-info.html b/project-info.html
index 9ba75fc..2ff9356 100644
--- a/project-info.html
+++ b/project-info.html
@@ -210,7 +210,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/project-reports.html b/project-reports.html
index bbe5c89..687af19 100644
--- a/project-reports.html
+++ b/project-reports.html
@@ -186,7 +186,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/project-summary.html b/project-summary.html
index 70c71ba..aa57015 100644
--- a/project-summary.html
+++ b/project-summary.html
@@ -212,7 +212,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/pseudo-distributed.html b/pseudo-distributed.html
index c8d4564..3d8cd3c 100644
--- a/pseudo-distributed.html
+++ b/pseudo-distributed.html
@@ -174,7 +174,7 @@ Running Apache HBase (TM) in pseudo-distributed mode
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/replication.html b/replication.html
index e22e931..76afd62 100644
--- a/replication.html
+++ b/replication.html
@@ -169,7 +169,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/resources.html b/resources.html
index 0b4bbb3..63e722c 100644
--- a/resources.html
+++ b/resources.html
@@ -197,7 +197,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/source-repository.html b/source-repository.html
index d9da826..ed62b80 100644
--- a/source-repository.html
+++ b/source-repository.html
@@ -180,7 +180,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/sponsors.html b/sponsors.html
index cdec41c..3e5cca5 100644
--- a/sponsors.html
+++ b/sponsors.html
@@ -199,7 +199,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/supportingprojects.html b/supportingprojects.html
index 9635a88..8bb4682 100644
--- a/supportingprojects.html
+++ b/supportingprojects.html
@@ -390,7 +390,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
diff --git a/team-list.html b/team-list.html
index 859dc44..b90bda1 100644
--- a/team-list.html
+++ b/team-list.html
@@ -731,7 +731,7 @@
         <div class="row">
             <p>Copyright &copy;2007&#x2013;2021
 <a href="https://www.apache.org/">The Apache Software Foundation</a>.
-All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-03</li>
+All rights reserved.        <li id="publishDate" class="pull-right">Last Published: 2021-06-04</li>
 </p>
         </div>
         <p id="poweredBy" class="pull-right"><a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>

Mime
View raw message