赞
踩
- 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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。