[HUDI-8092] Replace FileSystem and related classes to dehadoop hudi-client-common#11805
Merged
yihua merged 13 commits intoapache:masterfrom Sep 9, 2024
Merged
[HUDI-8092] Replace FileSystem and related classes to dehadoop hudi-client-common#11805yihua merged 13 commits intoapache:masterfrom
yihua merged 13 commits intoapache:masterfrom
Conversation
…torage/StoragePath/StoragePathInfo
Contributor
Author
yihua
reviewed
Sep 4, 2024
...ommon/src/main/java/org/apache/hudi/client/transaction/lock/FileSystemBasedLockProvider.java
Outdated
Show resolved
Hide resolved
...ommon/src/main/java/org/apache/hudi/client/transaction/lock/FileSystemBasedLockProvider.java
Outdated
Show resolved
Hide resolved
...ommon/src/main/java/org/apache/hudi/client/transaction/lock/FileSystemBasedLockProvider.java
Outdated
Show resolved
Hide resolved
...udi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIndexUtils.java
Outdated
Show resolved
Hide resolved
...udi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIndexUtils.java
Outdated
Show resolved
Hide resolved
...udi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIndexUtils.java
Outdated
Show resolved
Hide resolved
yihua
reviewed
Sep 5, 2024
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieCDCLogger.java
Outdated
Show resolved
Hide resolved
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieCreateHandle.java
Outdated
Show resolved
Hide resolved
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/io/HoodieMergeHandle.java
Outdated
Show resolved
Hide resolved
...common/src/main/java/org/apache/hudi/table/action/rollback/ListingBasedRollbackStrategy.java
Outdated
Show resolved
Hide resolved
...-client/hudi-client-common/src/main/java/org/apache/hudi/table/upgrade/UpgradeDowngrade.java
Outdated
Show resolved
Hide resolved
…ndex/bucket/ConsistentBucketIndexUtils.java Co-authored-by: Y Ethan Guo <ethan.guoyihua@gmail.com>
yihua
reviewed
Sep 5, 2024
...udi-client-common/src/main/java/org/apache/hudi/index/bucket/ConsistentBucketIndexUtils.java
Outdated
Show resolved
Hide resolved
...ommon/src/main/java/org/apache/hudi/client/transaction/lock/FileSystemBasedLockProvider.java
Outdated
Show resolved
Hide resolved
...common/src/main/java/org/apache/hudi/table/action/rollback/ListingBasedRollbackStrategy.java
Outdated
Show resolved
Hide resolved
...common/src/main/java/org/apache/hudi/table/action/rollback/ListingBasedRollbackStrategy.java
Outdated
Show resolved
Hide resolved
…ndex/bucket/ConsistentBucketIndexUtils.java Co-authored-by: Y Ethan Guo <ethan.guoyihua@gmail.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Change Logs
This PR dehadoops hudi-client-common module by replacing
FileSystemand related classes withHoodieStorageand other storage classes.Major replacements:
- 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
- fileStatus.getLen() -> storagePathInfo.getLength()
- FSDataOutputStream.writeBytes() -> OutputStream.write(String.toBytes())
Others:
SerializablePathandSerializablePathFilterImpact
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".
ticket number here and follow the instruction to make
changes to the website.
Contributor's checklist