And add unit test. Author: Marcelo Vanzin <vanzin@cloudera.com> Closes #5057 from vanzin/SPARK-6372 and squashes the following commits: b33728b [Marcelo Vanzin] [SPARK-6372] [core] Propagate --conf to child processes.