1-844-696-6465 (US)        +91 77600 44484        help@dezyre.com

what is the difference between hive and hbase (NoSql) ???



0
what is the difference between hive and hbase (which is a NoSql) ?
And when to use hive and when to use hbase (nosql) ?? and hive falls in which category a> simple sql or b> nosql ???

1 Answer(s)


0

Hi Aditya,
Hbase is NoSql database.
Apache Hive is an effective standard for SQL-in-Hadoop. Hive is a front end for parsing SQL statements, generating logical plans, optimizing logical plans, translating them into physical plans which are executed by MapReduce jobs. Apache Hive is designed for the data warehouse system to ease the processing of adhoc queries on massive data sets stored in HDFS and ease data aggregations.

HBase is a real time, open source, column oriented, distributed NoSql database written in Java. HBase is modelled after Google’s BigTable and represents a key value column family store. It is built on top of Apache Hadoop.

HIVE is used to query these files by defining a "virtual" table and running SQL like queries on those tables.
HBase is a full fledged NoSQL database . Difference between HBase and HIVE is that HIVE is not a database , it is a way where your files are virtually connected to a table like structure so that you can execute SQL like queries and these queries are converted to MapReduce job by HIVE and you don't have to bother about writing MapReduce jobs. HBase, on the contrary is a Database but queries are not similar to SQL queries so it is a lot of work for an end user or analyst to learn how to extract data from HBase. Not recommended for end users.

Hive falls in "None of the Category" although the syntax used by Hive is similar to SQL.

Hope this helps.
Thanks.

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password