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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: