Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4104

dfs -test -d prints inappropriate error on nonexistent directory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.2-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Running hdfs dfs -test -d foo should return 0 or 1 as appropriate. It should not generate any output due to missing files. Alas, it prints an error message when foo does not exist.

      $ hdfs dfs -test -d foo; echo $?
      test: `foo': No such file or directory
      1
      

        Attachments

        1. hdfs4104-4.txt
          5 kB
          Andy Isaacson
        2. hdfs4104-3.txt
          5 kB
          Andy Isaacson
        3. hdfs4104-2.txt
          2 kB
          Andy Isaacson
        4. hdfs-4104.txt
          0.7 kB
          Andy Isaacson

          Issue Links

            Activity

              People

              • Assignee:
                adi2 Andy Isaacson
                Reporter:
                adi2 Andy Isaacson
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: