Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 53734 invoked from network); 16 Feb 2007 00:23:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Feb 2007 00:23:37 -0000 Received: (qmail 82903 invoked by uid 500); 16 Feb 2007 00:23:35 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 82878 invoked by uid 500); 16 Feb 2007 00:23:34 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 82791 invoked by uid 99); 16 Feb 2007 00:23:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 16:23:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 16:23:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B9F2E7141E7 for ; Thu, 15 Feb 2007 16:23:05 -0800 (PST) Message-ID: <33360411.1171585385759.JavaMail.jira@brutus> Date: Thu, 15 Feb 2007 16:23:05 -0800 (PST) From: "Hairong Kuang (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-985) Namenode should identify DataNodes as ip:port instead of hostname:port In-Reply-To: <27289830.1170797165534.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473574 ] Hairong Kuang commented on HADOOP-985: -------------------------------------- The patch looks good. I have two comments: 1. ClientProtocolVersionNumber should be bumped since the syntax of the open & create requests is changed. 2. DatanodeID contains the fields that need to be saved to the disk. Since the new field hostName does not need to serialized, it might better be put in DatanodeDescriptor. > Namenode should identify DataNodes as ip:port instead of hostname:port > ---------------------------------------------------------------------- > > Key: HADOOP-985 > URL: https://issues.apache.org/jira/browse/HADOOP-985 > Project: Hadoop > Issue Type: Improvement > Components: dfs > Affects Versions: 0.11.0 > Reporter: Raghu Angadi > Assigned To: Raghu Angadi > Fix For: 0.12.0 > > Attachments: dfshealth.html, HADOOP-985-1.patch, HADOOP-985-2.patch, HADOOP-985-3.patch, HADOOP-985-4.patch > > > Right now NameNode keeps track of DataNodes with "hostname:port". One proposal is to keep track of datanodes with "ip:port". There are various concerns expressed regd hostnames and ip. Please add your experiences here so that we have better idea on what we should fix etc. > How should be calculate datanode ip: > 1) Just like how we calculate hostname currently with "dfs.datanode.dns.interface" and "dfs.datanode.dns.nameserver". So if interface specified wrong, it could report ip like 127.0.0.1 which might or might not be intended. > 2) Namenode can use the remove socket address when the datanode registers. Not sure how easy it to get this address in RPC or if this is desirable. > 3) Namenode could just resolve the hostname when a datanode registers. It could print of a warning if the resolved ip and reported ip don't match. > One advantage of using IPs is that DFSClient does not need to resolve them when it connects to datanode. This could save few milliseconds for each block. Also, DFSClient should check all its ips to see if a given ip is local or not. > As far I see namenode does not resolve any DNS in normal operations since it does not actively contact datanodes. In that sense not sure if this have any change in Namenode performance. > Thoughts? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.