hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shinichi Yamashita (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9940) Make http jetty request logger NCSARequestLog fully configurable through log4j
Date Sat, 07 Sep 2013 03:15:51 GMT

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

Shinichi Yamashita commented on HADOOP-9940:
--------------------------------------------

[~jeagles] Thank you for create new ticket.

By the current implementation, a time zone is fixed in GMT. Therefore log is rotated at time
not to expect it. 

{code}
[hadoop@trunk ~]$ LANG=C date
Fri Sep  6 20:07:48 PDT 2013
[hadoop@trunk ~]$ LANG=C ll /var/log/hadoop/jetty-*
-rw-rw-r--. 1 hadoop hadoop 1168 Sep  6 15:24 /var/log/hadoop/jetty-namenode-2013_09_06.log
-rw-rw-r--. 1 hadoop hadoop  365 Sep  6 20:07 /var/log/hadoop/jetty-namenode-2013_09_07.log
[hadoop@trunk ~]$ cat /var/log/hadoop/jetty-namenode-2013_09_07.log
192.168.73.1 -  -  [07/9/2013:03:07:41 +0000] "GET /dfshealth.jsp HTTP/1.1" 200 0 "-" "Mozilla/5.0
(Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
192.168.73.1 -  -  [07/9/2013:03:07:41 +0000] "GET /static/hadoop.css HTTP/1.1" 200 0 "http://192.168.73.40:50070/dfshealth.jsp"
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0"
{code}

I commented on improvement of the DateFormat in the log in HADOOP-8704.
In addition, I will attach a patch about the setting of the time zone.
                
> Make http jetty request logger NCSARequestLog fully configurable through log4j
> ------------------------------------------------------------------------------
>
>                 Key: HADOOP-9940
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9940
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Jonathan Eagles
>
> Some options such a log date format are not available
> http://grepcode.com/file/repo1.maven.org/maven2/org.mortbay.jetty/jetty/6.1.26/org/mortbay/jetty/NCSARequestLog.java?av=f

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message