Book Image

HBase Essentials

By : Nishant Garg
Book Image

HBase Essentials

By: Nishant Garg

Overview of this book

Table of Contents (14 chapters)

The Thrift client


The Apache Thrift software framework is used for cross-language services development. It is bundled with a code generation engine to build services that work seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, JavaScript, Node.js, Smalltalk, OCaml, Delphi, and other languages.

Tip

Get started with the Apache Thrift installation and working example at https://thrift.apache.org/.

After the Thrift compiler is installed, create a thrift file. This file is an interface definition (ID) made up of Thrift types and services. The services defined in the ID file are implemented by the server and are called by any clients. The Thrift compiler is used to convert the thrift File into source code which is used by the different client libraries and the server.

Getting started

For a Thrift-based client to make a connection to a HBase cluster, first start the Thrift server on the HBase Master as follows:

[root@localhost bin]# hbase thrift
usage: Thrift [-b <arg>] [-c] [-f] ...