Apache Spark error : Could not connect to akka.tcp://sparkMaster@

后端 未结 3 1549
星月不相逢
星月不相逢 2020-12-11 03:18

This is our first steps using big data stuff like apache spark and hadoop.

We have a installed Cloudera CDH 5.3. From the cloudera manager we choose to install spark

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 04:19

    Check your Spark master logs, you should see something like:

    15/02/11 13:37:14 INFO Remoting: Remoting started; listening on addresses :[akka.tcp://sparkMaster@mymaster:7077]
    15/02/11 13:37:14 INFO Remoting: Remoting now listens on addresses: [akka.tcp://sparkMaster@mymaster:7077]
    15/02/11 13:37:14 INFO Master: Starting Spark master at spark://mymaster:7077
    

    Then when your connecting to the master, be sure to use exactly the same hostname as found in the logs above (do not use the IP address):

    .setMaster("spark://mymaster:7077"));
    

    Spark standalone is a bit picky with this hostname/IP stuff.

提交回复
热议问题