org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /user/hadoop/testfiles/testfiles/file1.txt could only be replicated to


Solutions on the web99

Solution icon of stackoverflow
via Stack Overflow by Cody
, 11 months ago
java.io.IOException: File /user/hadoop/testfiles/testfiles/file1.txt could only be replicated to

Solution icon of googlegroups
via Google Groups by Todd McFarland, 1 year ago
java.io.IOException: File /user/admin/testdir/file1.txt could only be replicated to 0 nodes, instead of 1

Solution icon of googlegroups
via Google Groups by A Df, 1 year ago
java.io.IOException: File /user/my-user/input/HadoopInputFile_Request_2011-08-05_162106_1.txt could only be replicated to 0 nodes, instead of 1

Solution icon of stackoverflow
via Stack Overflow by Harshit
, 1 year ago
java.io.IOException: File /user/hadoop/hadi_edge/catepillar_star.edge could only be replicated to 0 nodes, instead of 1

Solution icon of web
via netfoucs.com by Unknown author, 1 year ago
java.io.IOException: File /user/root/in/test2.txt could only be replicated to 0 nodes, instead of 1

Solution icon of googlegroups
java.io.IOException: File /user/hduser/data/pg20417.txt could only be replicated to 0 nodes, instead of 1

Solution icon of web
java.io.IOException: File /user/hadoop10/in/input/test1.txt could only be replicated to 0 nodes, instead of 1

Solution icon of web
java.io.IOException: File /user/Administrator/in/test2.txt could only be replicated to 0 nodes, instead of 1

Solution icon of stackoverflow
java.io.IOException: File /user/frolo/input/pg132.txt could only be replicated to 0 nodes, instead of 1

Solution icon of stackoverflow
via Stack Overflow by Aaron S
, 1 year ago
java.io.IOException: File /user/hadoop/input/core-site.xml could only be replicated to 0 nodes, instead of 1

Stack trace

org.apache.hadoop.ipc.RemoteException: java.io.IOException: File
 /user/hadoop/testfiles/testfiles/file1.txt could only be replicated to
	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1271)
	at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:422)
	at sun.reflect.GeneratedMethodAccessor7.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:508)
	at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959)
	at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:396)
	at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)
	at org.apache.hadoop.ipc.Client.call(Client.java:740)
	at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)
	at $Proxy0.addBlock(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)
	at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)
	at $Proxy0.addBlock(Unknown Source)
	at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.locateFollowingBlock(DFSClient.java:2937)
	at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2819)
	at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2000(DFSClient.java:2102)
	at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2288)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.