I have managed to run the wordcount example with your help (thank you guys !)

Now my question is the following: How do I make the job to run only one 
iteration ?
I am currently running the wordcount example with a local file that does not 
change, so after I have my results in the console (after the first iteration 
that is)  I would like the program to stop and exit automatically (and not by 
using Ctrl+C).

I believe this can be done by triggering the awaitTermination() function, but 
how can I do that ?

Thanks

Reply via email to