I\'m trying to get the path to spark.worker.dir for the current sparkcontext.
spark.worker.dir
sparkcontext
If I explicitly set it as a config param, I can read
config param
For Spark 2+ you can also use when using scala
spark.conf.getAll; //spark as spark session