Dell Poweredge

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, June 2, 2010

Ubuntu Enterprise Cloud

Posted on 8:32 AM by Unknown
Hadoop Cluster

I had problems with ssh passwordless logins taking ages on the hadoop Ubuntu cluster I was working on. This was fixed by adding a 'UseDNS no' entry to /etc/ssh/sshd_config file and restarting the ssh daemon using the command sudo /etc/init.d/ssh restart.

The compute nodes on the cluster could not access the internet so NAT had to be setup on the head hadoop node.

Where eth0 is the network card with access to the private network.
The following NAT was setup as follows using the command 'sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE' and '/proc/sys/net/ipv4/ip_forward' file entry should be 1.

Restart dnsmasq using the following command 'sudo /etc/init.d/dnsmasq restart'.

Configure the NAT with the following command 'iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE'. Where eth1 is the network card with access to the internet.

I tested the cluster by pinging a url on the internet with the command 'ping -c 4 google.com' the result was as follows

PING google.com (209.85.227.104) 56(84) bytes of data.
64 bytes from wy-in-f104.1e100.net (209.85.227.104): icmp_seq=1 ttl=51 time=18.8 ms
64 bytes from wy-in-f104.1e100.net (209.85.227.104): icmp_seq=2 ttl=51 time=18.8 ms
64 bytes from wy-in-f104.1e100.net (209.85.227.104): icmp_seq=3 ttl=51 time=18.9 ms
64 bytes from wy-in-f104.1e100.net (209.85.227.104): icmp_seq=4 ttl=51 time=18.8 ms

--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 18.800/18.840/18.912/0.106 ms


thus proving that the NAT settings had worked.

Information used was from the page http://www.ubuntugeek.com/sharing-internet-connection-in-ubuntu.html for this blog
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Hadoop Cluster Passwordless SSH login | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

Categories

  • Cluster Login Problem
  • Hadoop Cluster Passwordless SSH login
  • Open-SSH Installation
  • Software Update Command Line

Blog Archive

  • ►  2013 (6)
    • ►  September (3)
    • ►  April (2)
    • ►  March (1)
  • ►  2012 (16)
    • ►  November (1)
    • ►  October (1)
    • ►  July (2)
    • ►  June (3)
    • ►  May (1)
    • ►  April (1)
    • ►  March (3)
    • ►  February (3)
    • ►  January (1)
  • ►  2011 (17)
    • ►  December (1)
    • ►  November (3)
    • ►  August (4)
    • ►  July (1)
    • ►  June (2)
    • ►  May (2)
    • ►  March (2)
    • ►  February (1)
    • ►  January (1)
  • ▼  2010 (18)
    • ►  December (2)
    • ►  September (2)
    • ►  August (2)
    • ►  July (4)
    • ▼  June (7)
      • IPTables Lost After Reboot of Head Node
      • Wake on LAN
      • Mac OS X Command Line Software Update
      • SSH Connection Problems
      • Hadoop Cluster Problems
      • Setting up Open-SSH in Ubuntu
      • Ubuntu Enterprise Cloud
    • ►  May (1)
Powered by Blogger.

About Me

Unknown
View my complete profile