nit: Also, I personally prefer
```
sparkConf.getAll
  .filter { case (k, v) => ... }
  .foreach { case (k, v) => ... }
```