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
• 1,980 points
11 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 12,110 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
43 views
0 votes
1 answer
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
• 9,030 points
1,639 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
7,954 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,260 points
552 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
• 12,110 points
51 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.