hudi
hudi copied to clipboard
[HUDI-8092] Replace FileSystem and related classes with Hudi's storage-layer classes
Change Logs
Major replacements:
- FileSystem -> HoodieStorage
- fs -> storage,
- fs.mkdir -> storage.createDirectory
- fs.delete(
, false) -> storage.deleteFile - fs.delete( , true) -> storage.deleteDirectory - fs.getFileStatus -> storage.getPathInfo - fs.isDirectory -> storage.getPathInfo.isDirectory - Path -> StoragePath
- FileStatus -> StoragePathInfo - fileStatus.getLen() -> storagePathInfo.getLength()
- FSDataOutputStream (created by fs.create()) -> OutputStream (created by storage.create()) - FSDataOutputStream.writeBytes() -> OutputStream.write(String.toBytes()) Others:
- Removed unused
SerializablePathandSerializablePathFilter
Impact
None
Risk level (write none, low medium or high below)
None
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 to make changes to the website.
Contributor's checklist
- [ ] Read through contributor's guide
- [ ] Change Logs and Impact were stated clearly
- [ ] Adequate tests were added if applicable
- [ ] CI passed
After this change, there should be only test usages of Hadoop classes in hudi-client-common
CI report:
- f83d1d54538853f38ddef98ecbeb1fd5c8bbf6e1 UNKNOWN
- 5a3c11c87ce32fd989c599b5378c79349e2f5af4 UNKNOWN
- 1e7052f633669a1047ee79353df028013a1737ee Azure: SUCCESS
Bot commands
@hudi-bot supports the following commands:@hudi-bot run azurere-run the last Azure build