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 98C4C200B8B for ; Tue, 20 Sep 2016 00:34:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 979B7160ACC; Mon, 19 Sep 2016 22:34:23 +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 E5C73160ADC for ; Tue, 20 Sep 2016 00:34:22 +0200 (CEST) Received: (qmail 88148 invoked by uid 500); 19 Sep 2016 22:34:21 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 87959 invoked by uid 99); 19 Sep 2016 22:34:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Sep 2016 22:34:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3CFBF2C1B84 for ; Mon, 19 Sep 2016 22:34:21 +0000 (UTC) Date: Mon, 19 Sep 2016 22:34:21 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-14624) LLAP: Use FQDN when submitting work to LLAP MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Sep 2016 22:34:23 -0000 [ https://issues.apache.org/jira/browse/HIVE-14624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shelukhin updated HIVE-14624: ------------------------------------ Summary: LLAP: Use FQDN when submitting work to LLAP (was: LLAP: Use FQDN for all communication ) > LLAP: Use FQDN when submitting work to LLAP > -------------------------------------------- > > Key: HIVE-14624 > URL: https://issues.apache.org/jira/browse/HIVE-14624 > Project: Hive > Issue Type: Bug > Components: llap > Affects Versions: 2.2.0 > Reporter: Gopal V > Assignee: Sergey Shelukhin > Fix For: 2.2.0 > > Attachments: HIVE-14624.01.patch, HIVE-14624.02.patch, HIVE-14624.03.patch, HIVE-14624.patch > > > {code} > llap-client/src/java/org/apache/hadoop/hive/llap/registry/impl/LlapFixedRegistryImpl.java: + socketAddress.getHostName()); > llap-client/src/java/org/apache/hadoop/hive/llap/registry/impl/LlapFixedRegistryImpl.java: host = socketAddress.getHostName(); > llap-common/src/java/org/apache/hadoop/hive/llap/metrics/MetricsUtils.java: public static String getHostName() { > llap-common/src/java/org/apache/hadoop/hive/llap/metrics/MetricsUtils.java: return InetAddress.getLocalHost().getHostName(); > llap-ext-client/src/java/org/apache/hadoop/hive/llap/LlapBaseInputFormat.java: String name = address.getHostName(); > llap-ext-client/src/java/org/apache/hadoop/hive/llap/LlapBaseInputFormat.java: builder.setAmHost(address.getHostName()); > llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/AMReporter.java: nodeId = LlapNodeId.getInstance(localAddress.get().getHostName(), localAddress.get().getPort()); > llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/ContainerRunnerImpl.java: localAddress.get().getHostName(), vertex.getDagName(), qIdProto.getDagIndex(), > llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/ContainerRunnerImpl.java: new ExecutionContextImpl(localAddress.get().getHostName()), env, > llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/LlapDaemon.java: String hostName = MetricsUtils.getHostName(); > llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/LlapProtocolServerImpl.java: .setBindAddress(addr.getHostName()) > llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/TaskRunnerCallable.java: request.getContainerIdString(), executionContext.getHostName(), vertex.getDagName(), > llap-server/src/java/org/apache/hadoop/hive/llap/io/api/impl/LlapIoImpl.java: String displayName = "LlapDaemonCacheMetrics-" + MetricsUtils.getHostName(); > llap-server/src/java/org/apache/hadoop/hive/llap/io/api/impl/LlapIoImpl.java: displayName = "LlapDaemonIOMetrics-" + MetricsUtils.getHostName(); > llap-server/src/test/org/apache/hadoop/hive/llap/daemon/impl/TestLlapDaemonProtocolServerImpl.java: new LlapProtocolClientImpl(new Configuration(), serverAddr.getHostName(), > llap-tez/src/java/org/apache/hadoop/hive/llap/tezplugins/LlapTaskCommunicator.java: builder.setAmHost(getAddress().getHostName()); > llap-tez/src/java/org/apache/hadoop/hive/llap/tezplugins/LlapTaskSchedulerService.java: String displayName = "LlapTaskSchedulerMetrics-" + MetricsUtils.getHostName(); > {code} > In systems where the hostnames do not match FQDN, calling the getCanonicalHostName() will allow for resolution of the hostname when accessing from a different base domain. -- This message was sent by Atlassian JIRA (v6.3.4#6332)