hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Douglas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-3561) With trash enabled, 'hadoop fs -rmr .' still fully deletes the working dir
Date Fri, 13 Jun 2008 23:59:44 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-3561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chris Douglas updated HADOOP-3561:
----------------------------------

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

{noformat}
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   - chrisdo supergroup          0 2008-06-13 15:52 /user
bash$
{noformat}

In 0.17, the working dir remains.

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

{noformat}
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   - chrisdo supergroup          0 2008-06-13 15:52 /user
bash$
{noformat}

In 0.17:
{noformat}
bash$ bin/hadoop fs -rmr .
rmr: Failed to move to trash: /user/username
bash$
{noformat}


> With trash enabled, 'hadoop fs -rmr .' still fully deletes the working dir
> --------------------------------------------------------------------------
>
>                 Key: HADOOP-3561
>                 URL: https://issues.apache.org/jira/browse/HADOOP-3561
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>         Environment: r667675
>            Reporter: Chris Douglas
>            Priority: Blocker
>             Fix For: 0.18.0
>
>
> With trash enabled, it should be more difficult to fully delete the working dir:
> {noformat}
> 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   - chrisdo supergroup          0 2008-06-13 15:52 /user
> bash$
> {noformat}
> In 0.17, the working dir remains.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message