hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From praveenesh kumar <praveen...@gmail.com>
Subject Delete a folder name containing *
Date Wed, 20 Aug 2014 10:53:15 GMT
Hi team

I am in weird situation where I have  following HDFS sample folders

/data/folder/
/data/folder*
/data/folder_day
/data/folder_day/monday
/data/folder/1
/data/folder/2

I want to delete /data/folder* without deleting its sub_folders. If I do
hadoop fs -rmr /data/folder* it will delete everything which I want to
avoid. I tried with escape character \ but HDFS FS shell is not taking it.
Any hints/tricks ?


Regards
Praveenesh

Mime
View raw message