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

HDP on Linux – Installation Forum

Hive installation on one or more nodes

  • #43089
    Rahul Dev

    I installed Hive on HDP 1.3 on one node. I used the default Derby database for metastore. The Hadoop installation upon which it is based has 8 data nodes. Currently the hive client is installed on only one machine. So I have few questions
    1. When I run a command on hive, how do I know it is being executed on all the 8 nodes?
    2. Do I have to install hive client on all the nodes to be able to distribute the data to all the nodes? Reason I am asking is that the node where Hive is installed has about 600 Gb of space. If the data is distributed to all the 8 nodes I can load more directories.
    3. Sometimes while loading a hive table I am getting errors such as “could only be replicated to 0 nodes, instead of 1” followed by a java stack trace. This happens at random files. This tells me that hive data is being replicated on only 1 node. Perhaps that node is running out of disk space?


  • Author
  • #43635
    Carter Shanklin

    Hive submits M/R jobs and in principle only needs to be installed on one node. Best way to see if it is running on all nodes is to watch number of mappers your job spawns or look in the job tracker to see where mappers are running.

    Your error in point 3 is likely an HDFS configuration error, or could be a disk space issue as you suggested.

    Rahul Dev


    Thanks for your reply. The item 3 is still happening. The cluster has lot of disk space. These files that I am loading are few Gb long while each machine on the cluster has over 1.5 TB available. Any idea what configuration param should I look at? This installation is done by non-operations people and it is our first installation on multiple clusters, so it is possible we didn’t set something properly.

    Another question is about the error message. It says ;could only be replicated to 0 nodes, instead of 1′. If Hive spawns MR on all the nodes and if I am using HDFS, then should the hive table not be distributed on all the nodes rather than just one?


The forum ‘HDP on Linux – Installation’ 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.