6 configuration options · available in Rust, Python, Node.js
use opendal::Operator;
let op = Operator::via_iter("hdfs", [
])?;
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.
| Key | Type | Required | Description |
|---|---|---|---|
root | string | no | work dir of this backend |
name_node | string | no | name node of this backend |
kerberos_ticket_cache_path | string | no | kerberos_ticket_cache_path of this backend |
user | string | no | user of this backend |
enable_appenddeprecated | bool | no | Deprecated: 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_dir | string | no | atomic_write_dir of this backend |