Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9723

Improve error message when hadoop archive output path already exists

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.4-alpha, 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      When creating a hadoop archive and specifying an output path of an already existing file, we get an "Invalid Output" error message.

      [schu@hdfs-vanilla-1 ~]$ hadoop archive -archiveName foo.har -p /user/schu testDir1 /user/schu
      Invalid Output: /user/schu/foo.har
      

      This error can be improved to tell users immediately that the output path already exists.

        Attachments

        1. HADOOP-9723.003.patch
          4 kB
          Yongjun Zhang
        2. HADOOP-9723.2.patch
          4 kB
          Akira Ajisaka
        3. HADOOP-9723.patch
          3 kB
          Jean-Baptiste Onofré

          Activity

            People

            • Assignee:
              yzhangal Yongjun Zhang
              Reporter:
              schu Stephen Chu
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: