We have two namenodes set up at our company, say:
From the command line, I can do:Hadoop fs –ls hdfs://A.mycompany.com//some-dir
Hadoop fs –ls hdfs://B.mycompany.com//some-other-dir
I’m now trying to do the same from a Java program that uses the HDFS API. No luck there. I get an exception: “Wrong FS”.
Any idea what I’m missing in my Java program??