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
相关推荐
云上先途2 小时前
属性标注是什么?主要解决什么问题?
大数据·人工智能
大大大大晴天5 小时前
每天认识一个组件:元数据平台OpenMetadata
大数据
接口不宕机5 小时前
1688 商品列表 API 对接商家 ERP,实现店铺商品同步与上下架自动监控
大数据
河南花仙子科技7 小时前
企业定制小游戏助力品牌软性传播
大数据·科技·游戏·小程序
云上先途7 小时前
标签化服务适合哪些人?常见适用场景一次讲清
大数据·人工智能·算法·音视频
yt004yt8 小时前
### 越华环保集团|绿岛 VOCs 集中治理,管网系统安全设计工程实战分享
大数据·运维
GreatVicent8 小时前
腾讯AI产业大会解读:Agent进场,企业基础设施怎么搭
大数据·数据库·人工智能·llm·agent·企业信息化
m0_466525298 小时前
从火柴人看护画面看云从科技生态企业的隐私保护实践
大数据·人工智能·科技·microsoft
yt004yt8 小时前
越华环保集团|绿岛 VOCs 集中治理,管网系统安全设计工程实战分享
大数据·运维
sxwuyanzu8 小时前
DeepSeek冲IPO-谁在为它付钱-公众号发布稿
大数据·人工智能·科技