https://opendal.apache.org/ logo
Hi team, I am using OpenDAL in a
# general
s
Hi team, I am using OpenDAL in a distributed application to write data to hdfs. If two pods try to write a
completion_flag_file
, concurrently is there a way to ensure that only one of them proceeds using the current write apis. I understand that the application ideally should be responsible for assigning the job completion file write to a single pod, I just want to check if there is a simple way to do it using some hdfs and opendal config during writes. Thank you!
Also, can we give a list of namenodes for hdfs ? https://opendal.apache.org/docs/services/hdfs#via-config From the code I see, the builder has Option and even the hdrs client builder expects a single string as the name node.
Copy code
let name_node = CString::new(self.name_node.as_bytes())?;
in
hdrs-0.3.1/src/client.rs
Traced it all the way till hdfs-sys
Copy code
void hdfsBuilderSetNameNode(struct hdfsBuilder *bld, const char *nn)
{
    bld->nn = nn;
}
and still don't see any logic to either take a list or split based on a delimiter to find multiple name nodes. Can you please help on how hdfs-sys connects to hdfs ?