java.io.IOException: File /user/markneedham/book2.txt could only be replicated to 0 nodes, instead of 1

markhneedham.com | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hadoop: DataNode not starting at Mark Needham

    markhneedham.com | 4 months ago
    java.io.IOException: File /user/markneedham/book2.txt could only be replicated to 0 nodes, instead of 1
  2. 0

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

    Stack Overflow | 6 years ago | Steve
    java.io.IOException: File /user/ubuntu/pies could only be replicated to 0 nodes, instead of 1
  3. 0

    Hive - Exception when selecting a table

    Stack Overflow | 4 years ago | facebook-100005504284031
    java.io.IOException: File /tmp/hive-root/hive_2013-08-15_13-28-46_129_8286357465917641024/-mr-10002/1/emptyFile could only be replicated to 0 nodes, instead of 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Copying error in file system of hdfs

    Stack Overflow | 4 years ago | user2328488
    java.io.IOException: File /tmp/hadoop-hadoop/mapred/system/jobtracker.info could only be replicated to 0 nodes, instead of 1
  6. 0

    File jobtracker.info could only be replicated to 0 nodes, instead of 1

    Stack Overflow | 4 years ago | user2201980
    java.io.IOException: File /home/hadoop1/mapred/system/jobtracker.info could only be replicated to 0 nodes, instead of 1

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      File /user/markneedham/book2.txt could only be replicated to 0 nodes, instead of 1

      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock()
    2. Apache Hadoop HDFS
      NameNode.addBlock
      1. org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1448)
      2. org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:690)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. Hadoop
      Server$Handler$1.run
      1. org.apache.hadoop.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:342)
      2. org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1350)
      3. org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1346)
      3 frames
    5. Java RT
      Subject.doAs
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAs(Subject.java:396)
      2 frames
    6. Hadoop
      WritableRpcEngine$Invoker.invoke
      1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:742)
      2. org.apache.hadoop.ipc.Server$Handler.run(Server.java:1344)
      3. org.apache.hadoop.ipc.Client.call(Client.java:905)
      4. org.apache.hadoop.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:198)
      4 frames
    7. Unknown
      $Proxy0.addBlock
      1. $Proxy0.addBlock(Unknown Source)
      1 frame
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    9. Hadoop
      RetryInvocationHandler.invoke
      1. org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)
      2. org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)
      2 frames
    10. Unknown
      $Proxy0.addBlock
      1. $Proxy0.addBlock(Unknown Source)
      1 frame
    11. Apache Hadoop HDFS
      DFSOutputStream$DataStreamer.run
      1. org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.locateFollowingBlock(DFSOutputStream.java:928)
      2. org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.nextBlockOutputStream(DFSOutputStream.java:811)
      3. org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:427)
      3 frames