Skip to content

Commit 5846501

Browse files
authored
fix: Do not trim trailing slash of name_node (#6556)
1 parent dd242e0 commit 5846501

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/services/hdfs/backend.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ impl HdfsBuilder {
7575
/// - `hdfs://127.0.0.1:9000`: connect to hdfs cluster.
7676
pub fn name_node(mut self, name_node: &str) -> Self {
7777
if !name_node.is_empty() {
78-
// Trim trailing `/` so that we can accept `http://127.0.0.1:9000/`
79-
self.config.name_node = Some(name_node.trim_end_matches('/').to_string())
78+
self.config.name_node = Some(name_node.to_string())
8079
}
8180

8281
self

0 commit comments

Comments
 (0)