which version of spark are you running? have you tried sc.stop as as last line of your program?
-- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Spark-job-finishes-then-command-shell-is-blocked-hangs-tp11095p11097.html Sent from the Apache Spark User List mailing list archive at Nabble.com.