Deleting a directory with comma throwing an error

0 votes

By mistake I have uploaded a directory in HDFS which is containing a comma. When I am trying to delete the same I am getting the error saying

Cannot remove hdfs://host:port/Test/abc,dir: No such file or directory. rmr: cannot remove Name: No such file or directory.

But earlier I was using the same command to delete the directories and it was working fine.

hadoop dfs -rmr hdfs://host:port/dir_path

Can anyone help me out with this problem

Apr 15, 2018 in Big Data Hadoop by coldcode
• 2,010 points
14 views

1 answer to this question.

0 votes

As comma is an escape sequence character, so you should use ‘\’ before the comma.

Try "hadoop dfs -rmr hdfs://host:port/Test/abc\,dir"

answered Apr 15, 2018 by Shubham
• 13,210 points

Related Questions In Big Data Hadoop

0 votes
1 answer

How to set a custom install directory for a deb package with fpm

Here's something that you can try... the last ...READ MORE

answered Mar 26, 2018 in Big Data Hadoop by Amrinder
• 140 points
58 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,150 points
2,067 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,600 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
774 views
0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

How can I download hadoop documentation for a specific version?

You can go through this SVN link:- ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by Shubham
• 13,210 points
66 views