Yes, that's exactly what I want to do. The environment variables are there from before we had system properties for memory use and SparkContext.addJar.

This doc here is supposed to be the doc on how to run a real production job.