zhangyue19921010 opened a new pull request, #12460:
URL: https://github.com/apache/hudi/pull/12460
### Change Logs
OSS Storage strategy POC
For local testing, write data using Spark and query data with Spark, using
UT xxxx as an example. Assume /tmp/bucketA/ is the user's S3 bucket. The final
data distribution is as follows
元数据分布
```
zhangyue61@ZBMac-C02FN40EMD6P ~ % cd
/private/var/folders/ww/dc150vl50815wqgbsx_98w9w0000gp/T/spark-8212a35d-7784-47fc-a496-ce499753edf1
zhangyue61@ZBMac-C02FN40EMD6P spark-8212a35d-7784-47fc-a496-ce499753edf1 % ll
total 0
drwxr-xr-x 3 zhangyue61 staff 96 12 11 11:12 ./
drwx------@ 317 zhangyue61 staff 10144 12 11 11:12 ../
drwxr-xr-x 3 zhangyue61 staff 96 12 11 11:12 h1/
zhangyue61@ZBMac-C02FN40EMD6P spark-8212a35d-7784-47fc-a496-ce499753edf1 %
tree -a
.
└── h1
└── .hoodie
├── .aux
│ └── .bootstrap
│ ├── .fileids
│ └── .partitions
├── .hoodie.properties.crc
├── .schema
├── .temp
├── hoodie.properties
├── metadata
│ ├── .hoodie
│ │ ├── .aux
│ │ │ └── .bootstrap
│ │ │ ├── .fileids
│ │ │ └── .partitions
│ │ ├── .hoodie.properties.crc
│ │ ├── .schema
│ │ ├── .temp
│ │ ├── hoodie.properties
│ │ └── timeline
│ │ ├── .00000000000000000.deltacommit.inflight.crc
│ │ ├── .00000000000000000.deltacommit.requested.crc
│ │ ├── .00000000000000000_20241211031254712.deltacommit.crc
│ │ ├── .20241211031249856.deltacommit.inflight.crc
│ │ ├── .20241211031249856.deltacommit.requested.crc
│ │ ├── .20241211031249856_20241211031302018.deltacommit.crc
│ │ ├── 00000000000000000.deltacommit.inflight
│ │ ├── 00000000000000000.deltacommit.requested
│ │ ├── 00000000000000000_20241211031254712.deltacommit
│ │ ├── 20241211031249856.deltacommit.inflight
│ │ ├── 20241211031249856.deltacommit.requested
│ │ ├── 20241211031249856_20241211031302018.deltacommit
│ │ └── history
│ └── files
│ ├── ..files-0000-0_00000000000000000.log.1_0-0-0.crc
│ ├── ..files-0000-0_20241211031249856.log.1_0-18-229.crc
│ ├── ..hoodie_partition_metadata.crc
│ ├── .files-0000-0_0-5-4_00000000000000000.hfile.crc
│ ├── .files-0000-0_00000000000000000.log.1_0-0-0
│ ├── .files-0000-0_20241211031249856.log.1_0-18-229
│ ├── .hoodie_partition_metadata
│ └── files-0000-0_0-5-4_00000000000000000.hfile
└── timeline
├── .20241211031249856.commit.requested.crc
├── .20241211031249856.inflight.crc
├── .20241211031249856_20241211031302213.commit.crc
├── 20241211031249856.commit.requested
├── 20241211031249856.inflight
├── 20241211031249856_20241211031302213.commit
└── history
22 directories, 30 files
```
数据分布
```
zhangyue61@ZBMac-C02FN40EMD6P spark-8212a35d-7784-47fc-a496-ce499753edf1 %
cd /tmp/bucketA/
zhangyue61@ZBMac-C02FN40EMD6P bucketA % ll
total 0
drwxr-xr-x 5 zhangyue61 wheel 160 12 11 11:12 ./
drwxrwxrwt 70 root wheel 2240 12 11 11:12 ../
drwxr-xr-x 3 zhangyue61 wheel 96 12 11 11:12 1103196347/
drwxr-xr-x 3 zhangyue61 wheel 96 12 11 11:12 1782571635/
drwxr-xr-x 3 zhangyue61 wheel 96 12 11 11:12 538548677/
zhangyue61@ZBMac-C02FN40EMD6P bucketA % tree -a
.
├── 1103196347
│ └── private
│ └── var
│ └── folders
│ └── ww
│ └── dc150vl50815wqgbsx_98w9w0000gp
│ └── T
│ └── spark-8212a35d-7784-47fc-a496-ce499753edf1
│ └── h1
│ └── dt=2021-01-06
│ ├── ..hoodie_partition_metadata.crc
│ ├──
.977a6c38-41a9-4423-921b-b96ef57c853b-0_1-11-18_20241211031249856.parquet.crc
│ ├── .hoodie_partition_metadata
│ └──
977a6c38-41a9-4423-921b-b96ef57c853b-0_1-11-18_20241211031249856.parquet
├── 1782571635
│ └── private
│ └── var
│ └── folders
│ └── ww
│ └── dc150vl50815wqgbsx_98w9w0000gp
│ └── T
│ └── spark-8212a35d-7784-47fc-a496-ce499753edf1
│ └── h1
│ └── dt=2021-01-05
│ ├── ..hoodie_partition_metadata.crc
│ ├──
.7d71eaa5-72e3-4ffd-8d90-ee09c27b0675-0_0-11-17_20241211031249856.parquet.crc
│ ├── .hoodie_partition_metadata
│ └──
7d71eaa5-72e3-4ffd-8d90-ee09c27b0675-0_0-11-17_20241211031249856.parquet
└── 538548677
└── private
└── var
└── folders
└── ww
└── dc150vl50815wqgbsx_98w9w0000gp
└── T
└── spark-8212a35d-7784-47fc-a496-ce499753edf1
└── h1
└── dt=2021-01-07
├── ..hoodie_partition_metadata.crc
├──
.1bd01552-e01e-4696-a7cb-6dba97dfe2b1-0_2-11-19_20241211031249856.parquet.crc
├── .hoodie_partition_metadata
└──
1bd01552-e01e-4696-a7cb-6dba97dfe2b1-0_2-11-19_20241211031249856.parquet
31 directories, 12 files
```
Base Path
```
/private/var/folders/ww/dc150vl50815wqgbsx_98w9w0000gp/T/spark-8212a35d-7784-47fc-a496-ce499753edf1/h1/.hoodie
```
Data Path
```
/tmp/bucketA/1103196347/private/var/folders/ww/dc150vl50815wqgbsx_98w9w0000gp/T/spark-8212a35d-7784-47fc-a496-ce499753edf1/h1/dt=2021-01-06/977a6c38-41a9-4423-921b-b96ef57c853b-0_1-11-18_20241211031249856.parquet
```
### Impact
no
### Risk level (write none, low medium or high below)
low
### Documentation Update
_Describe any necessary documentation update if there is any new feature,
config, or user-facing change. If not, put "none"._
- _The config description must be updated if new configs are added or the
default value of the configs are changed_
- _Any new feature or user-facing change requires updating the Hudi website.
Please create a Jira ticket, attach the
ticket number here and follow the
[instruction](https://hudi.apache.org/contribute/developer-setup#website) to
make
changes to the website._
### Contributor's checklist
- [ ] Read through [contributor's
guide](https://hudi.apache.org/contribute/how-to-contribute)
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]