Printing values in map function on the console in yarn deployment mode
<p>I developed a streaming application, the application have a map function such as bellow:</p>

<pre><code>probeFileLines.map(x =&gt; { println(x._2.toString().take(1)); x._2.toString()})
</code></pre>

<p>I need to print x._.2 on my console in the driver program...so I used take method but it doesn't show anything on the console..I am running my application on yarn -client mode..there are some <a href="https://stackoverflow.com/a/23173811/2784721">threads</a> addressing how to do this for a RDD but my problem is something different..</p>