The API docs for ssc.awaitTermination say simply "Wait for the execution to stop. Any exceptions that occurs during the execution will be thrown in this thread."
Can someone help me understand what this means? What causes execution to stop? Why do we need to wait for that to happen? I tried removing it from my simple NetworkWordCount example (running locally, not on a cluster) and nothing changed. In both cases, I end my program by hitting Ctrl-C. Thanks for any insight you can give me. Diana