hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norbert Burger <norbert.bur...@gmail.com>
Subject Re: setting up networking and ssh on multnode cluster...
Date Mon, 16 Feb 2009 02:34:54 GMT
Fwiw, the extra references to 127.0.1.1 in each host file aren't necessary.

>From node0, does 'ssh 192.168.0.2' work?  If not, then the issue isn't name
resolution -- take look at the network configs (eg., /etc/init.d/interfaces)
on each machine.

Norbert

On Sun, Feb 15, 2009 at 7:31 PM, zander1013 <zander1013@gmail.com> wrote:

>
> okay,
>
> i have changed /etc/hosts to look like this for node0...
>
> 127.0.0.1       localhost
> 127.0.1.1       node0
>
> # /etc/hosts (for hadoop master and slave)
> 192.168.0.1     node0
> 192.168.0.2     node1
> #end hadoop section
>
> # The following lines are desirable for IPv6 capable hosts
> ::1     ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
>
> ...and this for node1...
>
> 127.0.0.1       localhost
> 127.0.1.1       node1
>
> # /etc/hosts (for hadoop master and slave)
> 192.168.0.1     node0
> 192.168.0.2     node1
> #end hadoop section
>
> # The following lines are desirable for IPv6 capable hosts
> ::1     ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
>
> ... the machines are connected by a cat5 cable, they have wifi and are
> showing that they are connected to my wlan. also i have enabled all the
> user
> privleges in the user manager on both machines. here are the results from
> ssh on node0...
>
> hadoop@node0:~$ ssh node0
> Linux node0 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009 i686
>
> The programs included with the Ubuntu system are free software;
> the exact distribution terms for each program are described in the
> individual files in /usr/share/doc/*/copyright.
>
> Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
> applicable law.
>
> To access official Ubuntu documentation, please visit:
> http://help.ubuntu.com/
> Last login: Sun Feb 15 16:00:28 2009 from node0
> hadoop@node0:~$ exit
> logout
> Connection to node0 closed.
> hadoop@node0:~$ ssh node1
> ssh: connect to host node1 port 22: Connection timed out
> hadoop@node0:~$
>
> i will look into the link that you gave.
>
> -zander
>
>
> Norbert Burger wrote:
> >
> >>
> >> i have commented out the 192. addresses and changed 127.0.1.1 for node0
> >> and
> >> 127.0.1.2 for node0 (in /etc/hosts). with this done i can ssh from one
> >> machine to itself and to the other but the prompt does not change when i
> >> ssh
> >> to the other machine. i don't know if there is a firewall preventing me
> >> from
> >> ssh or not. i have not set any up to prevent ssh and i have not taken
> >> action
> >> to specifically allow ssh other than what was prescribed in the tutorial
> >> for
> >> a single node cluster for both machines.
> >
> >
> > Why are you using 127.* addresses for your nodes?  These fall into the
> > block
> > of IPs reserved for the loopback network (see
> > http://en.wikipedia.org/wiki/Loopback).
> >
> > Try changing both nodes back to 192.168, and re-starting Hadoop.
> >
> > Norbert
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/setting-up-networking-and-ssh-on-multnode-cluster...-tp22019559p22029812.html
> Sent from the Hadoop core-user mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message