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 AA396190E2 for ; Mon, 7 Mar 2016 22:04:41 +0000 (UTC) Received: (qmail 93607 invoked by uid 500); 7 Mar 2016 22:04:41 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 93478 invoked by uid 500); 7 Mar 2016 22:04: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 93388 invoked by uid 99); 7 Mar 2016 22:04:41 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Mar 2016 22:04:41 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BC67F2C1F62 for ; Mon, 7 Mar 2016 22:04:40 +0000 (UTC) Date: Mon, 7 Mar 2016 22:04:40 +0000 (UTC) From: "Xiao Chen (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-12901) Add warning log when KMSClientProvider cannot create a connection to the KMS server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-12901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15183814#comment-15183814 ] Xiao Chen commented on HADOOP-12901: ------------------------------------ Thanks Andrew for the prompt review and commit. :) > Add warning log when KMSClientProvider cannot create a connection to the KMS server > ----------------------------------------------------------------------------------- > > Key: HADOOP-12901 > URL: https://issues.apache.org/jira/browse/HADOOP-12901 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Xiao Chen > Assignee: Xiao Chen > Priority: Minor > Fix For: 2.8.0 > > Attachments: HADOOP-12901.01.patch > > > Currently when failed to connect, one can only see logs at debug level with a vague {{SocketTimeoutException}}. (Luckily in the env I saw this, HADOOP-10015 was not present, so the last WARN log was printed.) > {noformat} > 2015-12-17 12:28:01,410 DEBUG org.apache.hadoop.security.UserGroupInformation: PrivilegedAction as:hdfs (auth:SIMPLE) from:org.apache.hadoop.crypto.key.kms.KMSClientProvider.createConnection(KMSClientProvider.java:477) > 2015-12-17 12:28:01,469 WARN org.apache.hadoop.security.UserGroupInformation: PriviledgedActionException as:hdfs (auth:SIMPLE) cause:java.net.SocketTimeoutException: connect timed out > {noformat} > The issue was then fixed by opening up the KMS server port. > This jira is to propose we add specific loggings in this case, to help user easily identify the problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)