开发者社区> 问答> 正文

./start-all.sh启动spark集群报错?报错

[root@localhost sbin]# ./start-all.sh 
starting org.apache.spark.deploy.master.Master, logging to /usr/local/spark/logs/spark-root-org.apache.spark.deploy.master.Master-1-localhost.localdomain.out
failed to launch org.apache.spark.deploy.master.Master:
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	... 6 more
full log in /usr/local/spark/logs/spark-root-org.apache.spark.deploy.master.Master-1-localhost.localdomain.out
master: ssh: Could not resolve hostname master: Name or service not known
slaver01: ssh: Could not resolve hostname slaver01: Name or service not known

求助大神,到底是不是java和ssh的问题啊?我分别单独检查是没问题的!

附上软件版本:

spark 1.16.1
hadoop2.6.0

java-1.7.0-openjdk

展开
收起
爱吃鱼的程序员 2020-06-07 16:55:04 846 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <pre><code>Could not resolve hostname master: Name or service not known</code></pre> 
    

    这里提示的很清楚了,你的hosts文件有没有修改? 

                        <pre><code>127.0.0.1       localhost
    

    192.168.2.154 master 192.168.2.55 slave01

    /etc/hosts检查是修改了

                        <p>你住主机名应该修改为与host中配置的相同</p>
    
                    
    
                        <p>检查过这个list ,配置相同的额</p>
    
                    
    
                        <p>hostname必须是master</p>
    

    hosts文件必须能找到master

    集群中其他任意节点必须知道master

    2020-06-07 16:55:15
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Hybrid Cloud and Apache Spark 立即下载
Scalable Deep Learning on Spark 立即下载
Comparison of Spark SQL with Hive 立即下载