FAQ
Hi -

We have two namenodes set up at our company, say:

hdfs://A.mycompany.com
hdfs://B.mycompany.com
From the command line, I can do:
Hadoop fs –ls hdfs://A.mycompany.com//some-dir

And

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??

Thanks,

Frank

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 5 | next ›
Discussion Overview
groupcommon-user @
categorieshadoop
postedDec 8, '11 at 10:43p
activeDec 9, '11 at 2:32a
posts5
users3
websitehadoop.apache.org...
irc#hadoop

3 users in discussion

JAX: 2 posts Frank Astier: 2 posts Tom Melendez: 1 post

People

Translate

site design / logo © 2022 Grokbase