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

  • Home
  • SEARCH
  • 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 8322759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:29:32+00:00 2026-06-08T23:29:32+00:00

I have to join tables in Hbase. I integrated HIVE and HBase and that

  • 0

I have to join tables in Hbase.

I integrated HIVE and HBase and that is working well. I can query using HIVE.

But can somebody help me how to join tables in HBase without using HIVE. I think using mapreduce we can achieve this, if so can anybody share a working example that I can refer.

Please share your opinions.

I have an approach in mind. That is,

If I need to JOIN tables A x B x C;
I may use TableMapReduceUtil to iterate over A, then get Data from B and C inside the TableMapper. Then use the TableReducer to write back to another table Y.

Will this approach be a good one.

  • 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-08T23:29:34+00:00Added an answer on June 8, 2026 at 11:29 pm

    That is certainly an approach, but if you are doing 2 random reads per scanned row then your speed will plummet. If you are filtering the rows out significantly or have a small dataset in A that may not be an issue.

    Sort-merge Join

    However the best approach, which will be available in HBase 0.96, is the MultipleTableInput method. This means that it will scan table A and write it’s output with a unique key that will allow table B to match up.

    E.g. Table A emits (b_id, a_info) and Table B will emit (b_id, b_info) merging together in the reducer.

    This is an example of a sort-merge join.

    Nested-Loop Join

    If you are joining on the row key or the joining attribute is sorted in line with table B, you can have a instance of a scanner in each task which sequentially reads from table B until it finds what it’s looking for.

    E.g. Table A row key = “companyId” and Table B row key = “companyId_employeeId”. Then for each Company in Table A you can get all the employees using the nest-loop algorithm.

    Pseudocode:

    for(company in TableA):
        for(employee in TableB):
            if employee.company_id == company.id:
                emit(company.id, employee)
    

    This is an example of a nest-loop join.

    More detailed join algorithms are here:

    • http://en.wikipedia.org/wiki/Nested_loop_join
    • http://en.wikipedia.org/wiki/Hash_join
    • http://en.wikipedia.org/wiki/Sort-merge_join
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i join tables using column value? I have three tables as listed
I have a dynamic search query with join multiple tables, for showing sum and
I have two tables in my database table1, table2. I have a join query
Is is possible to programatically join two tables using Django's ORM? I have two
I have used a join query for retrieving value from two tables one is
I have two tables that I want to join together. Table1 Year, ID, Theme,
I have two tables which I want to join together using a left outer
can you help me with sql query? I have this problem: I have two
I have an application that needs to join tables from multiple databases into a
I need help constructing a CodeIgniter Datamapper ORM query that includes join fields. I

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.