Skip to main content

hdfs

6 configuration options · available in Rust, Python, Node.js

Quick start
use opendal::Operator;

let op = Operator::via_iter("hdfs", [
])?;
All configuration options (copy & trim)
Full reference
use opendal::Operator;

let op = Operator::via_iter("hdfs", [
// work dir of this backend
// ("root".to_string(), "...".to_string()),

// name node of this backend
// ("name_node".to_string(), "...".to_string()),

// kerberos_ticket_cache_path of this backend
// ("kerberos_ticket_cache_path".to_string(), "...".to_string()),

// user of this backend
// ("user".to_string(), "...".to_string()),

// atomic_write_dir of this backend
// ("atomic_write_dir".to_string(), "...".to_string()),

])?;

Every option is passed as a string key; OpenDAL parses it into the right type. Some services may require building the binding with the matching services-* feature enabled.

Configuration reference

General6
KeyTypeRequiredDescription
rootstringnowork dir of this backend
name_nodestringnoname node of this backend
kerberos_ticket_cache_pathstringnokerberos_ticket_cache_path of this backend
userstringnouser of this backend
enable_appenddeprecatedboolnoDeprecated: HDFS append capability is enabled by default.
Deprecated since 0.57.0: HDFS append capability is enabled by default and this option is no longer needed.
atomic_write_dirstringnoatomic_write_dir of this backend