[ 
https://issues.apache.org/jira/browse/SPARK-35802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Helt Long resolved SPARK-35802.
-------------------------------
    Resolution: Not A Bug

I try hadoop-2.7.5, the problem is not existed. So I confirm it's because I 
used hadoop-2.6.5. Sorry for this, I closed It.

> Error loading the stages/stage/<id> page in spark UI
> ----------------------------------------------------
>
>                 Key: SPARK-35802
>                 URL: https://issues.apache.org/jira/browse/SPARK-35802
>             Project: Spark
>          Issue Type: Bug
>          Components: Web UI
>    Affects Versions: 3.0.0, 3.0.1, 3.1.1, 3.1.2
>         Environment: CDH 5.7.1: Hadoop 2.6.5
> Spark on yarn cluster mode
>            Reporter: Helt Long
>            Priority: Major
>         Attachments: spark3.1.2-request-20210628093538.png, 
> spark3.1.2-stage-20210628093549.png, spark3.1.2-webui-20210628093559.png
>
>
> I try to load the sparkUI page for a specific stage, I get the following 
> error:
> {quote}Unable to connect to the server. Looks like the Spark application must 
> have ended. Please Switch to the history UI.
> {quote}
> Obviously the server is still alive and process new messages.
> Looking at the network tab shows one of the requests fails:
>  
> {{curl 
> 'http://<my-host-url>:8080/proxy/app-20201008130147-0001/api/v1/applications/app-20201008130147-0001/stages/11/0/taskTable'
> <html>
>  <head>
>  <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
>  <title>Error 500 Request failed.</title>
>  </head>
>  <body><h2>HTTP ERROR 500</h2>
>  <p>Problem accessing 
> /api/v1/applications/app-20201008130147-0001/stages/11/0/taskTable. Reason:
>  <pre> Request failed.</pre></p><hr><a 
> href="http://eclipse.org/jetty";>Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>
> </body>
>  </html>}}
> requests to any other object that I've tested seem to work, for example
>  
> {{curl 
> 'http://<my-host-url>:8080/proxy/app-20201008130147-0001/api/v1/applications/app-20201008130147-0001/stages/11/0/taskSummary'}}
>  
> The exception is:
> {{/api/v1/applications/app-20201008130147-0001/stages/11/0/taskTable
>  javax.servlet.ServletException: java.lang.NullPointerException
>  at 
> org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:410)
>  at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:346)
>  at 
> org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:366)
>  at 
> org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:319)
>  at 
> org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205)
>  at 
> org.sparkproject.jetty.servlet.ServletHolder.handle(ServletHolder.java:873)
>  at 
> org.sparkproject.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1623)
>  at 
> org.apache.spark.ui.HttpSecurityFilter.doFilter(HttpSecurityFilter.scala:95)
>  at 
> org.sparkproject.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
>  at 
> org.sparkproject.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:540)
>  at 
> org.sparkproject.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
>  at 
> org.sparkproject.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
>  at 
> org.sparkproject.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
>  at 
> org.sparkproject.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
>  at 
> org.sparkproject.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
>  at 
> org.sparkproject.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
>  at 
> org.sparkproject.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
>  at 
> org.sparkproject.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:753)
>  at 
> org.sparkproject.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:220)
>  at 
> org.sparkproject.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
>  at org.sparkproject.jetty.server.Server.handle(Server.java:505)
>  at org.sparkproject.jetty.server.HttpChannel.handle(HttpChannel.java:370)
>  at 
> org.sparkproject.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
>  at 
> org.sparkproject.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
>  at org.sparkproject.jetty.io.FillInterest.fillable(FillInterest.java:103)
>  at org.sparkproject.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
>  at 
> org.sparkproject.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
>  at 
> org.sparkproject.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
>  at 
> org.sparkproject.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
>  at 
> org.sparkproject.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
>  at 
> org.sparkproject.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
>  at 
> org.sparkproject.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698)
>  at 
> org.sparkproject.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804)
>  at java.lang.Thread.run(Thread.java:748)
>  Caused by: java.lang.NullPointerException
>  at 
> org.apache.spark.status.api.v1.StagesResource.$anonfun$doPagination$1(StagesResource.scala:175)
>  at 
> org.apache.spark.status.api.v1.BaseAppResource.$anonfun$withUI$1(ApiRootResource.scala:140)
>  at org.apache.spark.ui.SparkUI.withSparkUI(SparkUI.scala:107)
>  at 
> org.apache.spark.status.api.v1.BaseAppResource.withUI(ApiRootResource.scala:135)
>  at 
> org.apache.spark.status.api.v1.BaseAppResource.withUI$(ApiRootResource.scala:133)
>  at 
> org.apache.spark.status.api.v1.StagesResource.withUI(StagesResource.scala:28)
>  at 
> org.apache.spark.status.api.v1.StagesResource.doPagination(StagesResource.scala:174)
>  at 
> org.apache.spark.status.api.v1.StagesResource.$anonfun$taskTable$1(StagesResource.scala:129)
>  at 
> org.apache.spark.status.api.v1.BaseAppResource.$anonfun$withUI$1(ApiRootResource.scala:140)
>  at org.apache.spark.ui.SparkUI.withSparkUI(SparkUI.scala:107)
>  at 
> org.apache.spark.status.api.v1.BaseAppResource.withUI(ApiRootResource.scala:135)
>  at 
> org.apache.spark.status.api.v1.BaseAppResource.withUI$(ApiRootResource.scala:133)
>  at 
> org.apache.spark.status.api.v1.StagesResource.withUI(StagesResource.scala:28)
>  at 
> org.apache.spark.status.api.v1.StagesResource.taskTable(StagesResource.scala:113)
>  at sun.reflect.GeneratedMethodAccessor707.invoke(Unknown Source)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498)
>  at 
> org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)
>  at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)
>  at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)
>  at 
> org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:219)
>  at 
> org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)
>  at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:469)
>  at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:391)
>  at 
> org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:80)
>  at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:253)
>  at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)
>  at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)
>  at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
>  at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
>  at org.glassfish.jersey.internal.Errors.process(Errors.java:244)
>  at 
> org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)
>  at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:232)
>  at 
> org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:680)
>  at 
> org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:394)
>  ... 33 more}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to