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 91C2C70BE for ; Wed, 3 Aug 2011 20:31:52 +0000 (UTC) Received: (qmail 29459 invoked by uid 500); 3 Aug 2011 20:31:52 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 29161 invoked by uid 500); 3 Aug 2011 20:31:51 -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 29144 invoked by uid 99); 3 Aug 2011 20:31:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 20:31:51 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2011 20:31:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 067D0A6395 for ; Wed, 3 Aug 2011 20:31:27 +0000 (UTC) Date: Wed, 3 Aug 2011 20:31:27 +0000 (UTC) From: "Ravi Prakash (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <772928820.5841.1312403487023.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HADOOP-7509) Improve message when Authentication is required MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-7509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ravi Prakash updated HADOOP-7509: --------------------------------- Attachment: HADOOP-7509.1.patch The log message looks like {noformat} 2011-04-04 17:52:48,916 INFO org.apache.hadoop.ipc.Server: IPC Server listener on 8020: readAndProcess threw exception org.apache.hadoop.security.AccessControlException: Authentication is required. Count of bytes read: 0 org.apache.hadoop.security.AccessControlException: Authentication is required at org.apache.hadoop.ipc.Server$Connection.readAndProcess(Server.java:1121) at org.apache.hadoop.ipc.Server$Listener.doRead(Server.java:536) at org.apache.hadoop.ipc.Server$Listener$Reader.run(Server.java:343) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) {noformat} This confuses users. The error can be more detailed. Attaching a patch to do so. Can someone please review and commit it? No tests attached because its too small a change. > Improve message when Authentication is required > ----------------------------------------------- > > Key: HADOOP-7509 > URL: https://issues.apache.org/jira/browse/HADOOP-7509 > Project: Hadoop Common > Issue Type: Improvement > Affects Versions: 0.20.204.0 > Reporter: Ravi Prakash > Assignee: Ravi Prakash > Priority: Trivial > Fix For: 0.20.206.0 > > Attachments: HADOOP-7509.1.patch > > > The message when security is enabled and authentication is configured to be simple is not explicit enough. It simply prints out "Authentication is required" and prints out a stack trace. The message should be "Authorization (hadoop.security.authorization) is enabled but authentication (hadoop.security.authentication) is configured as simple. Please configure another method." -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira