I've suggest to parameter LogLevel (with ENUM {ERROR, WARN, INFO} - check correct names in Scala) Set the default value is ERROR Under the hood it could be realised like that: spark.sparkContext.setLogLevel("ERROR")