hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Liu, Yi A" <yi.a....@intel.com>
Subject RE: Delete a folder name containing *
Date Thu, 21 Aug 2014 14:05:08 GMT
Escape character is \, but please enclose with single quote

For example /foo/{123} should be '/foo/\{123\}'

Yi Liu

From: varun kumar [mailto:varun.uid@gmail.com]
Sent: Thursday, August 21, 2014 2:21 PM
To: user; praveenesh@gmail.com
Subject: Re: Delete a folder name containing *

Make sure namenode is not in safe mode.

On Wed, Aug 20, 2014 at 6:53 AM, praveenesh kumar <praveenesh@gmail.com<mailto:praveenesh@gmail.com>>
Hi team

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


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 ?


Varun Kumar.P
View raw message