hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gagan Brahmi <gaganbra...@gmail.com>
Subject Re: Output File could only be replicated to 0 nodes
Date Mon, 25 Jul 2016 17:00:14 GMT
There can be several reasons you see this error.

The most common ones are:

Disk Space on Datanodes - Like mentioned earlier in the thread.
Inconsistent DataNodes - You can try to restart HDFS which should clean it
up.
Bad or Unresponsive Datanode
Negative 'Block Size' in hdfs-site.xml.
Network communication issues.


Regards,
Gagan Brahmi

On Mon, Jul 25, 2016 at 9:14 AM, Gabriel Balan <gabriel.balan@oracle.com>
wrote:

>
> Hi
>
> org.apache.hadoop.ipc.RemoteException(java.io.IOException): File
> /user/pts/output/OTSOutput/_temporary/1/_temporary/attempt_1463_0008_m_000018_2/video.mp4.of.txt
> could only be replicated to 0 nodes instead of minReplication (=1).  *There
> are 9 datanode(s) running* and no node(s) are excluded in this operation.
>
> Can it be there is no more space left (for HDFS) on the host running data
> nodes?
>
> Try running "hdfs dfsadmin -report"
>
> hth
>
> Gabriel Balan
>
> On 7/24/2016 7:53 PM, Madhav Sharan wrote:
>
> Hi hadoop users,
>
> We are running a mapreduce jobs with 10 nodes. Each  map job process a
> video and generate a .txt file as output. We are getting DataStreamer
> Exception that File could only be replicated to 0 nodes instead of
> minReplication (=1). This is the output file we expect after successful
> run.
>
> Any help is appreciated. We checked hdfs has space available and all nodes
> are responding.
>
> Full trace -
>
> 2016-07-24 21:55:08,343 WARN [Thread-214]
> org.apache.hadoop.hdfs.DFSClient: DataStreamer Exception
>
> org.apache.hadoop.ipc.RemoteException(java.io.IOException): File
> /user/pts/output/OTSOutput/_temporary/1/_temporary/attempt_1463_0008_m_000018_2/video.mp4.of.txt
> could only be replicated to 0 nodes instead of minReplication (=1).  There
> are 9 datanode(s) running and no node(s) are excluded in this operation.
>
>         at
> org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.chooseTarget4NewBlock(BlockManager.java:1547)
>
>         at
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getNewBlockTargets(FSNamesystem.java:3107)
>
>         at
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:3031)
>
>         at
> org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.addBlock(NameNodeRpcServer.java:724)
>
>         at
> org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.addBlock(ClientNamenodeProtocolServerSideTranslatorPB.java:492)
>
>         at
> org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
>
>         at
> org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:616)
>
>         at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:969)
>
>         at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2049)
>
>         at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2045)
>
>         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:1657)
>
>         at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2043)
>
>
>         at org.apache.hadoop.ipc.Client.call(Client.java:1475)
>
>         at org.apache.hadoop.ipc.Client.call(Client.java:1412)
>
>         at
> org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
>
>         at com.sun.proxy.$Proxy12.addBlock(Unknown Source)
>
>         at
> org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.addBlock(ClientNamenodeProtocolTranslatorPB.java:418)
>
>         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>
>         at java.lang.reflect.Method.invoke(Method.java:606)
>
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:191)
>
>         at
> org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
>
>         at com.sun.proxy.$Proxy13.addBlock(Unknown Source)
>
>         at
> org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.locateFollowingBlock(DFSOutputStream.java:1459)
>
>         at
> org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:1255)
>
>         at
> org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:449)
>
>
> --
> Madhav Sharan
>
>
> --
> The statements and opinions expressed here are my own and do not necessarily represent
those of Oracle Corporation.
>
>

Mime
View raw message