Note that there are some explanatory texts on larger screens.

plurals
  1. POError in loading data to Hive
    text
    copied!<p>I'm trying to load data from a csv file on my local machine to a test database created on Hive using the following command</p> <pre><code>LOAD DATA LOCAL INPATH 'bdata/tx/TX_2012.csv' INTO TABLE testdb PARTITION(dt='08-09-2012'); </code></pre> <p>However, I keep getting the following error:</p> <pre><code>Copying file: file:/root/business-data/sc_sd_tn_tx_ut/TX_6_17_2012.csv Failed with exception java.io.IOException: File /tmp/hive-root/hive_2012-08-09_13-21- 49_208_3491106775735913267/-ext-10000/TX_6_17_2012.csv could only be replicated to 0 nodes, instead of 1 at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1558) at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:696) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:563) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1388) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1384) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1382) FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.CopyTask </code></pre> <p>I can't seem to figure out what it is that's causing this error. I've even tried reinstalling and re-configuring Hive on single-node and multi-node clusters, but I still get the same error. Would anyone be able to explain what the error is and point me in the right direction?</p> <p>Note : I'm using Hadoop 1.0.3 and Hive-0.8.1 and followed the following tutorials for installation and configuration:</p> <p><a href="https://cwiki.apache.org/confluence/display/Hive/GettingStarted" rel="nofollow">https://cwiki.apache.org/confluence/display/Hive/GettingStarted</a></p> <p><a href="http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/" rel="nofollow">http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload