Parallel File System
Parallel File System (PFS), a sub-product of OBS, is a high-performance file system. It can be part of a complete big data solution where OBS serves as a unified data lake.
Why OBS Parallel File Systems Matter
OBS provides buckets (object semantics) and parallel file systems (POSIX semantics). In big data scenarios, parallel file systems are recommended. Parallel file systems are exposed through OBSFileSystem. Compared with object semantics, they offer additional APIs, such as Rename, Append, hflush, and hsync. These APIs extend HDFS-compatible semantics and deliver better performance for big data workloads.
Advantages of OBS Parallel File Systems
- Native file semantics: Parallel file systems support POSIX semantics. You can create, read, rename, and delete files using standard file system APIs, just like you would on a local disk. Service applications migrate smoothly because no code changes are required.
- Hierarchical directories: Data is organized in a directory tree. Renaming a directory or collecting directory-level statistics does not require updating each file individually, unlike common buckets. This improves processing efficiency.
- Massive storage: Built on distributed storage, OBS parallel file systems scale horizontally to support continuous growth of massive datasets.
Use Cases of OBS Parallel File Systems
Huawei Cloud's big data solution with decoupled storage and compute uses the large capacity and high bandwidth of parallel file systems. With multi-protocol shared access (HDFS/POSIX/OBS APIs), different Hadoop ecosystem engines, such as Hive and Spark, can read and process the same data without additional adaptation. For details, see Big Data Solution with OBS as the Unified Data Lake.
How an OBS Parallel File System Works
Parallel file systems provide millisecond-level access latency, TB/s-level bandwidth, and millions of IOPS, along with high compatibility, performance, scalability, and reliability.
Different from buckets, a parallel file system treats each level in the access path as an independent directory. For example, in /dir01/dir02/example.txt, /dir01/ and /dir01/dir02/ are directories, and /dir01/dir02/example.txt is a file. In a hierarchical directory structure, you can rename a directory directly without listing or modifying all files that share the same directory prefix. This hierarchical structure makes the data organization of a parallel file system basically the same as that of a Hadoop Distributed File System (HDFS). Big data frameworks that use HDFS as the data access layer can access data in a parallel file system through the OBSFileSystem plug-in (OBSA-HDFS).
OBS Parallel File Systems vs. Buckets
The differences between OBS parallel file systems and buckets are as follows:
- File structure: A bucket has a flat key-value structure and simulates directories with slashes (/). A parallel file system has a true hierarchical directory structure.
- Protocol support: A bucket follows object semantics. A parallel file system follows high-performance file semantics. Both can be accessed over the Internet using HTTP requests.
- Directory operation efficiency: When renaming a directory that contains tens of thousands of files, a parallel file system only updates the directory's metadata pointer, whereas a bucket must move all affected files.
| Dimension | OBS Parallel File System | Bucket |
|---|---|---|
| File structure | Hierarchical directory structure | Flat key-value structure |
| Access protocol | High-performance file semantics | Object semantics |
| Directory operation efficiency | High | Low |
| Use cases | Big data scenarios that use OBS as unified data lake storage |
Related Features and Operations
For details about parallel file systems, see Parallel File System Feature Guide.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot