Home Forums Hive / HCatalog Hive Installation in a cluster

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

  • Creator
    Topic
  • #34517

    Swapnil Patil
    Participant

    Hi,

    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)
    SecondaryNameNode

    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 logged in to reply to this topic.

  • Author
    Replies
  • #35703

    Vikram Dixit
    Member

    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:

    http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.3.2/bk_installing_manually_book/content/rpm-chap6.html

    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.

    https://cwiki.apache.org/Hive/languagemanual-dml.html#LanguageManualDML-Loadingfilesintotables

    Please let me know if that answers your questions.

    Thanks
    Vikram.

    Collapse
Viewing 1 replies (of 1 total)