in Education by
I have uploaded a Directory to hadoop cluster that is having "," in its name like "MyDir, Name" when I am trying to delete this Directory by using rmr hadoop shell command as following hadoop dfs -rmr hdfs://host:port/Navi/MyDir, Name I'm getting the following messages rmr: cannot remove hdfs://host:port/Navi/MyDir,: No such file or directory. rmr: cannot remove Name: No such file or directory. However I have successfully deleted other Directories from the same location, using the same command i.e. hadoop dfs -rmr hdfs://host:port/dir_path any solutions to delete such kind of Directories. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
In your question the problem is not with the comma, the problem arises because of the space after the comma. Just place your arguments inside the quotes as given below: hadoop fs -rm -r hdfs://host:port/Navi/MyDir\,\ Name I hope your directory will be removed successfully. If you want more information regarding the same, refer to the following video tutorial:

Related questions

0 votes
    So, I've been looking at Hadoop with keen interest, and to be honest I'm fascinated, things don't get much ... anyone know of one? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    Why are there two separate packages map-reduce package in Apache's hadoop package tree: org.apache.hadoop.mapred ... separated out? Select the correct answer from above options...
asked Jan 26, 2022 in Education by JackTerrance
0 votes
    I am having some trouble writing the code for wordcount program using MapReduce, I could use some help. Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    I run hive query by java code. Example: "SELECT * FROM table WHERE id > 100" How to export result to hdfs file.a Select the correct answer from above options...
asked Jan 28, 2022 in Education by JackTerrance
0 votes
    Is there any way or any command which I can use in command prompt to know the version of Hadoop? Also, how ... the version of Hive? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    Can anyone tell me how to learn Hadoop? Select the correct answer from above options...
asked Jan 10, 2022 in Education by JackTerrance
0 votes
    Sun also has the Hadoop Live CD ________ project, which allows running a fully functional Hadoop cluster using a live CD. 1. OpenOffice.org 2. OpenSolaris 3. GNU 4. Linux...
asked Dec 6, 2022 in Education by JackTerrance
0 votes
    I plan on downloading Hadoop for learning purposes, can someone tell me what is the latest build or version in Hadoop? Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
0 votes
    The Hadoop list includes the HBase database, the Apache Mahout ________ system, and matrix operations. ... recognition 3. Statistical classification 4. Artificial intelligence...
asked Dec 7, 2022 in Education by JackTerrance
0 votes
    When I am running a Hadoop .jar file from the command prompt, it throws an exception saying no such method ... (Child.java:264) Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I am new to Hadoop/ZooKeeper. I cannot understand the purpose of using ZooKeeper with Hadoop, is ZooKeeper writing ... with Hadoop? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I would like to know the relation between the mapreduce.map.memory.mb and mapred.map.child.java.opts parameters. ... .child.java.opts? Select the correct answer from above options...
asked Jan 28, 2022 in Education by JackTerrance
0 votes
    I do not understand the differences between using S3 and S3n with my Hadoop cluster, can someone explain? Select the correct answer from above options...
asked Jan 26, 2022 in Education by JackTerrance
0 votes
    I installed Hadoop on the server running CentOs. As I run start-dfs.shor stop-dfs.sh I got the following error : ... I have to do? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    What is namenode formatting? What does it involve. I'm looking to understand namenode formatting and its use. Select the correct answer from above options...
asked Jan 21, 2022 in Education by JackTerrance
...