当前位置:   article > 正文

spark报错1

spark报错1
  1. ERROR SparkContext: Error initializing SparkContext.
  2. java.net.BindException: Cannot assign requested address: Service ‘sparkDriver’ failed after 16 retries
  3. (on a random free port)! Consider explicitly setting the appropriate binding address
  4. 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
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/349285
推荐阅读
相关标签
  

闽ICP备14008679号