java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
2017-07-21 15:18
666 查看
在Centos7 中 使用 Intellij IDEA 来 Spark 本地模式启动时,报错:
这是因为我的客户端电脑IP改变了,改过来之后就好了。
例如:
java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries! 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 WARN Utils: Service ‘sparkDriver’ could not bind on port 0. Attempting port 1. 16/06/27 19:36:34 ERROR SparkContext: Error initializing SparkContext. Java.NET.BindException: 无法指定被请求的地址: Service ‘sparkDriver’ failed after 16 retries!
这是因为我的客户端电脑IP改变了,改过来之后就好了。
例如:
val sparkConf = new SparkConf() .setAppName(jobName) .set("spark.driver.host", "localhost") .setMaster("local[4]")
相关文章推荐
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!
- java.net.BindException: 无法指定被请求的地址: Service 'sparkDriver' failed after 16 retries!