页面树结构
转至元数据结尾
转至元数据起始

问题描述

挖掘引擎启动时,不断尝试绑定7777端口

引擎日志:

2024-01-28 22:02:57.256 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7777. Attempting port 7778.
2024-01-28 22:02:57.266 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7778. Attempting port 7779.
2024-01-28 22:02:57.276 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7779. Attempting port 7780.
2024-01-28 22:02:57.286 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7780. Attempting port 7781.
2024-01-28 22:02:57.302 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7781. Attempting port 7782.
2024-01-28 22:02:57.309 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7782. Attempting port 7783.
2024-01-28 22:02:57.318 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7783. Attempting port 7784.
2024-01-28 22:02:57.332 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7784. Attempting port 7785.
2024-01-28 22:02:57.342 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7785. Attempting port 7786.
2024-01-28 22:02:57.354 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7786. Attempting port 7787.
2024-01-28 22:02:57.364 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7787. Attempting port 7788.
2024-01-28 22:02:57.374 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7788. Attempting port 7789.
2024-01-28 22:02:57.395 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7789. Attempting port 7790.
2024-01-28 22:02:57.406 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7790. Attempting port 7791.
2024-01-28 22:02:57.413 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7791. Attempting port 7792.
2024-01-28 22:02:57.425 [1] WARN util.Utils.logWarning:72 - Service 'sparkDriver' could not bind on port 7792. Attempting port 7793.
2024-01-28 22:02:57.446 [1] ERROR spark.SparkContext.logError:97 - Error initializing SparkContext.
java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries (starting from 7777)! Consider explicitly setting the appropriate port for the service 'sparkDriver' (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.



原因分析

1.主机名映射到错误的ip   

例如在挖掘引擎所在的服务器上,ping挖掘引擎主机名出现 目标主机不可达


2.未做主机名ip映射


解决办法

按照正确的主机名ip映射关系重新配置,然后重启引擎进程即可。

  • 无标签