Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11012

hadoop fs -text of zero-length file causes EOFException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • fs
    • None
    • Reviewed

    Description

      List:
      $ $HADOOP_PREFIX/bin/hadoop fs -ls /user/ericp/foo
      rw------ 3 ericp hdfs 0 2014-08-22 16:37 /user/ericp/foo

      Cat:
      $ $HADOOP_PREFIX/bin/hadoop fs -cat /user/ericp/foo

      Text:
      $ $HADOOP_PREFIX/bin/hadoop fs -text /user/ericp/foo
      text: java.io.EOFException
      at java.io.DataInputStream.readShort(DataInputStream.java:315)
      at org.apache.hadoop.fs.shell.Display$Text.getInputStream(Display.java:130)
      at org.apache.hadoop.fs.shell.Display$Cat.processPath(Display.java:98)
      at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:306)
      at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:278)
      at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:260)
      at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:244)
      at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:190)
      at org.apache.hadoop.fs.shell.Command.run(Command.java:154)
      at org.apache.hadoop.fs.FsShell.run(FsShell.java:287)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
      at org.apache.hadoop.fs.FsShell.main(FsShell.java:340)

      Attachments

        1. HDFS-6915.201408282053.txt
          6 kB
          Eric Payne
        2. HDFS-6915.201408272144.txt
          6 kB
          Eric Payne
        3. HDFS-6915.201408271824.txt
          5 kB
          Eric Payne

        Activity

          People

            epayne Eric Payne
            epayne Eric Payne
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: