spark报错1

复制代码
ERROR SparkContext: Error initializing SparkContext.
java.net.BindException: Cannot assign requested address: Service 'sparkDriver' failed after 16 retries
(on a random free port)! Consider explicitly setting the appropriate binding address
for the service 'sparkDriver' (for example spark.driver.bindAddress for SparkDriver) to the correct binding address.

ERROR SparkContext: Error initializing SparkContext.

java.net.BindException: Cannot assign requested address: Service 'sparkDriver' failed after 16 retries(on a random free port)! Consider explicitly setting the appropriate binding address

for the service 'sparkDriver' (for example spark.driver.bindAddress for SparkDriver) to the correct binding address.

原因

就是hosts文件绑定的ip地址和你当前的ip地址是不对的。

出现这个问题,一般是虚拟机上,没有固定IP, 每次电脑重启的时候, IP就变了。

解决方法

查看本机ip

复制代码
ifconfig

修改绑定的ip

复制代码
sudo vim /etc/hosts
相关推荐
edisao10 分钟前
【开源】轻量级 LLM 文本质检工具:精准识别核心概念缺失,支持动态别名 + 反馈闭环
大数据·开发语言·人工智能·经验分享·gpt·架构·开源
技术路线图19 分钟前
筑牢区域生命线——探访抚矿总医院全链条急危重症救治网
大数据·人工智能
TDengine (老段)20 分钟前
TDengine REST API 使用手册
大数据·数据库·物联网·restful·时序数据库·tdengine·涛思数据
启芯硬件21 分钟前
三极管和MOS管的降额使用设计实战
大数据·人工智能·经验分享·职场和发展·硬件工程
zgl_2005377928 分钟前
源代码:ZGLanguage 解析SQL数据血缘 之 显示 UPDATE SQL 结构图
大数据·数据库·数据仓库·hadoop·数据治理·sql解析·数据血缘
GIS工具-gistools202133 分钟前
欧洲电厂分布数据及绿色能源情况
大数据·gis·能源
Elastic 中国社区官方博客35 分钟前
Elasticsearch:如何使用 LLM 在摄入数据时提取需要的信息
大数据·人工智能·elasticsearch·搜索引擎·ai·全文检索
迎仔1 小时前
Elasticsearch:大数据的超级索引引擎
大数据·elasticsearch·搜索引擎
Elastic 中国社区官方博客1 小时前
Elasticsearch:监控 LLM 推理和 Agent Builder 使用 OpenRouter
大数据·数据库·人工智能·elasticsearch·搜索引擎·ai·全文检索
迎仔1 小时前
Alluxio 通俗原理解析:大数据的“高速缓存冰箱”
大数据