[root@hadoop0 spark-1.0.1-bin-hadoop1]# sbin/start-all.sh
starting org.apache.spark.deploy.master.Master, logging to /usr/local/spark-1.0.1-bin-hadoop1/sbin/../logs/spark-root-org.apache.spark.deploy.master.Master-1-hadoop0.out
localhost: ssh: Could not resolve hostname localhost: Temporary failure in name resolution
原因:ssh 不能登录localhost 使用 ssh localhost 也报同样的错误说明免密码登录不能登录自己
解决方法:
修改/etc/hosts文件增加以下内容,
#127.0.0.1 localhost localhost.localdomain
#localhost4 localhost4.localdomain4
#::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
之前由于看到好像没什么用就把原来的默认配置给注释了或者是给删除了
把注释去掉即可
如下:
127.0.0.1 localhost localhost.localdomain
localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
note:默认配置一般情况下不要随便修改