Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 AD84B10CB3 for ; Sun, 6 Apr 2014 10:30:15 +0000 (UTC) Received: (qmail 45464 invoked by uid 500); 6 Apr 2014 10:30:07 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 44886 invoked by uid 500); 6 Apr 2014 10:30:05 -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 44879 invoked by uid 99); 6 Apr 2014 10:30:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Apr 2014 10:30:03 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of azuryyyu@gmail.com designates 209.85.160.44 as permitted sender) Received: from [209.85.160.44] (HELO mail-pb0-f44.google.com) (209.85.160.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Apr 2014 10:29:56 +0000 Received: by mail-pb0-f44.google.com with SMTP id rp16so5466323pbb.3 for ; Sun, 06 Apr 2014 03:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:mime-version:subject :message-id:date:references:in-reply-to:to; bh=Ekp6WvDkodlyyVco+OoCrRd+MlFmt2EcAQhM+IVB1BM=; b=UwiaVEKAcCXl3WzsvTi/kydnhKMpc7nwRNHuVzY3VrCwtC75wQeJlGWJTq2BpFiaP9 VlE1iXkpPVIAUdhW7YH27K+rH3UY2/rUL7bwyTr73HtYg47WM/aCSLfityqvwlpPsn6G h/VPC+z+Fabx3oD1MuaETD6+yRw3uXDb5un9+df6cIUCsBfl8YX8ez+UDSO+Pcx4FdPo RwKDjHBwWWxrsl+OXEqi4w8+j19W/pNok9+0Bh35iGh51JWJVHJSSPaL7d05fGE5/Fr4 GBwAsbRWv6GUBhVOG8QRdOawGyQ0jeQ30W0yJ7LUUPcFAGkshOVefJ4uZ1H53dwM9Ti4 KhQg== X-Received: by 10.68.137.136 with SMTP id qi8mr25119755pbb.79.1396780176225; Sun, 06 Apr 2014 03:29:36 -0700 (PDT) Received: from [192.168.1.100] ([219.142.252.87]) by mx.google.com with ESMTPSA id tt4sm29374055pbc.46.2014.04.06.03.29.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 06 Apr 2014 03:29:35 -0700 (PDT) From: Azuryy Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: Connect a node in virtual machine with other nodes in physical machine with port forwarding Message-Id: <45D2732C-E303-4747-83CB-8AC9AA8A084C@gmail.com> Date: Sun, 6 Apr 2014 18:29:24 +0800 References: In-Reply-To: To: "user@hadoop.apache.org" X-Mailer: iPhone Mail (11D167) X-Virus-Checked: Checked by ClamAV on apache.org Hi, Just do it, I did it successfully. Sent from my iPhone5s > On 2014=C4=EA4=D4=C26=C8=D5, at 14:42, Chau Yee Cheung wrote: >=20 > Hi everyone, >=20 > I am trying to build a cluster with my classmates. 3 of us have linux inst= alled on the physical machine, 2 of us are using virtual machines. Since the= campus network has some restrictions, we can only use NAT mode to connect t= he virtual machine to the internet. >=20 > I want to know if it's possible to connect a node in virtual machine with o= ther nodes in physical machine with port forwarding. I've tried to forward s= ome ports and the other's physical machine can connect to my virtual machine= via them, but I'm not sure if hadoop can connect to other nodes in this way= . To my knowledge the port for the tasktracker is uncertain, so I can't forw= ard a specific port for it. >=20 > Also, other nodes trying to ssh my virtual machine will have to use a port= other than 22(Then it will be forwarded to the port 22 in my virtual machin= e). I wonder how to configure this. >=20 > Thanks.