You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "tangshangwen (JIRA)" <ji...@apache.org> on 2016/01/05 09:58:39 UTC

[jira] [Updated] (HDFS-9614) If the path contains '\r' character, can not be deleted from the command line

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

tangshangwen updated HDFS-9614:
-------------------------------
    Summary: If the path contains '\r' character, can not be deleted from the command line  (was: If the path contains '\ t' character, can not be deleted from the command line)

> If the path contains '\r' character, can not be deleted from the command line
> -----------------------------------------------------------------------------
>
>                 Key: HDFS-9614
>                 URL: https://issues.apache.org/jira/browse/HDFS-9614
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.2.0, 2.7.1
>            Reporter: tangshangwen
>            Assignee: tangshangwen
>
> In our cluster, I found that some users create directory contains '\ t' character, cause we can not be deleted from the command line. for example
> {code:title=Test.java|borderStyle=solid}
> try {
>             FileSystem fs = FileSystem.get(new Configuration());
>             fs.mkdirs(new Path("/user/hadoop/tangshangwen\r"));
>             IOUtils.closeQuietly(fs);
>         } catch (IOException e) {
>             e.printStackTrace();
>         }
> {code}
> Then we delete
> {noformat}
> $ hdfs dfs -ls /user/hadoop/
> Found 4 items
> drwx------   - hadoop supergroup          0 2016-01-05 11:49 /user/hadoop/.Trash
> drwx------   - hadoop supergroup          0 2016-01-05 12:04 /user/hadoop/.staging
> drwxr-xr-x   - hadoop supergroup          0 2016-01-05 12:42 /user/hadoop/DistributedShell
> drwxr-xr-x   - hadoop supergroup          0 2016-01-05 15:46 /user/hadoop/tangshangwen
> $ hdfs dfs -rm -R /user/hadoop/tangshang*
> rm: `/user/hadoop/tangshang*': No such file or directory
> $ hdfs dfs -ls /user/hadoop/tangshangwen
> ls: `/user/hadoop/tangshangwen': No such file or directory
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)