Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC9B619141 for ; Wed, 6 Apr 2016 10:29:27 +0000 (UTC) Received: (qmail 1611 invoked by uid 500); 6 Apr 2016 10:29:25 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 1470 invoked by uid 500); 6 Apr 2016 10:29:25 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 1140 invoked by uid 99); 6 Apr 2016 10:29:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2016 10:29:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8B2312C1F5D for ; Wed, 6 Apr 2016 10:29:25 +0000 (UTC) Date: Wed, 6 Apr 2016 10:29:25 +0000 (UTC) From: "Steve Loughran (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-13005) if local hostname doesn't resolve, HttpServer2 fails with a kerberos exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Steve Loughran created HADOOP-13005: --------------------------------------- Summary: if local hostname doesn't resolve, HttpServer2 fails with a kerberos exception Key: HADOOP-13005 URL: https://issues.apache.org/jira/browse/HADOOP-13005 Project: Hadoop Common Issue Type: Bug Components: net Affects Versions: 2.7.2 Environment: a VM whose hostname was no longer in /etc/hosts Reporter: Steve Loughran Priority: Minor When a service (NN, DN) is started and the local hostname isn't in /etc/hosts, things will, obviously, fail. However, the failure is reported as a wrapped Kerberos Exception, rather than going via the NetUtils.wrapException handling code {{java.lang.RuntimeException: Could not resolve Kerberos principal name: java.net.UnknownHostException: xubunty: xubunty: unknown error}} The text is a dangerous distraction from the real cause. Especially as it appears even on systems which aren't running kerberos. A fail-fast check could go into the http server startup process ahead of the security setup; NetUtils could add special reporting of the unknown-local-host problem -- This message was sent by Atlassian JIRA (v6.3.4#6332)