启动spark localhost: ssh: Could not resolve hostname localhost: Name or service not known
可查看hosts文件root@ubuntu:/home/xiaoye/zookeeper# vim /etc/hosts#127.0.0.1localhost#127.0.1.1ubuntu192.168.26.140ubuntu192.168.26.141ubuntu2192.168.26.142ubuntu3看到localhost被注销掉了,那就试...
·
可查看hosts文件
root@ubuntu:/home/xiaoye/zookeeper# vim /etc/hosts
#127.0.0.1 localhost
#127.0.1.1 ubuntu
192.168.26.140 ubuntu
192.168.26.141 ubuntu2
192.168.26.142 ubuntu3
看到localhost被注销掉了,那就试着把他放开:
root@ubuntu:/home/xiaoye/zookeeper# vim /etc/hosts
127.0.0.1 localhost
127.0.1.1 ubuntu
192.168.26.140 ubuntu
192.168.26.141 ubuntu2
192.168.26.142 ubuntu3
然后重新启动spark,就行了。
如果是个集群就全部都放开;
更多推荐
已为社区贡献3条内容
所有评论(0)