您的位置:首页 > 其它

Multiple process create and delete the same name file conflict

2011-02-14 17:59 639 查看
When multiple process create and delete the same name file in the same place in a time, it will cause conflict.

For example, if the Process A and Process B both create file named "test.txt" in same place in hadoop hdfs, and A, B both need to delete its created file. So when A deletes "test.txt", then B deleting will be falied with "no such file in the palce" info.

In this case, we'd better distinct the same file name into differrent name, one easy way is to name file with the process name.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐