Reply
Highlighted
Explorer
Posts: 23
Registered: ‎03-12-2014

Flume error:could only be replicated to 0 nodes, instead of 1

Hi,

 

I got the below error when I ran flume-ng,

 

 

Hi,

 

when am start the flume-ng am getting the below error,

 

 

at java.lang.Thread.run(Thread.java:662)

2014-08-04 17:54:50,417 WARN hdfs.HDFSEventSink: HDFS IO error

org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /logs/prod/jboss/2014/08/04/web07.prod.hs18.lan.1407154543459.tmp could only be replicated to 0 nodes, instead of 1

        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1637)

        at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:757)

        at sun.reflect.GeneratedMethodAccessor11.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:578)

        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1393)

        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1389)

        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:1136)

        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1387)

 

 

i done the below changes as per the suggestions given in google user group:

 

https://groups.google.com/a/cloudera.org/forum/#!topic/cdh-user/4saUW5MW53M

 

Step1:

try'd to set Flume-NGs hdfs sink parameter maxOpenFiles to 10

 

Step2:

 

if you check in the above forum they given the below suggestion:

 

Reducing the Block size from 64M to 5M fixed this problem

 

 

 

Could you please suggest me how can i fix this problem?

 

my current block size = 134217728,

 

is it really works when i reduce my block size to 53?

 

 

-Thankyou

 

 

 

Announcements
New solutions