You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2024/03/08 06:35:28 UTC
(opendal) branch main updated: fix(services/hdfs-native): remove unsupported capabilities (#4333)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 517061ac10 fix(services/hdfs-native): remove unsupported capabilities (#4333)
517061ac10 is described below
commit 517061ac1053af98a4ca625ac5fec2b3fb2a2e9c
Author: 纪华裕 <ji...@gmail.com>
AuthorDate: Fri Mar 8 14:35:23 2024 +0800
fix(services/hdfs-native): remove unsupported capabilities (#4333)
* Remove unsupported capabilities.
* format code
---
core/src/services/hdfs_native/backend.rs | 10 ----------
core/src/services/hdfs_native/docs.md | 10 +++++-----
2 files changed, 5 insertions(+), 15 deletions(-)
diff --git a/core/src/services/hdfs_native/backend.rs b/core/src/services/hdfs_native/backend.rs
index c1f10bcebc..af9b4c73fa 100644
--- a/core/src/services/hdfs_native/backend.rs
+++ b/core/src/services/hdfs_native/backend.rs
@@ -187,17 +187,7 @@ impl Accessor for HdfsNativeBackend {
.set_native_capability(Capability {
stat: true,
- read: true,
- read_can_seek: true,
-
- write: true,
- write_can_append: self._enable_append,
-
- create_dir: true,
delete: true,
-
- list: true,
-
rename: true,
blocking: true,
diff --git a/core/src/services/hdfs_native/docs.md b/core/src/services/hdfs_native/docs.md
index 4f7e245b9d..2b5367c0c0 100644
--- a/core/src/services/hdfs_native/docs.md
+++ b/core/src/services/hdfs_native/docs.md
@@ -6,14 +6,14 @@ Using [Native Rust HDFS client](https://github.com/Kimahriman/hdfs-native).
This service can be used to:
- [x] stat
-- [x] read
-- [x] write
-- [x] create_dir
+- [ ] read
+- [ ] write
+- [ ] create_dir
- [x] delete
- [x] rename
-- [x] list
+- [ ] list
- [x] blocking
-- [x] append
+- [ ] append
## Differences with webhdfs