Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-4104

dfs -test -d prints inappropriate error on nonexistent directory

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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
      
      1. hdfs-4104.txt
        0.7 kB
        Andy Isaacson
      2. hdfs4104-2.txt
        2 kB
        Andy Isaacson
      3. hdfs4104-3.txt
        5 kB
        Andy Isaacson
      4. hdfs4104-4.txt
        5 kB
        Andy Isaacson

        Issue Links

          Activity

          Andy Isaacson created issue -
          Andy Isaacson made changes -
          Field Original Value New Value
          Summary dfs -test -d prints inappropriate error on nonexistent directory dfs -test -d prints inappropriate error on nonexistent directory, and -z should be -s
          Andy Isaacson made changes -
          Summary dfs -test -d prints inappropriate error on nonexistent directory, and -z should be -s dfs -test -d prints inappropriate error on nonexistent directory
          Andy Isaacson made changes -
          Attachment hdfs-4104.txt [ 12550383 ]
          Andy Isaacson made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Andy Isaacson made changes -
          Link This issue relates to HDFS-1331 [ HDFS-1331 ]
          Andy Isaacson made changes -
          Attachment hdfs4104-2.txt [ 12551299 ]
          Andy Isaacson made changes -
          Attachment hdfs4104-3.txt [ 12551406 ]
          Andy Isaacson made changes -
          Attachment hdfs4104-4.txt [ 12553604 ]
          Daryn Sharp made changes -
          Resolution Fixed [ 1 ]
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 3.0.0 [ 12320356 ]
          Fix Version/s 2.0.3-alpha [ 12323274 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Allen Wittenauer made changes -
          Fix Version/s 3.0.0 [ 12320356 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development