53376/error-while-loading-data-to-hive
Hi Team,
I am facing the below error while loading data to Hive.Please help me out.
LOAD data local inpath '/home/edureka/movies.txt' into table m1; Copying data from file:/home/edureka/movies.txt Copying file: file:/home/edureka/movies.txt Failed with exception File /tmp/hive-edureka/hive_2019-03-21_15-34-02_262_4466925859141230087-1/-ext-10000/movies.txt could only be replicated to 0 nodes instead of minReplication (=1). There are 0 datanode(s) running and no node(s) are excluded in this operation. at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.chooseTarget(BlockManager.java:1384) at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:2477) at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.addBlock(NameNodeRpcServer.java:555) at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.addBlock(ClientNamenodeProtocolServerSideTranslatorPB.java:387) at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java:59582) at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:585) at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:928) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2048) at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2044) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491) at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2042) FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.CopyTask
Your data node is not running that is why you are getting the error.
Execute the below command in the terminal to solve the problem:
sudo service hadoop-master restart sudo jps
After that try to execute your Hive command
Hey Nafeesa, Itseems that Hive is not able ...READ MORE
In the command you have used, the ...READ MORE
You can try this: CREATE TABLE temp ...READ MORE
Firstly you need to understand the concept ...READ MORE
org.apache.hadoop.mapred is the Old API org.apache.hadoop.mapreduce is the ...READ MORE
Hi, You can create one directory in HDFS ...READ MORE
In your case there is no difference ...READ MORE
Hey, Yes, there is a way to check ...READ MORE
Hey! The error seems like the problem is ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.