The heartbeat interval is assigned to the spark.heartBeatInterval property. By default, this value is set to 100. To change this, run the following command in the spark shell:
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.r.heartBeatInterval=80