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

default behaviour of dfsShell -rm should resemble 'rm -i', not 'rm -rf'

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.2
    • Fix Version/s: 0.7.0
    • Component/s: None
    • Labels:
      None

      Description

      when using hadoop dfs -rm <path> the behaviour is like that of rm -rf.
      That's very dangerous.
      A better behaviour would require a confirmation and allow removal of files only by default. Optional flags would allow recursive and forced deleted.

        Attachments

        1. rmr.patch.txt
          2 kB
          Sameer Paranjpye

          Issue Links

            Activity

              People

              • Assignee:
                sameerp Sameer Paranjpye
                Reporter:
                yarnon Yoram Arnon
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: