Is there a way to access existing HBase table records through Hive?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
As per the Hive HBase Integration wiki page, it’s possible using a create table command like the following:
However, keep in mind that creating a table like this in Hive 0.8 and before will only allow you to access data from your HBase table that was inserted via your corresponding Hive table. If you had any pre-existing data in your HBase table that wasn’t inserted through the Hive table, you wouldn’t be able to query it through the Hive table either.
Starting Hive 0.9, JIRA 1634, will be available which allows the Hive table to access all data present in the HBase table regardless of how it was inserted in it.