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 28F5B188DF for ; Tue, 12 May 2015 08:34:49 +0000 (UTC) Received: (qmail 11405 invoked by uid 500); 12 May 2015 08:34:43 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 11277 invoked by uid 500); 12 May 2015 08:34:43 -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 11267 invoked by uid 99); 12 May 2015 08:34:43 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 May 2015 08:34:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 17776C0DF2 for ; Tue, 12 May 2015 08:34:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.021 X-Spam-Level: X-Spam-Status: No, score=-0.021 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7_ZYfRPNXino for ; Tue, 12 May 2015 08:34:42 +0000 (UTC) Received: from mail-ig0-f169.google.com (mail-ig0-f169.google.com [209.85.213.169]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 9971E250C5 for ; Tue, 12 May 2015 08:34:41 +0000 (UTC) Received: by igbpi8 with SMTP id pi8so96195458igb.1 for ; Tue, 12 May 2015 01:34:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=Yh9hYRN7/jCAE0iGU46DVmyPnzzanQWEVwVg5cAQhV4=; b=XeIP+kQRAaI7C/fLEa8oXfYOp4YvCbSCz1xEQO3S+ew4A0rkCLqPZrO6WPmi9kwMRh XwCD4iHgrK8Q87f5EAD1gKE5c/4fEJlobet1YHVJCn1Xi0MmDZtDk9KE+riUz6IWG622 yOw/k/pTNsBfrNGb9nu2zEFO9/LOcRmY1EUgCCvpbtspVtDyYmyLf6fFq0+ipyQglNTB fX+vl2Xt+eYTK85yEkzMwYWI77aiUfE2XE1I/1UmRXxc8GfdXA/WJsR4qP1nFAgeTksj h+HFw+XPZ2zwBNVnvP4QvljsKs+heJB8WIvwrydlAT4bgStYr96YOlRSHvZiDYedj3Vr fnDg== X-Gm-Message-State: ALoCoQkKyw66CeCxyJiVKkS09cL7zhskoWO2xBijj4Xa9veXujh53CXk0m/voljuHiybyGseSDQ/ X-Received: by 10.43.59.80 with SMTP id wn16mr1834937icb.40.1431419680224; Tue, 12 May 2015 01:34:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.12.201 with HTTP; Tue, 12 May 2015 01:34:19 -0700 (PDT) In-Reply-To: <1593304096.821694.1431274305415.JavaMail.yahoo@mail.yahoo.com> References: <1593304096.821694.1431274305415.JavaMail.yahoo@mail.yahoo.com> From: Harsh J Date: Tue, 12 May 2015 14:04:19 +0530 Message-ID: Subject: Re: namenode uestion To: "" , Pravin Sinha Content-Type: text/plain; charset=UTF-8 Unless you turn on "dfs.client.use.datanode.hostname", the NN will always use IPs to denote replica location addresses. On Sun, May 10, 2015 at 9:41 PM, Pravin Sinha wrote: > Hi Asanjar, > > My understanding is that it returns serialized BlockLocation instances which > holds the location information for an HDFS block. It contains hostnames and > hostnames:ports of datanodes apart from some other info. > > I am a newbie in Hadoop, somebody may connfirm on this. > > Regards, > Pravin > > > > On Friday, 8 May 2015 10:21 PM, MrAsanjar . wrote: > > > hi all, > I have an hdfs question, my understanding is, namenode sends a list of > datanodes to hadoop client to send data blocks based on replication setting. > The question is, does the list from namenode has IP addresses or hostnames, > or both of the datanodes. > > NN -------> Client ----> DN1 ------> DN2 ------> DN3 > > -- Harsh J