hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7688) When a servlet filter throws an exception in init(..), the Jetty server failed silently.
Date Wed, 02 Nov 2011 19:05:32 GMT

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

Tsz Wo (Nicholas), SZE commented on HADOOP-7688:
------------------------------------------------

>From the log of TestWebHdfsFileSystemContract below, some filters and Jersey resources
are not initialized before http server startup.

{noformat}
2011-11-02 11:58:24,397 INFO  namenode.NameNode (NameNodeHttpServer.java:run(182)) - NameNode
Web-server up at: localhost/127.0.0.1:52819
2011-11-02 11:58:24,397 INFO  ipc.Server (Server.java:run(649)) - IPC Server Responder: starting
2011-11-02 11:58:24,397 INFO  ipc.Server (Server.java:run(480)) - IPC Server listener on 52818:
starting
2011-11-02 11:58:24,398 INFO  ipc.Server (Server.java:run(1487)) - IPC Server handler 0 on
52818: starting
2011-11-02 11:58:24,398 INFO  ipc.Server (Server.java:run(1487)) - IPC Server handler 1 on
52818: starting
2011-11-02 11:58:24,398 INFO  ipc.Server (Server.java:run(1487)) - IPC Server handler 2 on
52818: starting
2011-11-02 11:58:24,399 INFO  namenode.NameNode (NameNode.java:initialize(344)) - NameNode
up at: localhost/127.0.0.1:52818
2011-11-02 11:58:24,400 INFO  hdfs.MiniDFSCluster (MiniDFSCluster.java:startDataNodes(883))
- Starting DataNode 0 with dfs.datanode.data.dir: file:/Users/szetszwo/hadoop/t2/hadoop-hdfs-project/hadoop-hdfs/target/test/data/dfs/data/data1/,file:/Users/szetszwo/hadoop/t2/hadoop-hdfs-project/hadoop-hdfs/target/test/data/dfs/data/data2/
2011-11-02 11:58:24,407 INFO  security.UserGroupInformation (UserGroupInformation.java:initUGI(237))
- JAAS Configuration already set up for Hadoop, not re-installing.
2011-11-02 11:58:24,439 WARN  util.NativeCodeLoader (NativeCodeLoader.java:<clinit>(62))
- Unable to load native-hadoop library for your platform... using builtin-java classes where
applicable
2011-11-02 11:58:24,523 INFO  impl.MetricsSystemImpl (MetricsSystemImpl.java:init(150)) -
DataNode metrics system started (again)
2011-11-02 11:58:24,530 INFO  datanode.DataNode (DataNode.java:initDataXceiver(723)) - Opened
info server at 52820
2011-11-02 11:58:24,532 INFO  datanode.DataNode (DataXceiverServer.java:<init>(77))
- Balancing bandwith is 1048576 bytes/s
2011-11-02 11:58:24,535 INFO  http.HttpServer (HttpServer.java:addGlobalFilter(477)) - Added
global filter 'safety' (class=org.apache.hadoop.http.HttpServer$QuotingInputFilter)
2011-11-02 11:58:24,536 WARN  lib.StaticUserWebFilter (StaticUserWebFilter.java:getUsernameFromConf(141))
- dfs.web.ugi should not be used. Instead, use hadoop.http.staticuser.user.
2011-11-02 11:58:24,536 INFO  http.HttpServer (HttpServer.java:addFilter(455)) - Added filter
static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter)
to context datanode
2011-11-02 11:58:24,537 INFO  http.HttpServer (HttpServer.java:addFilter(462)) - Added filter
static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter)
to context logs
2011-11-02 11:58:24,537 INFO  http.HttpServer (HttpServer.java:addFilter(462)) - Added filter
static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter)
to context static
2011-11-02 11:58:24,541 INFO  http.HttpServer (HttpServer.java:addJerseyResourcePackage(382))
- addJerseyResourcePackage: packageName=org.apache.hadoop.hdfs.server.datanode.web.resources;org.apache.hadoop.hdfs.web.resources,
pathSpec=/webhdfs/v1/*
2011-11-02 11:58:24,542 INFO  http.HttpServer (HttpServer.java:start(647)) - Port returned
by webServer.getConnectors()[0].getLocalPort() before open() is -1. Opening the listener on
0
{noformat}

                
> When a servlet filter throws an exception in init(..), the Jetty server failed silently.

> -----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7688
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7688
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 0.23.0, 0.24.0
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Uma Maheswara Rao G
>         Attachments: filter-init-exception-test.patch, org.apache.hadoop.http.TestServletFilter-output.txt
>
>
> When a servlet filter throws a ServletException in init(..), the exception is logged
by Jetty but not re-throws to the caller.  As a result, the Jetty server failed silently.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message