On Thu, Nov 18, 2010 at 9:11 PM, Narender <narender.ho...@gmail.com> wrote:
> I am trying to set up a hadoop  cluster(Linux machines) on 3 vm’s. As
> of now I am using say 10.1.1.2/3/4.
>
>
> I am currently facing an issue on 3/4.  I am unable to ssh localhost
> on the boxes once I log on  to them via putty.
>
>  I can do so in 10.1.1.2 I think.
> It seems that the ssh client tries to connect to the ssh port on those
> boxes but just freezes. ssh in the verbose mode shows that it is
> waiting to connect to the ssh port on them
> Since I can use putty to connect to all the boxes, and I see that ssh
> daemon running on them, and netstat tells me that the ssh ports are
> being listened to, I am a bit confused about the ssh clients behavior.
>
> Advise or pointer would be much appreciated....
>
> Best Regards
> --N
>
i figured it out.


During configuration of hadoop, we need to ensure that a process will
be able to ssh to localhost

Investigating a bit further, it seemed that the ssh client was timing
out on the connection on these 2 machines.
On digging further for the reason of the time out, it seems that the
loopback interface was not right on 10.1.1.2/3.


Interestingly, the loopback interace details seem to be correct
/etc/sysconfig/network-scripts/ifcfg-lo has the right details and is
exactly the same in all of the machines.
Running  /sbin/ifconfig lo on a machine with the correct loopback interface

[je...@dmysql-01 ~]$ /sbin/ifconfig lo
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:839 errors:0 dropped:0 overruns:0 frame:0
          TX packets:839 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:93857 (91.6 KiB)  TX bytes:93857 (91.6 KiB)

Running it on one that was not correct

[je...@dmysql-03 ~]$ /sbin/ifconfig lo
lo        Link encap:Local Loopback
          LOOPBACK  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)


You can see that the loopback interface is incorrectly set. Hence ssh
cannot connect to the loopback interface when it tries for localhost

Thank you again..


Best Regards
N

_______________________________________________
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to