O'Reilly logo
  • Jonathan Paul thinks this is interesting:

To check if the configuration change took effect, let's invoke the getAll method again. The following output should reflect that change. It simply illustrates how SparkContext can be used to modify our cluster environment:


Cover of Modern Scala Projects


This doesn't actually work! Even the sample output shows it didn't work. I think this is because you can't modify the spark-shell's context once the shell is running