Book Image

Hadoop MapReduce v2 Cookbook - Second Edition: RAW

Book Image

Hadoop MapReduce v2 Cookbook - Second Edition: RAW

Overview of this book

Table of Contents (19 chapters)
Hadoop MapReduce v2 Cookbook Second Edition
Credits
About the Author
Acknowledgments
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Getting started with Apache Hive


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.

How to do it...

This section describes how to get started with Hive.

  1. 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
    
  2. 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 
    
  3. Start Hive by running the following...