I have a simple java client that saves files to HDFS - configured with 1 name node. For this, I use a hadoop configuration, specifing the default filesystem like:
org.apache.hadoop.conf.Configuration conf = new org.apache.hadoop.conf.Configuration();
conf.set("fs.defaultFS", "hdfs://NNip:port");
However, in the future, I will need to connect to a hdfs configured with 1 active namenode and 1 standby namenode and in case the active namenode goes down, automatically use the standby namenode.
Does anyone have any advice on how this could be achieved? Any link / example would be much appreciated, as I am still new to anything related to the Hadoop platform.
Thanks