Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 41011200C13 for ; Mon, 6 Feb 2017 22:17:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3F87B160B56; Mon, 6 Feb 2017 21:17:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8814E160B53 for ; Mon, 6 Feb 2017 22:17:45 +0100 (CET) Received: (qmail 18298 invoked by uid 500); 6 Feb 2017 21:17:44 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 18287 invoked by uid 99); 6 Feb 2017 21:17:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2017 21:17:44 +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 20660C0C68 for ; Mon, 6 Feb 2017 21:17:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id yV75vC23t2ha for ; Mon, 6 Feb 2017 21:17:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id B84885F24B for ; Mon, 6 Feb 2017 21:17:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F322BE027E for ; Mon, 6 Feb 2017 21:17:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id B1B7B2528C for ; Mon, 6 Feb 2017 21:17:41 +0000 (UTC) Date: Mon, 6 Feb 2017 21:17:41 +0000 (UTC) From: "Thiruvel Thirumoolan (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17281) FN should use datanode port from hdfs configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 06 Feb 2017 21:17:46 -0000 [ https://issues.apache.org/jira/browse/HBASE-17281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15854752#comment-15854752 ] Thiruvel Thirumoolan commented on HBASE-17281: ---------------------------------------------- [~stack], Can you pls create a "favorednodes" component so I can tag all FN related jiras? Thanks! > FN should use datanode port from hdfs configuration > --------------------------------------------------- > > Key: HBASE-17281 > URL: https://issues.apache.org/jira/browse/HBASE-17281 > Project: HBase > Issue Type: Sub-task > Reporter: Thiruvel Thirumoolan > Assignee: Thiruvel Thirumoolan > Priority: Minor > Fix For: 2.0.0 > > Attachments: HBASE-17281.master.001.patch, HBASE-17281.master.002.patch, HBASE-17281.master.003.patch, HBASE-17281.master.004.patch, HBASE-17281.master.005.patch > > > Currently we use the ServerName port for providing favored node hints. We should use the DN port from hdfs-site.xml instead to avoid warning messages in region server logs. The warnings will be from this section of HDFS code, it moves across classes. > https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DataStreamer.java#L1758 > {code} > private boolean[] getPinnings(DatanodeInfo[] nodes) { > if (favoredNodes == null) { > return null; > } else { > boolean[] pinnings = new boolean[nodes.length]; > HashSet favoredSet = new HashSet<>(Arrays.asList(favoredNodes)); > for (int i = 0; i < nodes.length; i++) { > pinnings[i] = favoredSet.remove(nodes[i].getXferAddrWithHostname()); > LOG.debug("{} was chosen by name node (favored={}).", > nodes[i].getXferAddrWithHostname(), pinnings[i]); > } > if (!favoredSet.isEmpty()) { > // There is one or more favored nodes that were not allocated. > LOG.warn("These favored nodes were specified but not chosen: " > + favoredSet + " Specified favored nodes: " > + Arrays.toString(favoredNodes)); > } > return pinnings; > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)