Never mind.  I overlooked the link that says the non-deprecated version is
FileSystem.delete(Path, BOOLEAN).

I'm still curious if there is a an automatically self-cleaning temporary
file system.

On Mon, Mar 28, 2011 at 2:41 PM, W.P. McNeill <[email protected]> wrote:

> FileSystem.delete(Path) appears to be deprecated in the new API.  Is there
> a non-deprecated way to do this.
>
>
> On Mon, Mar 28, 2011 at 1:28 PM, Harsh J <[email protected]> wrote:
>
>> Generally you can delete files on any hadoop-used FS using a suitable
>> FileSystem.delete(Path) call. Would this work for you?
>>
>> I'm not aware of any auto temporary-create-and-delete functionality
>> though. Would be good to know if this too exists inside Hadoop's libs.
>>
>> On Tue, Mar 29, 2011 at 1:47 AM, W.P. McNeill <[email protected]> wrote:
>> > These seem like basic questions, but I haven't been able to find the
>> answers
>> > in the O'Reilly book or online.
>>
>> Tom White's book covers the deleting part at least. Check it out:
>> Chapter 3 (HDFS) -> Java Interface -> Deleting Data.
>>
>> --
>> Harsh J
>> http://harshj.com
>>
>
>

Reply via email to