public static SparkConf createSystemMLSparkConf(){
  SparkConf conf=new SparkConf();
  conf.set("spark.driver.maxResultSize","0");
  if (FAIR_SCHEDULER_MODE) {
    conf.set("spark.scheduler.mode","FAIR");
  }
  if (!conf.contains("spark.locality.wait")) {
    conf.set("spark.locality.wait","5s");
  }
  return conf;
}

public static SparkConf createSystemMLSparkConf ( ) { SparkConf conf = new SparkConf ( ) ; conf . set ( "spark.driver.maxResultSize" , "0" ) ; if ( FAIR_SCHEDULER_MODE ) { conf . set ( "spark.scheduler.mode" , "FAIR" ) ; } if ( ! conf . contains ( "spark.locality.wait" ) ) { conf . set ( "spark.locality.wait" , "5s" ) ; } return conf ; }
sets up a systemml - preferred spark configuration based on the implicit default configuration ( as passed via configurations from outside ) .
