hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kihwal Lee (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6687) nn.getNamesystem() may return NPE from JspHelper
Date Tue, 02 Aug 2016 22:14:20 GMT

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

Kihwal Lee commented on HDFS-6687:
----------------------------------

The new namenode UI won't hit JSPs like it used to. I don't think this problem exists anymore.


> nn.getNamesystem() may return NPE from JspHelper
> ------------------------------------------------
>
>                 Key: HDFS-6687
>                 URL: https://issues.apache.org/jira/browse/HDFS-6687
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.5.0
>            Reporter: Mit Desai
>            Assignee: Mit Desai
>
> In hadoop-2, the http server is started in the very early stage to show the progress.
If the user tries to get the name system, it may not be completely up and the NN logs will
have this kind of error.
> {noformat}
> 2014-07-14 15:49:03,521 [***] WARN
> resources.ExceptionHandler: INTERNAL_SERVER_ERROR
> java.lang.NullPointerException
>     at
> org.apache.hadoop.hdfs.server.common.JspHelper.getTokenUGI(JspHelper.java:661)
>     at
> org.apache.hadoop.hdfs.server.common.JspHelper.getUGI(JspHelper.java:604)
>     at
> org.apache.hadoop.hdfs.web.resources.UserProvider.getValue(UserProvider.java:53)
>     at
> org.apache.hadoop.hdfs.web.resources.UserProvider.getValue(UserProvider.java:41)
>     at
> com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:46)
>     at
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)
>     at
> com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:203)
>     at
> com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
>     at
> com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
>     at
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>     at
> com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
>     at
> com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>     at
> com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
>     at
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
>     at
> com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
>     at
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
>     at
> com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
>     at
> com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
>     at
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
>     at
> com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>     at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>     at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
>     at org.apache.hadoop.hdfs.web.AuthFilter.doFilter(AuthFilter.java:84)
>     at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>     at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:78)
>     at com.yahoo.hadoop.GzipFilter.doFilter(GzipFilter.java:220)
>     at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>     at
> org.apache.hadoop.http.HttpServer2$QuotingInputFilter.doFilter(HttpServer2.java:1223)
>     at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>     at org.apache.hadoop.http.NoCacheFilter.doFilter(NoCacheFilter.java:45)
>     at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>     at org.apache.hadoop.http.NoCacheFilter.doFilter(NoCacheFilter.java:45)
>     at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
>     at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
>     at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>     at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>     at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
>     at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>     at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>     at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>     at org.mortbay.jetty.Server.handle(Server.java:326)
>     at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>     at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
>     at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
>     at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
>     at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>     at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
>     at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> {noformat}
> We need to check this and return appropriate message back to the user.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message