The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Hive / HCatalog Forum

Hive Installation in a cluster

  • #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?

  • 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.


The forum ‘Hive / HCatalog’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

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.