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

With trash enabled, 'hadoop fs -rmr .' still fully deletes the working dir

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 0.18.0
    • None
    • None
    • r667675

    • Reviewed

    Description

      With trash enabled, it should be more difficult to fully delete the working dir:

      bash$ bin/hadoop fs -lsr /
      drwxr-xr-x   - username supergroup          0 2008-06-13 15:51 /user
      drwxr-xr-x   - username supergroup          0 2008-06-13 15:52 /user/username
      drwxr-xr-x   - username supergroup          0 2008-06-13 15:52 /user/username/.Trash
      drwx------   - username supergroup          0 2008-06-13 15:52 /user/username/.Trash/Current
      -rw-r--r--   1 username supergroup     232060 2008-06-13 15:52 /user/username/.Trash/Current/file.txt
      pineapple-lm:~/work/18-commit chrisdo$ bin/hadoop fs -rmr .
      rmr: Failed to move to trash: hdfs://localhost/user/username
      bash$ bin/hadoop fs -lsr /
      drwxr-xr-x   - username supergroup          0 2008-06-13 15:52 /user
      bash$
      

      In 0.17, the working dir remains.

      Attachments

        1. 3561-0.patch
          2 kB
          Christopher Douglas

        Issue Links

          Activity

            People

              cdouglas Christopher Douglas
              cdouglas Christopher Douglas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: