You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by "real great.." <gr...@gmail.com> on 2011/02/28 07:00:48 UTC

command to delete a directory in hadoop

Hi,
How do you delete a directory in HAdoop?
Contents are inside it.

-- 
Regards,
R.V.

Re: command to delete a directory in hadoop

Posted by Pedro Costa <ps...@gmail.com>.
remove file

hadoop dfs -rmr <dirname>

list file
hadoop dfs -ls



On Mon, Feb 28, 2011 at 10:13 AM, Eric <er...@gmail.com> wrote:
> Note that Hadoop will put your files in a trash bin. You can use the
> -skipTrash option to really delete the data and free up space. See the
> command "hadoop dfs" for more details.
>
> 2011/2/28 Ondřej Nevělík <ne...@gmail.com>
>>
>> hadoop dfs -rmr "directory"
>>
>> 2011/2/28 real great.. <gr...@gmail.com>
>>>
>>> Hi,
>>> How do you delete a directory in HAdoop?
>>> Contents are inside it.
>>>
>>> --
>>> Regards,
>>> R.V.
>>
>
>



-- 
Pedro

Re: command to delete a directory in hadoop

Posted by Eric <er...@gmail.com>.
Note that Hadoop will put your files in a trash bin. You can use the
-skipTrash option to really delete the data and free up space. See the
command "hadoop dfs" for more details.

2011/2/28 Ondřej Nevělík <ne...@gmail.com>

> hadoop dfs -rmr "directory"
>
> 2011/2/28 real great.. <gr...@gmail.com>
>
> Hi,
>> How do you delete a directory in HAdoop?
>> Contents are inside it.
>>
>> --
>> Regards,
>> R.V.
>>
>
>

Re: command to delete a directory in hadoop

Posted by Ondřej Nevělík <ne...@gmail.com>.
hadoop dfs -rmr "directory"

2011/2/28 real great.. <gr...@gmail.com>

> Hi,
> How do you delete a directory in HAdoop?
> Contents are inside it.
>
> --
> Regards,
> R.V.
>