What do you want to use these locks for? From your question, you seem to be concerned about multiple threads accessing a stream. FileLocks have nothing to do with that. They were meant to be something like 'flock()' system call.

Raghu.

Ahmad Humayun wrote:
Do you any reason why? Is it because only one thread can write to a specific
file in the hdfs at a single time....and multiple simultaneous readers
doesn't cause any problem...hence locks make no sense in this situation???

thanks for the help.


regards,

On Thu, Feb 28, 2008 at 10:28 PM, Raghu Angadi <[EMAIL PROTECTED]>
wrote:

File locking is not supported in HDFS. Not sure if it ever was supported
properly. This interface was deprecated last year.

Raghu.

Ahmad Humayun wrote:
Hello everyone,

Does anybody have an idea why hdfsLock and hdfsReleaseLock been taken
out of
libhdfs? How do I lock a file now using libhdfs? Can somebody point me
to
the changelog or smth?


regards,




Reply via email to