title: How to access hdfs by URI consisting of H/A namenodes in Spark which is outer hadoop cluster?
body: <p>Now I have some Spark applications which store output to HDFS.</p>
  
  <p>Since our hadoop cluster is consisting of namenode H/A, and spark cluster is outside of hadoop cluster (I know it is something bad) I need to specify HDFS URI to application so that it can access HDFS.</p>
  
  <p>But it doesn't recognize name service so I can only give one of namenode's URI, and if it fails, modify configuration file and try again.</p>
  
  <p>Accessing Zookeeper for revealing active seems to very annoying, so I'd like to avoid.</p>
  
  <p>Could you suggest any alternatives?</p>