Hive Installation in a cluster

to create new topics or reply. | New User Registration

This topic contains 1 reply, has 2 voices, and was last updated by  Vikram Dixit 1 year, 6 months ago.

  • Creator
  • #34517

    Swapnil Patil


    I am a newbie to Hadoop and Hive. I installed Hadoop and Hive in pseudodistributed mode and everything works fine. Now I am planning to set up an simple Hadoop Cluster (5 nodes) with Hive. I´ve read several documentations and instructions before but i could not find a good explanation for my question. I´m not sure, where to run all the daemons. This is my consideration:

    Node_1 (Master)

    Node_2 (Backup_Master)

    Node_1 (Datanode1)
    Node_2 (Datanode2)
    Node_3 (Datanode3)

    So, do i have to install Hive on master node or all data nodes? How Hive operates on data which is stored on datanodes?

Viewing 1 replies (of 1 total)

You must be to reply to this topic. | Create Account

  • Author
  • #35703

    Vikram Dixit

    Hi Swapnil,

    From the hive perspective, the following are the considerations:

    1. From which nodes do you plan on running the queries? If it is from one of the nodes and you plan on running queries from a particular directory all the time, installing the hive tarball/rpm only on that node suffices. Although this is not very practical (one node same directory all the time), it is a quick and dirty solution. If you plan to use ambari (which is what we recommend), you should be able to easily configure and start hive.

    2. If you plan on executing queries from more than one node and or directory, you need to setup a mysql server. This can also be setup by ambari if you choose to go that route.

    If you are going the rpm route, this link should give you more information on how to get things up and running:

    Pay particular attention to the Set up hive/hcatalog configuration files section.

    Coming to your 2nd question, if you mean to load data that is already in HDFS to hive, you can do that via the LOAD command on the hive command line.

    Please let me know if that answers your questions.


Viewing 1 replies (of 1 total)
Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.