[
https://issues.apache.org/jira/browse/HADOOP-3854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618453#action_12618453
]
Tsz Wo (Nicholas), SZE commented on HADOOP-3854:
------------------------------------------------
Here is an example showing how to configure filters:
- SampleInitializer.java: It implements HttpServerInitializer.
- LoggingFilter.java: A very simple filter which does logging.
- Specify SampleInitializer in conf as below
{code}
<property>
<name>hadoop.http.initializer</name>
<value>org.apache.hadoop.http.SampleInitializer</value>
<description>A class implementing
org.apache.hadoop.http.HttpServerInitializer for customized initialization of
HttpServer objects.</description>
</property>
{code}
Then, a message will be added to log for all http requests/responses.
> org.apache.hadoop.http.HttpServer should support user configurable filter
> -------------------------------------------------------------------------
>
> Key: HADOOP-3854
> URL: https://issues.apache.org/jira/browse/HADOOP-3854
> Project: Hadoop Core
> Issue Type: New Feature
> Reporter: Tsz Wo (Nicholas), SZE
> Attachments: 3854_20080729.patch, LoggingFilter.java,
> SampleInitializer.java
>
>
> Filters provide universal functions such as authentication, logging and
> auditing, etc. HttpServer should support configurable filters, so that
> individual site administrators could possibly configure filters for their web
> site.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.