From 517061ac1053af98a4ca625ac5fec2b3fb2a2e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BA=AA=E5=8D=8E=E8=A3=95?= Date: Fri, 8 Mar 2024 14:35:23 +0800 Subject: [PATCH] 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 c1f10bcebc11..af9b4c73fabc 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 4f7e245b9d82..2b5367c0c087 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