diff --git a/rust/src/hdfs/proxy.rs b/rust/src/hdfs/proxy.rs index 9d7479e..eb25410 100644 --- a/rust/src/hdfs/proxy.rs +++ b/rust/src/hdfs/proxy.rs @@ -117,7 +117,8 @@ impl NameServiceProxy { .map(|_| ()) .or_else(|err| match err { HdfsError::RPCError(class, _) - if class == "java.lang.UnsupportedOperationException" => + if class == "java.lang.UnsupportedOperationException" + || class == "org.apache.hadoop.ipc.RpcNoSuchMethodException" => { Ok(()) }