Spark bind on port 0. Attempting port 1 问题解决

Linux 下运行spark local bind on port 0. Attempting port 1 问题

2016-11-01 16:04:56 [org.apache.spark.util.Utils]-[WARN] - Service ‘sparkDriver‘ could not bind on port 0. Attempting port 1.

2016-11-01 16:04:56 [org.apache.spark.SparkContext]-[ERROR] - Error initializing SparkContext.

java.net.BindException: Can‘t assign requested address: Service ‘sparkDriver‘ failed after 16 retries! Consider explicitly setting the appropriate port for the service ‘sparkDriver‘ (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries.

原因是找不到主机对应的ip地址,而不是端口绑定不正确引起的。

在hosts中加入如下代码

127.0.0.1 hostname

这里的用户名根据实际情况来写,这样,spark  local 就能找到本地对应的ip了,启动成功

时间: 2024-08-10 15:11:47

Spark bind on port 0. Attempting port 1 问题解决的相关文章

linux socket TCP UDP bind 同义IP和port

//TCP and UDP can bind to the same IP & port. #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <assert.h> #include <stdio.h> #include <unistd.h> #include &

我遇到的错误curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused

今天我用curl命令,无论如何都是出现: curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused 找了很久,不知道是什么问题,后来发现curl有一个配置文件: p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff } span.s1 { } ~/.curlrc 里

android 中Network error IOException: failed to connect to /127.0.0.1 (port 1433): connect failed: ECONNREFUSED (Connection refused)

下面对android中出现的Network error IOException: failed to connect to /127.0.0.1 (port 1433): 做一下总结: 当用android程序调用本地的sqlserver的时候,当连接ip写成127.0.0.1的时候,怎么都连不通,出现以下的错误信息: 感觉好像是代码有问题或者是清单文件中某个权限忘加了,其实不是这样的.原来模拟器默认把127.0.0.1和localhost当做本身了,在模拟器上可以用10.0.2.2代替127.0

[转发]解决 git push Failed to connect to 127.0.0.1 port 45463: 拒绝连接

使用Github pull 代码突然报错: Failed to connect to 127.0.0.1 port 43421: Connection refused 使用 lsof 发现端口未被占用:lsof -i:45463 查看代理:env|grep -i proxy NO_PROXY=localhost,127.0.0.0/8,::1 http_proxy=http://127.0.0.1:45463/ HTTPS_PROXY=http://127.0.0.1:45463/ https_

Error running &#39;Tomcat 9.0.24&#39;: port out of range:-1

修改tomcat安装目录下的conf--server.xml检查一下,端口不能是-1, 一般会选80,或者1-65535之间的任意一个整数 Error running 'Tomcat 9.0.24': port out of range:-1 原文地址:https://www.cnblogs.com/csyzlm/p/11758905.html

git时 Failed to connect to 127.0.0.1 port 1080: Connection refused

在公司换了一台电脑之后发现git clone 和 npm install都失败,报错为 fatal: unable to access 'https://github.com/netease-im/NIM_PC_UIKit/': Failed to connect to 127.0.0.1 port 1080: Connection refused 产生原因:本地使用了端口代理,导致连接失败 解决办法:在本机全局搜索 gitconfig 打开文件,删除有关proxy的所有行,只删除与 proxy

[Apache]apache2不能启动的解决办法(提示could not bind to address 0.0.0.0:80)

昨晚重装了电脑,原来装的是win2003,后来中毒后杀完毒还能用就继续用着,只是运行不了新安装的软件,后来实在没办法才重装了XP,但是装完出现一个问题,系统居然装在了L盘,原来的D盘到J盘依此类推往前进了一位即从C盘到I盘~~原来的xampp装在了D盘,现在变成了C盘,打开XAMPP-Control面板,启动不了apache,后来想起apache/conf/httpd.conf里面的设置有问题,于是把所有的路径有关的设置都由原来的D:改为C:,发现还是不行,于是运行apache_start.ba

解决android sdk 运行出现 could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037:的问题

ionic3项目,在添加android平台后,cordova run android 出现 以下问题: error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次. (10048) This application has requested the Runtime to terminate it in an unusual way.Ple

Spark整合kafka0.10.0新特性(二)

接着Spark整合kafka0.10.0新特性(一)开始 import org.apache.kafka.clients.consumer.ConsumerRecord import org.apache.kafka.common.serialization.StringDeserializer import org.apache.spark.streaming.kafka010._ import org.apache.spark.streaming.kafka010.LocationStrat