In order to install Hive, we recommend that you use a freely available commercial Hadoop distribution as described in Chapter 1, Getting Started with Hadoop v2. Another alternative is to use Apache Bigtop to install Hive. Refer to the Bigtop-related recipe in Chapter 1, Getting Started with Hadoop v2 for steps on installation of Hive using the Apache Bigtop distribution.
This section describes how to get started with Hive.
If you already have a working Hive installation, start the Hive Command Line Interface (CLI) by executing
hive
in the command prompt and skip to step 4:$ hive
In case you don't have a working Hive and Hadoop installation, the following couple of steps will guide you on how to install Hive with the MapReduce local mode. This is recommended only for learning and testing purposes. Download and extract the latest Hive version from http://hive.apache.org/releases.html:
$ tar -zxvf hive-0.14.0.tar.gz
Start Hive by running the following...