spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yi Zhang <>
Subject Why association with remote system has failed when set master in Spark programmatically
Date Fri, 15 May 2015 08:06:20 GMT
Hi all,
I run to start standalone Spark with spark:// Then, I use
this command as below, and it's OK:./bin/spark-shell --master spark://
The console print correct message, and Spark context had been initialised correctly. 
However, when I run app in IntelliJ Idea using spark conf like this:val sparkConf = new SparkConf().setAppName("FromMySql") 
    .setMaster("spark://")      .set("spark.akka.heartbeat.interval",
"100")    val sc = new SparkContext(sparkConf)    val sqlContext = new SQLContext(sc) 

It can't talk to spark and print these error messages:ReliableDeliverySupervisor: Association
with remote system [akka.tcp://sparkMaster@] has failed, address is now
gated for [5000] ms. Reason is: [Disassociated].

If I changed the conf to local[*], it's ok. After I packaged my app then use spark-submit
command, the communication between local and remote actor is OK.  It's very strange!  
What happen?
View raw message