diff --git a/src/lib.rs b/src/lib.rs index 2663258..b54ebb3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -62,7 +62,7 @@ impl HdfsObjectStore { /// Creates a new HdfsObjectStore using the specified URL /// - /// Connect to a single NameNode + /// Connect to a NameNode /// ```rust /// # use hdfs_native_object_store::HdfsObjectStore; /// # fn main() -> object_store::Result<()> { @@ -70,15 +70,6 @@ impl HdfsObjectStore { /// # Ok(()) /// # } /// ``` - /// - /// Connect to a NameService - /// ```rust - /// # use hdfs_native_object_store::HdfsObjectStore; - /// # fn main() -> object_store::Result<()> { - /// let store = HdfsObjectStore::with_url("hdfs://ns")?; - /// # Ok(()) - /// # } - /// ``` pub fn with_url(url: &str) -> Result { Ok(Self::new(Arc::new(Client::new(url).to_object_store_err()?))) } @@ -92,8 +83,8 @@ impl HdfsObjectStore { /// # fn main() -> object_store::Result<()> { /// let config = HashMap::from([ /// ("dfs.ha.namenodes.ns".to_string(), "nn1,nn2".to_string()), - /// ("dfs.namenode.rpc-address.nn1".to_string(), "nn1.example.com:9000".to_string()), - /// ("dfs.namenode.rpc-address.nn2".to_string(), "nn2.example.com:9000".to_string()), + /// ("dfs.namenode.rpc-address.ns.nn1".to_string(), "nn1.example.com:9000".to_string()), + /// ("dfs.namenode.rpc-address.ns.nn2".to_string(), "nn2.example.com:9000".to_string()), /// ]); /// let store = HdfsObjectStore::with_config("hdfs://ns", config)?; /// # Ok(())