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

hadoop fs -test -d should return different codes for difference cases

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Currently, hadoop fs -test -d path returns 0 for the case where path is a directory and -1 for all the other cases such as execution errors, path does not exists, and path is a file.
      It is better to use different return codes to differentiate these cases.

      Similar issues also apply to hadoop fs -test -e|z

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              runping Runping Qi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: