Hi, I remember there being a bug in an early .18. when port was specified in path. But I'm absolutely sure it was fixed long time back. In any case, if you are using java APIs similar to: Fs = FileSystem.get(conf); FileStatus[] status = FileSystem.listStatus(myPath); You shouldn't face the issue.
Hope it helps, Amogh On 9/16/10 9:39 AM, "Mark Kerzner" <markkerz...@gmail.com> wrote: Hi, in the core-site.xml, I have this <property> <name>fs.default.name</name> <value>hdfs://localhost:9000</value> </property> and then I can both see hdfs from command line, like hadoop fs -ls hdfs://localhost:9000/ and also give such path to my code as hdfs://localhost:9000/myfileswhatever However, it looks a little strange to give the port; I remember not needing the port in 0.18.3. My additional consternation comes from the fact that hadoop fs -ls hdfs:// also works from command line, but not from code. I am confused and must be missing something. What is the recommended practice? Thank you, Mark I am using /hadoop-0.20.2+320