could not be replicated to 0 instead of 1

to create new topics or reply. | New User Registration


This topic contains 2 replies, has 2 voices, and was last updated by  Tnr Rao 11 months, 2 weeks ago.

  • Creator
  • #58524

    Tnr Rao

    Hi i got the below error(could not be replicated to 0 insted of 1) when run the flume -ng,

    2014-08-04 17:54:50,417 WARN hdfs.HDFSEventSink: HDFS IO error
    org.apache.hadoop.ipc.RemoteException: File /logs/prod/jboss/2014/08/04/ could only be replicated to 0 nodes, instead of 1
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(
    at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(
    at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.hadoop.ipc.RPC$
    at org.apache.hadoop.ipc.Server$Handler$
    at org.apache.hadoop.ipc.Server$Handler$
    at Method)
    at org.apache.hadoop.ipc.Server$

    my current block size = 134217728,
    and default replica is 1.

    can anyone help me on this?
    why we get this error and how can i fix it to run flume-ng?

    -Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

You must be to reply to this topic. | Create Account

  • Author
  • #58690

    Tnr Rao

    Am pulling the data with help of flume(log files)

    How can i copy those files from outside to HDFS?



    Robert Molina

    Hi Tnr,
    This can potentially mean datanodes are not accessible where you are running the flume client. Can you try doing hadoop fs -put command from the client machine that is running flume to send files to HDFS?


Viewing 2 replies - 1 through 2 (of 2 total)
Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.