| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>org.apache.hadoop.hbase.thrift (Apache HBase 3.0.0-SNAPSHOT API)</title> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="org.apache.hadoop.hbase.thrift (Apache HBase 3.0.0-SNAPSHOT API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li class="navBarCell1Rev">Package</li> |
| <li>Class</li> |
| <li><a href="package-use.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/hadoop/hbase/snapshot/package-summary.html">Prev Package</a></li> |
| <li><a href="../../../../../org/apache/hadoop/hbase/thrift2/package-summary.html">Next Package</a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/hadoop/hbase/thrift/package-summary.html" target="_top">Frames</a></li> |
| <li><a href="package-summary.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <div class="header"> |
| <h1 title="Package" class="title">Package org.apache.hadoop.hbase.thrift</h1> |
| <div class="docSummary"> |
| <div class="block">Provides an HBase <a href="http://incubator.apache.org/thrift/">Thrift</a> |
| service.</div> |
| </div> |
| <p>See: <a href="#package.description">Description</a></p> |
| </div> |
| <div class="contentContainer"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation"> |
| <caption><span>Interface Summary</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Interface</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/IncrementCoalescerMBean.html" title="interface in org.apache.hadoop.hbase.thrift">IncrementCoalescerMBean</a></td> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/MetricsThriftServerSource.html" title="interface in org.apache.hadoop.hbase.thrift">MetricsThriftServerSource</a></td> |
| <td class="colLast"> |
| <div class="block">Interface of a class that will export metrics about Thrift to hadoop's metrics2.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/MetricsThriftServerSourceFactory.html" title="interface in org.apache.hadoop.hbase.thrift">MetricsThriftServerSourceFactory</a></td> |
| <td class="colLast"> |
| <div class="block">Factory that will be used to create metrics sources for the two diffent types of thrift servers.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| <li class="blockList"> |
| <table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation"> |
| <caption><span>Class Summary</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Class</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/CallQueue.html" title="class in org.apache.hadoop.hbase.thrift">CallQueue</a></td> |
| <td class="colLast"> |
| <div class="block">A BlockingQueue reports waiting time in queue and queue length to |
| ThriftMetrics.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/CallQueue.Call.html" title="class in org.apache.hadoop.hbase.thrift">CallQueue.Call</a></td> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/Constants.html" title="class in org.apache.hadoop.hbase.thrift">Constants</a></td> |
| <td class="colLast"> |
| <div class="block">Thrift related constants</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/DemoClient.html" title="class in org.apache.hadoop.hbase.thrift">DemoClient</a></td> |
| <td class="colLast"> |
| <div class="block">See the instructions under hbase-examples/README.txt</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/HbaseHandlerMetricsProxy.html" title="class in org.apache.hadoop.hbase.thrift">HbaseHandlerMetricsProxy</a></td> |
| <td class="colLast"> |
| <div class="block">Converts a Hbase.Iface using InvocationHandler so that it reports process |
| time of each call to ThriftMetrics.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/HBaseServiceHandler.html" title="class in org.apache.hadoop.hbase.thrift">HBaseServiceHandler</a></td> |
| <td class="colLast"> |
| <div class="block">abstract class for HBase handler |
| providing a Connection cache and get table/admin method</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/HThreadedSelectorServerArgs.html" title="class in org.apache.hadoop.hbase.thrift">HThreadedSelectorServerArgs</a></td> |
| <td class="colLast"> |
| <div class="block">A TThreadedSelectorServer.Args that reads hadoop configuration</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/HttpDoAsClient.html" title="class in org.apache.hadoop.hbase.thrift">HttpDoAsClient</a></td> |
| <td class="colLast"> |
| <div class="block">See the instructions under hbase-examples/README.txt</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/HttpDoAsClient.KerberosConfiguration.html" title="class in org.apache.hadoop.hbase.thrift">HttpDoAsClient.KerberosConfiguration</a></td> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/IncrementCoalescer.html" title="class in org.apache.hadoop.hbase.thrift">IncrementCoalescer</a></td> |
| <td class="colLast"> |
| <div class="block">This class will coalesce increments from a thift server if |
| hbase.regionserver.thrift.coalesceIncrement is set to true.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/IncrementCoalescer.FullyQualifiedRow.html" title="class in org.apache.hadoop.hbase.thrift">IncrementCoalescer.FullyQualifiedRow</a></td> |
| <td class="colLast"> |
| <div class="block">Used to identify a cell that will be incremented.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/MetricsThriftServerSourceFactoryImpl.html" title="class in org.apache.hadoop.hbase.thrift">MetricsThriftServerSourceFactoryImpl</a></td> |
| <td class="colLast"> |
| <div class="block">Class used to create metrics sources for Thrift and Thrift2 servers.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/MetricsThriftServerSourceImpl.html" title="class in org.apache.hadoop.hbase.thrift">MetricsThriftServerSourceImpl</a></td> |
| <td class="colLast"> |
| <div class="block">Hadoop 2 version of <a href="../../../../../org/apache/hadoop/hbase/thrift/MetricsThriftServerSource.html" title="interface in org.apache.hadoop.hbase.thrift"><code>MetricsThriftServerSource</code></a> |
| |
| Implements BaseSource through BaseSourceImpl, following the pattern</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/TBoundedThreadPoolServer.html" title="class in org.apache.hadoop.hbase.thrift">TBoundedThreadPoolServer</a></td> |
| <td class="colLast"> |
| <div class="block">A bounded thread pool server customized for HBase.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/TBoundedThreadPoolServer.Args.html" title="class in org.apache.hadoop.hbase.thrift">TBoundedThreadPoolServer.Args</a></td> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/THBaseThreadPoolExecutor.html" title="class in org.apache.hadoop.hbase.thrift">THBaseThreadPoolExecutor</a></td> |
| <td class="colLast"> |
| <div class="block">A ThreadPoolExecutor customized for working with HBase thrift to update metrics before and |
| after the execution of a task.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.html" title="class in org.apache.hadoop.hbase.thrift">ThriftHBaseServiceHandler</a></td> |
| <td class="colLast"> |
| <div class="block">The HBaseServiceHandler is a glue object that connects Thrift RPC calls to the |
| HBase client API primarily defined in the Admin and Table objects.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.ResultScannerWrapper.html" title="class in org.apache.hadoop.hbase.thrift">ThriftHBaseServiceHandler.ResultScannerWrapper</a></td> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftHttpServlet.html" title="class in org.apache.hadoop.hbase.thrift">ThriftHttpServlet</a></td> |
| <td class="colLast"> |
| <div class="block">Thrift Http Servlet is used for performing Kerberos authentication if security is enabled and |
| also used for setting the user specified in "doAs" parameter.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftHttpServlet.HttpKerberosServerAction.html" title="class in org.apache.hadoop.hbase.thrift">ThriftHttpServlet.HttpKerberosServerAction</a></td> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftHttpServlet.RemoteUserIdentity.html" title="class in org.apache.hadoop.hbase.thrift">ThriftHttpServlet.RemoteUserIdentity</a></td> |
| <td class="colLast"> |
| <div class="block">Basic "struct" class to hold the final base64-encoded, authenticated GSSAPI token |
| for the user with the given principal talking to the Thrift server.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftMetrics.html" title="class in org.apache.hadoop.hbase.thrift">ThriftMetrics</a></td> |
| <td class="colLast"> |
| <div class="block">This class is for maintaining the various statistics of thrift server |
| and publishing them through the metrics interfaces.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftServer.html" title="class in org.apache.hadoop.hbase.thrift">ThriftServer</a></td> |
| <td class="colLast"> |
| <div class="block">ThriftServer- this class starts up a Thrift server which implements the |
| Hbase API specified in the Hbase.thrift IDL file.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftUtilities.html" title="class in org.apache.hadoop.hbase.thrift">ThriftUtilities</a></td> |
| <td class="colLast"> </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| <li class="blockList"> |
| <table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Summary table, listing enums, and an explanation"> |
| <caption><span>Enum Summary</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Enum</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/ImplType.html" title="enum in org.apache.hadoop.hbase.thrift">ImplType</a></td> |
| <td class="colLast"> |
| <div class="block">An enum of server implementation selections</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/MetricsThriftServerSourceFactoryImpl.FactoryStorage.html" title="enum in org.apache.hadoop.hbase.thrift">MetricsThriftServerSourceFactoryImpl.FactoryStorage</a></td> |
| <td class="colLast"> |
| <div class="block">A singleton used to make sure that only one thrift metrics source per server type is ever |
| created.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftMetrics.ThriftServerType.html" title="enum in org.apache.hadoop.hbase.thrift">ThriftMetrics.ThriftServerType</a></td> |
| <td class="colLast"> </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| <li class="blockList"> |
| <table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Exception Summary table, listing exceptions, and an explanation"> |
| <caption><span>Exception Summary</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Exception</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/HttpAuthenticationException.html" title="class in org.apache.hadoop.hbase.thrift">HttpAuthenticationException</a></td> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.IOErrorWithCause.html" title="class in org.apache.hadoop.hbase.thrift">ThriftHBaseServiceHandler.IOErrorWithCause</a></td> |
| <td class="colLast"> </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| </ul> |
| <a name="package.description"> |
| <!-- --> |
| </a> |
| <h2 title="Package org.apache.hadoop.hbase.thrift Description">Package org.apache.hadoop.hbase.thrift Description</h2> |
| <div class="block">Provides an HBase <a href="http://incubator.apache.org/thrift/">Thrift</a> |
| service. |
| |
| This directory contains a Thrift interface definition file for an HBase RPC |
| service and a Java server implementation. |
| |
| |
| <h2><a name="whatisthrift">What is Thrift?</a></h2> |
| <p><blockquote>"Thrift is a software framework for scalable cross-language services development. |
| It combines a software stack with a code generation engine to build services |
| that work efficiently and seamlessly between C++, Java, Python, PHP, Ruby, |
| Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, and OCaml."</blockquote> |
| |
| <h2>Important note</h2> |
| <p><b><u>We tried to deprecate this Thrift interface and replace it |
| with the Interface defined over in the thrift2 package only this package will not die. |
| Folks keep adding to it and fixing it up so its around for another while until someone |
| takes command and drives this package out of existence replacing it w/ an Interface that |
| better matches the hbase API (this package was modelled on old HBase API long since dropped). |
| </u></b></p> |
| |
| <h2><a name="description">Description</a></h2> |
| <p>The org.apache.hadoop.hbase.thrift.generated.Hbase.Iface HBase API is defined in the |
| file <a href="doc-files/index.html">Hbase.thrift</a> (Click the former to see the |
| thrift generated documentation of thrift interface). A server-side implementation of the API is in |
| <a href="../../../../../org/apache/hadoop/hbase/thrift/ThriftServer.html" title="class in org.apache.hadoop.hbase.thrift"><code>ThriftServer</code></a>. The generated interfaces, |
| types, and RPC utility files reside in the |
| org.apache.hadoop.hbase.thrift.generated package. |
| </p> |
| |
| <p>To start ThriftServer, use: |
| <pre> |
| ./bin/hbase-daemon.sh start thrift |
| </pre> |
| |
| <p>To stop, use: |
| <pre> |
| ./bin/hbase-daemon.sh stop thrift |
| </pre> |
| |
| These are the command line arguments the Thrift server understands in addition to <code>start</code> and <code>stop</code>: |
| <dl> |
| <dt><code>-b, --bind</code></dt> |
| <dd>Address to bind the Thrift server to. Not supported by the Nonblocking and HsHa server [default: <code>0.0.0.0</code>]</dd> |
| |
| <dt><code>-p, --port</code></dt> |
| <dd>Port to bind to [default: <code>9090</code>]</dd> |
| |
| <dt><code>-f, --framed</code></dt> |
| <dd>Use framed transport (implied when using one of the non-blocking servers)</dd> |
| |
| <dt><code>-c, --compact</code></dt> |
| <dd>Use the compact protocol [default: binary protocol]</dd> |
| |
| <dt><code>-h, --help</code></dt> |
| <dd>Displays usage information for the Thrift server</dd> |
| |
| <dt><code>-threadpool</code></dt> |
| <dd>Use the TThreadPoolServer. This is the default.</dd> |
| |
| <dt><code>-hsha</code></dt> |
| <dd>Use the THsHaServer. This implies the framed transport.</dd> |
| |
| <dt><code>-nonblocking</code></dt> |
| <dd>Use the TNonblockingServer. This implies the framed transport.</dd> |
| </dl> |
| |
| <h3><a name="details">Details</a></h3> |
| |
| <p>HBase currently uses version 0.9.0 of Apache Thrift.</p> |
| |
| <p>The files were generated by running the commands under the hbase checkout dir: |
| <pre> |
| mvn compile -Pcompile-thrift |
| </pre> |
| |
| <p>The 'thrift' binary is the Thrift compiler, and it is distributed as a part |
| of the Thrift package. Additionally, specific language runtime libraries are a |
| part of the Thrift package. A version of the Java runtime is included in HBase |
| via Maven.</p></div> |
| </div> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li class="navBarCell1Rev">Package</li> |
| <li>Class</li> |
| <li><a href="package-use.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/hadoop/hbase/snapshot/package-summary.html">Prev Package</a></li> |
| <li><a href="../../../../../org/apache/hadoop/hbase/thrift2/package-summary.html">Next Package</a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/hadoop/hbase/thrift/package-summary.html" target="_top">Frames</a></li> |
| <li><a href="package-summary.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2007–2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |