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 8091B961D for ; Thu, 23 Aug 2012 19:35:17 +0000 (UTC) Received: (qmail 385 invoked by uid 500); 23 Aug 2012 19:35:12 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 303 invoked by uid 500); 23 Aug 2012 19:35:12 -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 296 invoked by uid 99); 23 Aug 2012 19:35:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2012 19:35:12 +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 (nike.apache.org: domain of iefinkel@gmail.com designates 209.85.160.48 as permitted sender) Received: from [209.85.160.48] (HELO mail-pb0-f48.google.com) (209.85.160.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2012 19:35:03 +0000 Received: by pbbrq13 with SMTP id rq13so2448002pbb.35 for ; Thu, 23 Aug 2012 12:34:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=dPuIVrDfD7ljiaYA9VnQ2rrxuPj9O3DS1Y3oSbEkBdk=; b=IVRTx7sdqI9lhA+n+Rv0LmD3HMhu/L0nuhRfwgczoTMI5dDO8iXmuTaWzZ8wCvQ7Kt Tae/vzEYPpXUIlzjyMsbsCNxWWyoypUq9+vqTjpQBveZj0EVMAENG5cpbjNACEx+M2tw uKg0SP/QkdrwIyXmDW7TlyUlKsr9JpdfOwgLp7x5UnkxBrR1TW6CcKuSjVMmKXeeZmdu W51Bm8mprN2wg7uTrdPeuE4BQwCZ/57qkpFz+7skqSzCEYVuzXfF6kms3b99Jtb+hiQ6 s+fzqi1oc2xn9azgQJdea8lFWdw8+0Wbyz36FMd937YAOB0+U1eMTSQC5McK1peOzr0H huog== Received: by 10.68.240.236 with SMTP id wd12mr7286538pbc.83.1345750482228; Thu, 23 Aug 2012 12:34:42 -0700 (PDT) Received: from [192.168.1.69] ([67.218.98.82]) by mx.google.com with ESMTPS id hr1sm6598634pbc.23.2012.08.23.12.34.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 23 Aug 2012 12:34:41 -0700 (PDT) From: igor Finkelshteyn Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Hadoop on EC2 Managing Internal/External IPs Date: Thu, 23 Aug 2012 12:34:44 -0700 Message-Id: To: user@hadoop.apache.org Mime-Version: 1.0 (Apple Message framework v1280) X-Mailer: Apple Mail (2.1280) Hi, I'm currently setting up a Hadoop cluster on EC2, and everything works = just fine when accessing the cluster from inside EC2, but as soon as I = try to do something like upload a file from an external client, I get = timeout errors like: 12/08/23 12:06:16 ERROR hdfs.DFSClient: Failed to close file = /user/some_file._COPYING_ java.net.SocketTimeoutException: 65000 millis timeout while waiting for = channel to be ready for connect. ch : = java.nio.channels.SocketChannel[connection-pending = remote=3D/10.123.x.x:50010] What's clearly happening is my NameNode is resolving my DataNode's IPs = to their internal EC2 values instead of their external values, and then = sending along the internal IP to my external client, which is obviously = unable to reach those. I'm thinking this must be a common problem. How = do other people deal with it? Is there a way to just force my name node = to send along my DataNode's hostname instead of IP, so that the hostname = can be resolved properly from whatever box will be sending files? Eli=