May be this is expected, but why spark foreach println is not printing any thing in cluster mode.?
Below is the small snippet.
when i tried sc.foreach(println), it does nothing. however, count is showing proper count. What have i done mistake..? The same works well in local mode. I would like to know the reason and workaround.