Apache Hive is a data warehouse infrastructure built on top of
Hadoop for providing data summarization, query, and analysis. Hive
gives an SQL-like interface to query data stored in various databases
and file systems that integrate with Hadoop. The traditional SQL queries
must be implemented in the MapReduce Java API to execute SQL
applications and queries over a distributed data. Hive provides the
necessary SQL abstraction to integrate SQL-like Queries (HiveQL) into
the underlying Java API without the need to implement queries in the
low-level Java API. Since most of the data warehousing application work
with SQL based querying language, Hive supports easy portability of
SQL-based application to Hadoop.
Pre Requirements
1) A machine with Ubuntu 14.04 LTS operating system
2) Apache Hadoop 2.6.4 pre installed (How to install Hadoop on Ubuntu 14.04)
3) Apache Hive 2.1.0 pre installed (How to Install Hive on Ubuntu 14.04)
Hive Metastore Configuration
There are 3 types of metastore configurations
1) Embedded Metastore - Derby Database (See, here)
2) Local Metastore - MySQL or Postgre Database (See, MySQL here)
3) Remote Metastore - MySQL or Postgre or Seerate Database (See, MySQL here)
You can set remote metastore uri in hive-site.xml file
Please share this blog post and follow me for latest updates on
Pre Requirements
1) A machine with Ubuntu 14.04 LTS operating system
2) Apache Hadoop 2.6.4 pre installed (How to install Hadoop on Ubuntu 14.04)
3) Apache Hive 2.1.0 pre installed (How to Install Hive on Ubuntu 14.04)
Hive Metastore Configuration
There are 3 types of metastore configurations
1) Embedded Metastore - Derby Database (See, here)
2) Local Metastore - MySQL or Postgre Database (See, MySQL here)
3) Remote Metastore - MySQL or Postgre or Seerate Database (See, MySQL here)
You can set remote metastore uri in hive-site.xml file
hive-site.xml
<property> <name>hive.metastore.uris</name> <value>thrift://node1(or IP Address):9083</value> <description>IP address (or fully-qualified domain name) and port of the metastore host</description> </property>
Comments
Post a Comment