[ 
https://issues.apache.org/jira/browse/HADOOP-15092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16280000#comment-16280000
 ] 

Prabhu Joseph commented on HADOOP-15092:
----------------------------------------

AuthorizationException does not provide stacktrace for security purposes. 
Logger only prints the stacktrace of the Throwable and does not log the message 
in case if stacktrace is empty. Attached a patch which returns the message 
alone as part of printStackTrace() of AuthorizationException class.

> Proxy failures during NamenodeWebHdfsMethods are not logged 
> ------------------------------------------------------------
>
>                 Key: HADOOP-15092
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15092
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 2.7.3
>            Reporter: Prabhu Joseph
>            Assignee: Prabhu Joseph
>
> When GetDelegationToken http request fails with proxy issue, there is no logs 
> from NameNode to indicate it's a proxy issue. Below is the only log. 
> IOExceptions are logged but AuthorizationException are not logged. It will be 
> helpful to log proxy failures from JspHelper getUGI().
> {code}
> 2017-12-05 13:05:02,045 INFO  namenode.GetDelegationTokenServlet 
> (GetDelegationTokenServlet.java:doGet(56)) - Request for token received with 
> no authentication from 172.26.93.73
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to