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

dfs cat on a file that does not exist throws a java IOException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.15.1, 0.16.0
    • 0.17.0
    • None
    • None

    Description

      The dfs cat command throws an IOException when the file does not exist:

      bin/hadoop dfs -cat doesnotexist
      cat: java.io.IOException: Cannot open filename<home directory>/doesnotexist]

      In Linux, if a file does not exist, cat displays this:
      cat: doesnotexist: No such file or directory

      Attachments

        1. patch_2194_5.patch
          4 kB
          Mahadev Konar
        2. patch_2194_4.patch
          2 kB
          Mahadev Konar
        3. patch_2194_3.patch
          1 kB
          Mahadev Konar
        4. patch_2194_2.patch
          1 kB
          Mahadev Konar
        5. patch_2194_1.patch
          0.5 kB
          Mahadev Konar

        Activity

          People

            mahadev Mahadev Konar
            mukundm Mukund Madhugiri
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: