This service will visit the DBFS API supported by Databricks File System.
This service can be used to:
root: Set the work directory for backend.endpoint: Set the endpoint for backend.token: Databricks personal access token.Refer to [DbfsBuilder]'s public API docs for more information.
use opendal_core::Operator; use opendal_core::Result; use opendal_service_dbfs::Dbfs; #[tokio::main] async fn main() -> Result<()> { let mut builder = Dbfs::default() // set the root for Dbfs, all operations will happen under this root // // Note: // if the root is not exists, the builder will automatically create the // root directory for you // if the root exists and is a directory, the builder will continue working // if the root exists and is a folder, the builder will fail on building backend .root("/path/to/dir") // set the endpoint of Dbfs workspace .endpoint("https://adb-1234567890123456.78.azuredatabricks.net") // set the personal access token for builder .token("access_token"); let op: Operator = Operator::new(builder)?.finish(); Ok(()) }