资源管理器UI正在抛出500内部服务器错误

时间:2016-07-06 10:41:34

标签: hadoop

我有一个拥有1个Master和1个Slave的集群。我的群集工作正常,突然我开始出现以下错误,因为我的资源管理器UI没有加载:

HTTP ERROR 500

Problem accessing /cluster. Reason:

    INTERNAL_SERVER_ERROR
Caused by:

java.lang.NullPointerException
    at org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:235)
    at org.apache.hadoop.security.token.delegation.web.ServletUtils.getParameter(ServletUtils.java:48)
    at org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationHandler.managementOperation(DelegationTokenAuthenticationHandler.java:170)
    at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:502)
    at org.apache.hadoop.yarn.server.security.http.RMAuthenticationFilter.doFilter(RMAuthenticationFilter.java:84)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
    at org.apache.hadoop.http.HttpServer2$QuotingInputFilter.doFilter(HttpServer2.java:1224)
    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.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
    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)

如果我尝试检查守护进程是否正在运行,我可以看到RM守护程序按以下方式运行:

[hadoop@cluster-test hadoop]$ jps
22263 Jps
21549 NameNode
21888 ResourceManager
21733 SecondaryNameNode

我的RM日志中也有以下错误日志,但这些错误不会经常弹出。我不确定这些问题是否相关。想在这里分享这可能对那些可能会看到这个问题的人有所帮助:

2016-07-05 17:41:49,878 ERROR   org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: RECEIVED SIGNAL   15: SIGTERM
2016-07-05 17:41:49,884 ERROR  org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager : ExpiredTokenRemover received java.lang.InterruptedException: sleep interrupted

我正在使用以下hadoop版本:

Hadoop 2.6.0
Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r    e3496499ecb8d220fba99dc5ed4c99c8f9e33bb1
Compiled by jenkins on 2014-11-13T21:10Z
Compiled with protoc 2.5.0

请帮助,因为我已经坚持了很长时间,并且无法从谷歌获得太多帮助。

非常感谢任何帮助!

1 个答案:

答案 0 :(得分:0)

我遇到了类似的问题。原因可能是httpclient jar中的一些bug在hadoop / share / hadoop / common / lib中。在我的情况下,我不小心在该目录中放置了更高版本的httpclient,这恰好是错误的httpclient。

查看以下jira以获取更多信息: https://issues.apache.org/jira/browse/HADOOP-13215