hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samir Ahmic (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-13493) ISE/HTTP 500 when opening table details from standby master.
Date Mon, 20 Apr 2015 14:08:59 GMT

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

Samir Ahmic commented on HBASE-13493:
-------------------------------------

Maybe we can add redirect to /master-status in  table.jsp in case that is called from backup
master. Something like this:
{code}
    HMaster master = (HMaster)getServletContext().getAttribute(HMaster.MASTER);
+  if (! master.isActiveMaster()) { 
+    response.sendRedirect("http://" + master.getServerName().getHostname()+ ":"+ 
+        master.getConfiguration().getInt("hbase.master.info.port", 60010)+"/master-status");
+  }

{code}

> ISE/HTTP 500 when opening table details from standby master.
> ------------------------------------------------------------
>
>                 Key: HBASE-13493
>                 URL: https://issues.apache.org/jira/browse/HBASE-13493
>             Project: HBase
>          Issue Type: Bug
>          Components: UI
>    Affects Versions: 0.98.9
>            Reporter: Serhiy Bilousov
>            Priority: Minor
>
> Given: There are 3 HBase Masters on-line (1 online and 2 stand by)
> When: Navigate to the http://hbase_snandby_master_url:60010/table.jsp?name=TABLE_NAME
> Then: HTTP ERROR 500 - INTERNAL_SERVER_ERROR thrown.
> {noformat}
> HTTP ERROR 500
> Problem accessing /table.jsp. Reason:
>     INTERNAL_SERVER_ERROR
> Caused by:
> java.lang.NullPointerException
> 	at org.apache.hadoop.hbase.generated.master.table_jsp._jspService(table_jsp.java:71)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> 	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.http.lib.StaticUserWebFilter$StaticUserFilter.doFilter(StaticUserWebFilter.java:109)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> 	at org.apache.hadoop.http.HttpServer$QuotingInputFilter.doFilter(HttpServer.java:1081)
> 	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)
> {noformat}



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

Mime
View raw message