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

Add -safely flag to rm to prompt when deleting many files

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: fs
    • Labels:
    • Target Version/s:

      Description

      We have seen many cases with customers deleting data inadvertently with -skipTrash. The FSShell should prompt user if the size of the data or the number of files being deleted is bigger than a threshold even though -skipTrash is being used.

        Attachments

        1. HADOOP-12358.07.patch
          28 kB
          Xiaoyu Yao
        2. HADOOP-12358.06.patch
          28 kB
          Xiaoyu Yao
        3. HADOOP-12358.05.patch
          28 kB
          Xiaoyu Yao
        4. HADOOP-12358.04.patch
          25 kB
          Xiaoyu Yao
        5. HADOOP-12358.03.patch
          28 kB
          Xiaoyu Yao
        6. HADOOP-12358.02.patch
          20 kB
          Xiaoyu Yao
        7. HADOOP-12358.01.patch
          9 kB
          Xiaoyu Yao
        8. HADOOP-12358.00.patch
          6 kB
          Xiaoyu Yao

          Activity

            People

            • Assignee:
              xyao Xiaoyu Yao
              Reporter:
              xyao Xiaoyu Yao
            • Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: