Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8A9DBF9B6 for ; Tue, 30 Apr 2013 22:18:35 +0000 (UTC) Received: (qmail 85683 invoked by uid 500); 30 Apr 2013 22:18:30 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 85502 invoked by uid 500); 30 Apr 2013 22:18:30 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 85494 invoked by uid 99); 30 Apr 2013 22:18:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 22:18:30 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anautomate@gmail.com designates 209.85.192.181 as permitted sender) Received: from [209.85.192.181] (HELO mail-pd0-f181.google.com) (209.85.192.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Apr 2013 22:18:26 +0000 Received: by mail-pd0-f181.google.com with SMTP id q10so542157pdj.12 for ; Tue, 30 Apr 2013 15:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=y6h9N2w69k1k3io5p74aU2L06GW5Nfk6jMts2lv9I7Y=; b=SmEAZVC7MSHXSYn1zYj/wpIOM0ni16ZT4wkprdpXdr7UKf0m9wzWoPi/TZGs2qLmzn K1jqXIx6ekM7bQ0DSGsJcD5EWLQ0y3VNWFNnEgGrReWbrB8wNwM7eS12Y4b1dgBR2V6Q /t3Af9Ifdc/I1cEd8QArJNwMicA4AEY9QOwJwcAEO5ncnH9oc6frHZUgr3QBoLfoZWQD 7jiUAQAW9UYuo2g5et9F7qfsyjqSCVnkFxAwlQH8x++aRNy8jgqZTy7m3vsJIQp+QaFb MEXa6+MgX6nc8ozDemF0zx5/QvNO6On8zP0Z8PmzahGp2G3yeFHc4yS3KWQvNt4XKzN/ R9kg== MIME-Version: 1.0 X-Received: by 10.68.197.195 with SMTP id iw3mr282741pbc.177.1367360285977; Tue, 30 Apr 2013 15:18:05 -0700 (PDT) Received: by 10.66.146.166 with HTTP; Tue, 30 Apr 2013 15:18:05 -0700 (PDT) In-Reply-To: References: Date: Tue, 30 Apr 2013 18:18:05 -0400 Message-ID: Subject: Re: New to Hadoop-SSH communication From: Automation Me To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=e89a8ff1cc262032e604db9b60a4 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1cc262032e604db9b60a4 Content-Type: text/plain; charset=ISO-8859-1 Thank you Mitra..I will change the hostname On Tue, Apr 30, 2013 at 6:16 PM, Mitra Kaseebhotla < mitra.kaseebhotla@gmail.com> wrote: > and change the hostname to reflect your actual hostnames. > > > > On Tue, Apr 30, 2013 at 3:14 PM, Mohammad Tariq wrote: > >> comment out 127.0.1.1 ubuntu in both the machines. >> >> if it still doesn't work change 127.0.1.1 master to something else, >> like 127.0.0.3 or something. >> >> Warm Regards, >> Tariq >> https://mtariq.jux.com/ >> cloudfront.blogspot.com >> >> >> On Wed, May 1, 2013 at 3:34 AM, Automation Me wrote: >> >>> Hi Tariq, >>> >>> >>> Master: >>> >>> Users: >>> hduser hduser >>> >>> hostname: >>> ubuntu >>> >>> *etc/hosts* >>> >>> 127.0.0.1 localhost >>> 127.0.1.1 ubuntu >>> >>> # 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 >>> >>> 127.0.1.1 master >>> 127.0.0.2 slave >>> >>> >>> Slave Machine: >>> >>> Etc/Hosts >>> 127.0.0.1 localhost >>> 127.0.1.1 ubuntu >>> >>> # 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 >>> >>> >>> 127.0.1.1 master >>> 127.0.0.2 slave >>> >>> >>> users: >>> hduser hduser >>> >>> Hostname: >>> >>> ubuntu >>> >>> >>> On Tue, Apr 30, 2013 at 5:52 PM, Automation Me wrote: >>> >>>> @Mitra Yes I cloned the same VM's. By default Ubuntu takes 127.0.0.1 >>>> -ubuntu hostname for all machines >>>> >>>> @Tariq i will send the hosts file and users of all the machines. >>>> >>>> >>>> On Tue, Apr 30, 2013 at 5:42 PM, Mitra Kaseebhotla < >>>> mitra.kaseebhotla@gmail.com> wrote: >>>> >>>>> Looks like you have just cloned/copied the same VMs. Change the >>>>> hostname of each: >>>>> >>>>> http://askubuntu.com/questions/87665/how-do-i-change-the-hostname-without-a-restart >>>>> >>>>> >>>>> >>>>> On Tue, Apr 30, 2013 at 2:30 PM, Automation Me wrote: >>>>> >>>>>> Thank you Tariq. >>>>>> >>>>>> I am using the same username on both the machines and when i try to >>>>>> copy a file master to slave just to make sure SSH is working fine, The file >>>>>> is copying into master itself not an slave machine. >>>>>> >>>>>> scp -r /usr/local/somefile hduser@slave:/usr/local/somefile >>>>>> >>>>>> Any suggestions... >>>>>> >>>>>> >>>>>> Thanks >>>>>> Annt >>>>>> >>>>>> >>>>>> >>>>>> On Tue, Apr 30, 2013 at 5:14 PM, Mohammad Tariq wrote: >>>>>> >>>>>>> ssh is actually *user@some_machine *to *user@some_other_machine*. >>>>>>> either use same username on both the machines or add the IPs along with >>>>>>> proper user@hostname in /etc/hosts file. >>>>>>> >>>>>>> HTH >>>>>>> >>>>>>> Warm Regards, >>>>>>> Tariq >>>>>>> https://mtariq.jux.com/ >>>>>>> cloudfront.blogspot.com >>>>>>> >>>>>>> >>>>>>> On Wed, May 1, 2013 at 2:39 AM, Automation Me wrote: >>>>>>> >>>>>>>> Hello, >>>>>>>> >>>>>>>> I am new to Hadoop and trying to install multinode cluster on >>>>>>>> ubuntu VM's.I am not able to communicate between two clusters using SSH. >>>>>>>> >>>>>>>> My host file: >>>>>>>> >>>>>>>> 127.0.1.1 Master >>>>>>>> 127.0.1.2 Slave >>>>>>>> >>>>>>>> The following changes i made in two VM's >>>>>>>> >>>>>>>> 1.Updated the etc/hosts file in two vm's >>>>>>>> >>>>>>>> on Master VM >>>>>>>> i did SSH keygen and trying to copy the key into Slave >>>>>>>> >>>>>>>> ssh-keygen -t rsa -P "" >>>>>>>> cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys >>>>>>>> ssh-copy-id -i $HOME/.ssh/id_rsa.pub slave@ubuntu. >>>>>>>> >>>>>>>> When i login into master and slave and check >>>>>>>> >>>>>>>> master@ubuntu>Hostname it says UBUNTU >>>>>>>> slave@ubuntu>Hostname it says UBUNTU >>>>>>>> >>>>>>>> >>>>>>>> Could you assist me on this? >>>>>>>> >>>>>>>> Thanks >>>>>>>> Annt >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> ________________________________________ >>>>> >>>>> To Understand Recursion, >>>>> You must first Understand Recursion >>>>> ________________________________________ >>>>> >>>> >>>> >>> >> > > > -- > ________________________________________ > > To Understand Recursion, > You must first Understand Recursion > ________________________________________ > --e89a8ff1cc262032e604db9b60a4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thank you Mitra..I will ch= ange the hostname


On Tue, Apr 30, 2013 at 6:16 PM, Mitra Kaseebhotla <mitra.kaseeb= hotla@gmail.com> wrote:
and change the hostname to reflect your actual hostnames.<= div>


On Tue, Apr 30, 2013 at 3:14= PM, Mohammad Tariq <dontariq@gmail.com> wrote:
comment out=A0127= .0.1.1 ubuntu=A0i= n both the machines.=A0

if it still doesn't work change=A0127.0.1.1 =A0 = =A0master=A0to something else, like 127.0.0.3 or something.

Warm Regards,
Tariq
<= a href=3D"https://mtariq.jux.com/" target=3D"_blank">https://mtariq.jux.com= /


On Wed, May 1, 2013 at 3= :34 AM, Automation Me <anautomate@gmail.com> wrote:
Hi Tariq,


Master:

Users:
hduser hduser

hostname:
ubuntu

etc/hosts

127.0.0.1 localhost
127.0.1.1 ubuntu<= /div>

# The following lines are desirable for IPv6 capable ho= sts
::1 =A0 =A0 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

127.0.1.1 =A0 =A0master
127.0.0.2 =A0 slave


Slave Machine:

Etc/Hosts
127.0.0.1 localhost
127.0.1.1 ubuntu<= /div>

# The following lines are desirable for IPv6 capable ho= sts
::1 =A0 =A0 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

127.0.1.1 =A0 =A0master
127.0.0.2 =A0 slave


users:
hduser hduser

Hostname:

ubuntu


On Tue, Apr 30, 20= 13 at 5:52 PM, Automation Me <anautomate@gmail.com> wrote= :
@Mitra Yes I cloned the same VM's. By default = Ubuntu takes 127.0.0.1 -ubuntu hostname for all machines

@Tariq i will send the hosts file and users of al= l the machines.


On Tue, Apr 30, 2013 at 5:42 PM, Mitra Kaseebhotla <= ;mitra.kas= eebhotla@gmail.com> wrote:
Looks like you have just cloned/copied th= e same VMs. Change the hostname of each:
=A0


On Tue, Apr 30, 2013 at 2:30 PM, Automation Me <anau= tomate@gmail.com> wrote:
Thank you Tariq.

I am using =A0the same username on both the machines and = when i try to copy a file master to slave just to make sure SSH is working = fine, The file is copying into master itself not an slave machine.

=A0 scp -r /usr/local/somefile hduser@slave:/usr/local/som= efile

=
Any suggestions..= .


Thanks
Annt



On Tue, Apr 30, 2013 at 5:14 PM, Mohammad Tariq <d= ontariq@gmail.com> wrote:
ssh is actually user@some_machine = to user@some_other_machine. either use same username on both the mac= hines or add the IPs along with proper user@hostname in /etc/hosts file.
HTH



On Wed, May 1, 2013 at 2:39 AM, Automati= on Me <anautomate@gmail.com> wrote:
Hello,

I am new to Hadoop and trying to install multinode cluste= r on ubuntu VM's.I am not able to communicate between two clusters usin= g SSH.

My host file:

127.0.1.1 Master
127.0.1.2 Slave

The following changes i made in two VM's

1.Updated the etc/hosts file in two vm's

on Master VM
=A0i did SSH keygen and trying to copy the key into Slave
ssh-keygen -t rsa -P &= quot;"
=A0 =A0 =A0 =A0cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authori= zed_keys
=A0 =A0 =A0 =A0ss= h-copy-id -i $HOME/.ssh/id_rsa.pub slave@ubuntu.

When= i login into master and slave =A0and check

mast= er@ubuntu>Hostname it says UBUNTU
slave@ubuntu>Hostname it = says UBUNTU


Coul= d you assist me on this?

Than= ks
An= nt
















<= /div>--
=A0______________________________= __________
=A0
=A0To Understand Recursion,
=A0You must first Under= stand Recursion
=A0________________________________________






--
=A0_________= _______________________________
=A0
=A0To Understand Recursion,
= =A0You must first Understand Recursion
=A0______________________________= __________

--e89a8ff1cc262032e604db9b60a4--