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

Reply via email to