Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8052047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:27:11+00:00 2026-06-05T07:27:11+00:00

Thanks to the Cloudera distribution, I have a HBase master/datanode + Thrift server running

  • 0

Thanks to the Cloudera distribution, I have a HBase master/datanode + Thrift server running on a local machine, and can code and test HBase client programs and use it, no problem.

However, I now need to use Thrift in production, and I’m not able to find documentation on how to get Thrift running with a production HBase cluster.

From what I understand, I will need to run the hbase-thrift program on the client node since the Thrift program is just another intermediate client to HBase.

So I’m guessing that I have to be able to somehow specify the master node hostname/IP to HBase-Thrift? How would I do this?

Also, any suggestions on how to scale this up in production? Do I only need a setup like this:

Client <-> Thrift client <-> HBase Master <-> Multiple HBase workers
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:27:12+00:00Added an answer on June 5, 2026 at 7:27 am

    Get it running

    You don’t have to run a Thrift server on your local machine, it can run anywhere but the RegionServers are usually a good place*. In the code you then connect to that server.

    A Python example:

    transport = TSocket.TSocket("random-regionserver", 9090)
    

    Where you’d obviously replace the random-regionserver with one of the servers you’re running the Thrift server on.

    That server gets its configuration from the usual places. If you’re using CDH then you’ll find the configuration in /etc/hbase/conf/hbase-site.xml and you’ll need to add a property hbase.zookeeper.quorum:

    <property>
      <name>hbase.zookeeper.quorum</name>
      <value>list of your zookeeper servers</value>
    </property>
    

    When you start the Thrift server from the downloaded Apache distribution this is similar except that the hbase-site.xml will probably sit in a different directory.

    Scaling it up

    One easy way to scale up right now is to keep a list of all the Regionservers in your Thrift client and pick one at random on connect. Or you create multiple connections and use a random one each time. Some language bindings (i.e. PHP) have a TSocketPool where you can pass in all your servers. Otherwise there’s some manual work you need to do.

    Using this technique all reads and writes should be more or less distributed across the Thrift servers in your cluster. Each read or write operation arriving at a Thrift server will still be translated into a Java based API call from the Thrift server which then opens a network connection to the proper Regionserver(s) to perform the requested action.

    That means that you won’t get as good a performance as you would when you use the Java API. It might help if you cache region locations yourself and hit the appropriate Thrift server but even then an additional Java API call will be made even if it ends up on the local server. HBASE-4460 would help with this scenario but this is not included in CDH3u4 or CDH4.

    * There is an issue HBASE-4460 which actually embeds a Thrift server in a Regionserver.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks in advance.. In my WP7 application I have used following code for zooming
Thanks in Advance.... Can any one knows, I have a requirement to perfrom OnclickListener
Thanks for checking. All helpful answers/comments are up voted. I have the following code,
Thanks in advance. Getting this warning when using below code: Warning: file_get_contents(test.php) [function.file-get-contents]: failed
Thanks to this post I'm getting my head around dependent method types. I have
Thanks in advance for your time. I have a deeply nested XML whose XSLT
Thanks for viewing my question. So, I have a question with iframes. I want
Thanks for any help offered. I deployed my application in server and I am
Thanks to the help of some most excellent members on here I have learned
thanks to the help of some of you i have this: Ext.define('PersistantSelectionGridPanel', { extend:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.