hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Shvachko <...@yahoo-inc.com>
Subject Re: unprotectedRenameTo and Non-Existent Parent Directory
Date Wed, 24 May 2006 20:58:04 GMT
This is a standard behavior of "mv". Don't think we should change it.
I think it is better to call mkdirs before renaming.


Dennis Kubes wrote:

> Currently calls to unprotectedRenameTo in FSDirectory will not create 
> parent directories of the rename path.  Should this behavior be 
> changed to create the parent directories if they do not exist?
> This is effecting the LinkDB install method.  For example if I am 
> creating a linkdb by the name of crawl/linkdb the install method calls 
> a rename from working directory (something like linkdb-1234...) to 
> crawl/linkdb/current.  But if the crawl/linkdb directory does not 
> already exist then the rename fails.
> Dennis

View raw message