Jeff- If you look in /etc/hosts, you see the "localhost" is 127.0.0.1 (and if you use IPv6, ::1). This address is strictly loopback and can only be used for inter-process communication on a single machine.
See: http://en.wikipedia.org/wiki/Localhost -Matt On Mon, Aug 24, 2009 at 5:47 PM, zhang jianfeng <[email protected]> wrote: > Hi all, > > > > I have two computers, and in the hadoop-site.xml, I define the > fs.default.name as localhost:9000, then I cannot access the cluster with > Java API from another machine > > But if I change it to its real IP 192.168.1.103:9000, then I can access > the > cluster with Java API from another machine. > > It’s so strange, are they any different ? > > > > Thank you. > > Jeff zhang >
