Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8BF6675B for ; Tue, 7 Jun 2011 22:29:20 +0000 (UTC) Received: (qmail 7275 invoked by uid 500); 7 Jun 2011 22:29:20 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 7244 invoked by uid 500); 7 Jun 2011 22:29:20 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 7236 invoked by uid 99); 7 Jun 2011 22:29:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 22:29:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 22:29:19 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4772E106191 for ; Tue, 7 Jun 2011 22:28:59 +0000 (UTC) Date: Tue, 7 Jun 2011 22:28:59 +0000 (UTC) From: "Matt Foley (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1745168638.1617.1307485739289.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2071566641.16360.1304370183465.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-1875) MiniDFSCluster hard-codes dfs.datanode.address to localhost MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-1875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matt Foley updated HDFS-1875: ----------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) +1. The one auto-test failure is unrelated. Committed to trunk. Thanks, Eric! > MiniDFSCluster hard-codes dfs.datanode.address to localhost > ----------------------------------------------------------- > > Key: HDFS-1875 > URL: https://issues.apache.org/jira/browse/HDFS-1875 > Project: Hadoop HDFS > Issue Type: Bug > Components: test > Affects Versions: 0.22.0 > Reporter: Eric Payne > Assignee: Eric Payne > Fix For: 0.23.0 > > Attachments: HDFS-1875.patch, HDFS-1875.patch > > > When creating RPC addresses that represent the communication sockets for each simulated DataNode, the MiniDFSCluster class hard-codes the address of the dfs.datanode.address port to be "127.0.0.1:0" > The DataNodeCluster test tool uses the MiniDFSCluster class to create a selected number of simulated datanodes on a single host. In the DataNodeCluster setup, the NameNode is not simulated but is started as a separate daemon. > The problem is that if the write requrests into the simulated datanodes are originated on a host that is not the same host running the simulated datanodes, the connections are refused. This is because the RPC sockets that are started by MiniDFSCluster are for "localhost" (127.0.0.1) and are not accessible from outside that same machine. > It is proposed that the MiniDFSCluster.setupDatanodeAddress() method be overloaded in order to accommodate an environment where the NameNode is on one host, the client is on another host, and the simulated DataNodes are on yet another host (or even multiple hosts simulating multiple DataNodes each). > The overloaded API would add a parameter that would be used as the basis for creating the RPS sockets. By default, it would remain 127.0.0.1 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira