Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 1FFAA19B35 for ; Thu, 10 Mar 2016 15:21:43 +0000 (UTC) Received: (qmail 63817 invoked by uid 500); 10 Mar 2016 15:21:41 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 63625 invoked by uid 500); 10 Mar 2016 15:21:41 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 63311 invoked by uid 99); 10 Mar 2016 15:21:41 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2016 15:21:41 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B7A632C1F60 for ; Thu, 10 Mar 2016 15:21:40 +0000 (UTC) Date: Thu, 10 Mar 2016 15:21:40 +0000 (UTC) From: "Michiel Vanderlee (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-12914) RPC client should deal with the IP address change MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Michiel Vanderlee created HADOOP-12914: ------------------------------------------ Summary: RPC client should deal with the IP address change Key: HADOOP-12914 URL: https://issues.apache.org/jira/browse/HADOOP-12914 Project: Hadoop Common Issue Type: Bug Components: ipc Affects Versions: 2.7.2 Environment: CentOS 7 Reporter: Michiel Vanderlee I'm seeing HADOOP-7472 again for the datanode in v2.7.2. If I start the datanode before the dns entry the namenode resolve, it never retries to resolve and keeps failing with a UnknownHostException. A restart or the datanode fixes this. TRACE ipc.ProtobufRpcEngine: 31: Exception <- nn1.hdfs-namenode-rpc.service.consul:8020: versionRequest {java.net.UnknownHostException: Invalid host name: local host is: (unknown); destination host is: "nn1.hdfs-namenode-rpc.service.consul":8020; java.net.UnknownHostException; For more details see: http://wiki.apache.org/hadoop/UnknownHost} The error comes from: org.apache.hadoop.ipc.Client..java$Connection line: 409 public Connection(ConnectionId remoteId, int serviceClass) throws IOException { this.remoteId = remoteId; this.server = remoteId.getAddress(); if (server.isUnresolved()) { throw NetUtils.wrapException(server.getHostName(), server.getPort(), null, 0, new UnknownHostException()); } The remoteId.address (InetSocketAddress) seems to only resolves on creation, never again unless done manually. -- This message was sent by Atlassian JIRA (v6.3.4#6332)