Docsity

Big Data Analytics – Complete Exam Notes | CUSAT B.Tech IT, Summaries of Advanced Data Analysis

Partial preview of the text

Download Big Data Analytics – Complete Exam Notes | CUSAT B.Tech IT and more Summaries Advanced Data Analysis in PDF only on Docsity!

What is Hive * Hive is a data warehouse infrastructure tool to process structured data in Hadoop. It resides on top of Hadoop to summarize Big Data, and makes querying and analyzing easy. * Initially Hive was developed by Facebook, later the Apache Software Foundation took it up and developed it further as an open source under the name Apache Hive. * Features of Hive * It stores schema in a database and processed data into HDFS. * It is designed for OLAP. ¢ It provides SQL type language for querying called HiveQL or HQL. * It is familiar, fast, scalable, and extensible. Architecture of Hive USER INTERFACES Hive QL Process Engine Execution Engine MAP REDUCE Unit Name User Interface Meta Store HiveQL Process Engine Execution Engine HDFS or HBASE Operation Hive is a data warehouse infrastructure software that can create interaction between user and HDFS. The user interfaces that Hive supports are Hive Web UI, Hive command line, and Hive HD Insight (In Windows server). Hive chooses respective database servers to store the schema or Metadata of tables, databases, columns in a table, their data types, and HDFS mapping. HiveQL is similar to SQL for querying on schema info on the Metastore. It is ong. of the replacements of traditional approach for MapReduce program. Instead of writing MapReduce program in Java, we can write a query for MapReduce job and process it. The conjunction part of HiveQL process Engine and MapReduce is Hive Execution Engine. Execution engine processes the query and generates results as same as MapReduce results. It uses the flavor of MapReduce. Hadoop distributed file system or HBASE are the data storage techniques to store data into file system. Working of Hive > [Execute Query The Hive interface such as Command Line or Web UI sends query to Driver (any database driver such as JDBC, ODBC, etc.) to execute. » 2Get Plan The driver takes the help of query compiler that parses the query to check the syntax and query plan or the requirement of query. Working of Hive > 3Get Metadata The compiler sends metadata request to Metastore (any database). > 4Send Metadata Metastore sends metadata as a response to the compiler. vY¥ ia ar ia! > | wh 2BALAV WY > 7Execute Job h ee the process of execution job is a MapReduce job. The execution engine sends the job to JobTracker, which is in Name node and it assigns this job to TaskTracker, which is in Data node. Here, the query executes MapReduce job. ’ 7.\Metadata Ops Meanwhile in execution, the execution engine can execute metadata operations with Metastore. Working of Hive > 8Fetch Result The execution engine receives the results from Data nodes. > 9Send Results The execution engine sends those resultant values to the driver. > 10Send Results The driver sends the results to Hive Interfaces.