Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
HBase High Performance Cookbook

You're reading from  HBase High Performance Cookbook

Product type Book
Published in Jan 2017
Publisher Packt
ISBN-13 9781783983063
Pages 350 pages
Edition 1st Edition
Languages
Author (1):
Ruchir Choudhry Ruchir Choudhry
Profile icon Ruchir Choudhry
Toc

Table of Contents (19) Chapters close

HBase High Performance Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
1. Configuring HBase 2. Loading Data from Various DBs 3. Working with Large Distributed Systems Part I 4. Working with Large Distributed Systems Part II 5. Working with Scalable Structure of tables 6. HBase Clients 7. Large-Scale MapReduce 8. HBase Performance Tuning 9. Performing Advanced Tasks on HBase 10. Optimizing Hbase for Cloud 11. Case Study Index

Accessing HBase data with hive


The Hive architecture is by design scalable and can easily scale for hundreds or millions of users; clubbing it with Hbase makes the right integration choice. It also make Hbase interoperate with Hive; a simple Hbase table can be accessed from Hive as if it was a Hive table itself.

A single hive query can perform joins, unions, and Cartesian joins by aggregating a combination of Hbase and Hive tables.

Similarly, the inserts can also be applied between Hbase and native Hive tables.

In a nutshell, we can solve the following usecase:

  • Incremental refresh problems by keeping a near real-time replica of MySql data in Hbase

  • We can pick and chose when to use Hbase and when to use native Hive tables as hive tables are much faster to read and write.

How to do it …

Connecting Hive to Hbase:

  1. I am assuming your EMR cluster is still running and you are able to connect using putty or directly ssh to the cluster.

  2. Write hive in the command shell and you will be connected to the hive...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime