hdfs的原子性
Atomicity is a very important and fundamental property aspect of filesystems. Applications semantics and many functions depend on and only be available based on the atomicity models of the underlying filesystem. Which filesystem operations in HDFS is atomic? So that locks can be implemented on top of it. In a reasonably widely usable filesystem, some operations are expected to be atomic because they are often used to implement locking/exclusive access between processes using the filesystem. For HDFS, the processes are usually distributed in a cluster of servers instead of within a single OS.
原子性是文件系统非常重要的基本属性。 应用程序的语义和许多功能取决于基础文件系统的原子性模型,并且仅在此基础上可用。 HDFS中的哪些文件系统操作是原子的? 这样就可以在其上实现锁。 在合理使用的文件系统中,某些操作被认为是原子操作,因为它们通常用于在使用文件系统的进程之间实现锁定/互斥访问。 对于HDFS,进程通常分布在服务器群集中 ,而不是在单个OS中。
As of Hadoop 3.2.1, the atomicity operations from a compatible filesystem (HDFS is one) are as follows. Most other operations come with no requirements or guarantees of atomicity.
从Hadoop 3.2.1开始 ,来自兼容文件系统(HDFS是其中之一)的原子性操作如下。 大多数其他操作都没有原子性的要求或保证。
– Creating a file. If the overwrite parameter is false, the check and creation MUST be atomic.
– Deleting a file.
– Renaming a file.
– Renaming a directory.
– Creating a single directory with mkdir().
–创建文件。 如果overwrite参数为false,则检查和创建必须是原子的。
–删除文件。
–重命名文件。
–重命名目录。
–使用mkdir()创建一个目录。
Recursive directory deletion MAY be atomic. Although HDFS offers atomic recursive directory deletion, none of the other Hadoop FileSystems offer such a guarantee (including local FileSystems).
递归目录删除可能是原子的。 尽管HDFS提供了原子递归目录删除功能,但其他Hadoop FileSystems都没有提供这种保证(包括本地FileSystems)。
翻译自: https://www.systutorials.com/which-filesystem-operations-in-hdfs-is-atomic/
hdfs的原子性
2281




被折叠的 条评论
为什么被折叠?



