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

dfs -test -d prints inappropriate error on nonexistent directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.2-alpha
    • 2.0.3-alpha
    • None
    • None
    • 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. 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

            People

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

              Dates

                Created:
                Updated:
                Resolved: