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.
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.
相关文章推荐
- How do I get multiple process to log to the same file?
- linux oracle ORA-01221: data file 1 is not the same file to a background process
- [EffectiveC++]item16:Use the same form in corresponding uses of new and delete
- lr数据库参数化取数:The query result is empty and same is the parameter file问题原因
- HOWTO get multiple value from the same name checkbox elements or radiobution elements
- Effective C++ Item 16 Use the same form in corresponding uses of new and delete
- C#使用Create创建文件后,报The Process cannot access the file because it is being used by another process的异常
- How_do_I_use_the_same_pkg_file_for_debug_and_release_builds(转)
- The file '/ApplicationName/Default.aspx' has not been pre-compiled, and cannot be requested
- svn问题之一: Failed to add file 'xxx': an unversioned file of the same name already exists
- Using the multiple NICs of your File Server running Windows Server 2008 (and 2008 R2)
- If you whant to download SIS, JAR and JAD file from WAP you have to upload file (in the same catalog) with this: [小糊涂的灵感]
- Removing the trailing file name and backslash from a path
- BOM API - uses the BOM_BO_PUB.PROCESS_BOM API to create bill header and add components to the bill
- Do not delete and re-create if the object already exist
- LR场景运行提示:This Vuser already started a transaction with the same name, and has not yet processed the
- Create, Read, Write, Copy, Move and Delete a Text File using C#
- How To Get Application Path,And How To Get The Path's Directory,File Name,And Type Info(如何得到运行程序的路径,以及如何得到路径的文件夹,文件名,以及类型等等信息)
- Create, Read, Write, Copy, Move and Delete a Text File using C# and VB.NET
- Android Studio using a library and project with the same package name