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 E3855200C13 for ; Mon, 6 Feb 2017 22:27:46 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E2223160B62; Mon, 6 Feb 2017 21:27: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 42651160B53 for ; Mon, 6 Feb 2017 22:27:46 +0100 (CET) Received: (qmail 37332 invoked by uid 500); 6 Feb 2017 21:27:45 -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 37135 invoked by uid 99); 6 Feb 2017 21:27:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2017 21:27:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B55C01A041F for ; Mon, 6 Feb 2017 21:27:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id CCKoOPGWYwgc for ; Mon, 6 Feb 2017 21:27:44 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id ABE175F5C7 for ; Mon, 6 Feb 2017 21:27:43 +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 B2B13E0294 for ; Mon, 6 Feb 2017 21:27:42 +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 00C9725297 for ; Mon, 6 Feb 2017 21:27:42 +0000 (UTC) Date: Mon, 6 Feb 2017 21:27:42 +0000 (UTC) From: "stack (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:27:47 -0000 [ https://issues.apache.org/jira/browse/HBASE-17281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15854773#comment-15854773 ] stack commented on HBASE-17281: ------------------------------- [~thiruvel] Done. I also made you an administrator so you can do it yourself going forward. Thanks [~thiruvel] > 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 > Components: FavoredNodes > 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)