当前位置:   article > 正文

spark报错——无法访问WebUI_运行中的spark 无法打开spark webui

运行中的spark 无法打开spark webui

        笔者在安装spark,并配置spark高可用后,发现无法访问spark的WebUI,即无法访问http://localhost:8080,并且spark启动无报错,shell登入正常,唯独无法访问WebUI,通过日志最后发现,并非无法访问WebUI,而是spark在启动中,无法绑定到端口8080,导致spark绑定到其他端口,所以无法通过8080访问WebUI。同时,无法访问WebUI也有很多原因,如进程启动失败等导致,建议读者通过日志记录查找问题,最后通过搜索引擎解决问题。

        关于进程启动失败,而无法访问WebUI,请看笔者这篇文章

hadoop报错——ResourceManager无法启动

  1. 2023-04-17 00:50:12 WARN Utils:66 - Service 'MasterUI' could not bind on port 8080. Attempting port 8081.
  2. 2023-04-17 00:50:12 INFO AbstractConnector:278 - Started ServerConnector@46484b5a{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
  3. 2023-04-17 00:50:12 INFO Utils:54 - Successfully started service 'MasterUI' on port 8081.
  4. 2023-04-17 00:50:12 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@5e20ffdd{/app,null,AVAILABLE,@Spark}
  5. 2023-04-17 00:50:12 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@43e624f0{/app/json,null,AVAILABLE,@Spark}
  6. 2023-04-17 00:50:12 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@26fed2bc{/,null,AVAILABLE,@Spark}
  7. 2023-04-17 00:50:12 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@386e4c9c{/json,null,AVAILABLE,@Spark}
  8. 2023-04-17 00:50:12 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@4a5d3ec5{/static,null,AVAILABLE,@Spark}
  9. 2023-04-17 00:50:12 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@1108cb1{/app/kill,null,AVAILABLE,@Spark}
  10. 2023-04-17 00:50:12 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@65f4283c{/driver/kill,null,AVAILABLE,@Spark}
  11. 2023-04-17 00:50:12 INFO MasterWebUI:54 - Bound MasterWebUI to 0.0.0.0, and started at http://hadoop01:8081
  1. 2023-04-17 00:50:45 WARN Utils:66 - Service 'MasterUI' could not bind on port 8080. Attempting port 8081.
  2. 2023-04-17 00:50:45 WARN Utils:66 - Service 'MasterUI' could not bind on port 8081. Attempting port 8082.
  3. 2023-04-17 00:50:45 INFO AbstractConnector:278 - Started ServerConnector@757cfe25{HTTP/1.1,[http/1.1]}{0.0.0.0:8082}
  4. 2023-04-17 00:50:45 INFO Utils:54 - Successfully started service 'MasterUI' on port 8082.
  5. 2023-04-17 00:50:45 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@655e308{/app,null,AVAILABLE,@Spark}
  6. 2023-04-17 00:50:45 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@1d0b89ed{/app/json,null,AVAILABLE,@Spark}
  7. 2023-04-17 00:50:45 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@4df72772{/,null,AVAILABLE,@Spark}
  8. 2023-04-17 00:50:45 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@1f208e55{/json,null,AVAILABLE,@Spark}
  9. 2023-04-17 00:50:45 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@5e2538bd{/static,null,AVAILABLE,@Spark}
  10. 2023-04-17 00:50:45 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@4bd3f384{/app/kill,null,AVAILABLE,@Spark}
  11. 2023-04-17 00:50:45 INFO ContextHandler:781 - Started o.s.j.s.ServletContextHandler@44748657{/driver/kill,null,AVAILABLE,@Spark}
  12. 2023-04-17 00:50:45 INFO MasterWebUI:54 - Bound MasterWebUI to 0.0.0.0, and started at http://hadoop02:8082

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/990468
推荐阅读
相关标签
  

闽ICP备14008679号