<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question How to process list of RDDs (List[RDD]) (foreach Alternative) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-process-list-of-RDDs-List-RDD-foreach-Alternative/m-p/103504#M66421</link>
    <description>&lt;P&gt;
	How to process list of RDDs, foreach is sequential is there an alternative?&lt;/P&gt;&lt;PRE&gt;val param = RDD[(id, testNo, catId, value)] 

val key = param.map(f =&amp;gt; (f.catId, f.testNo)).distinct.collect.toList.par

key.foreach( key =&amp;gt; { 
// kmeans processing 
// get standard deviation 
// computation 
// etc... etc.. 
})
&lt;/PRE&gt;</description>
    <pubDate>Tue, 14 Feb 2017 15:20:20 GMT</pubDate>
    <dc:creator>melvinmendoza</dc:creator>
    <dc:date>2017-02-14T15:20:20Z</dc:date>
    <item>
      <title>How to process list of RDDs (List[RDD]) (foreach Alternative)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-process-list-of-RDDs-List-RDD-foreach-Alternative/m-p/103504#M66421</link>
      <description>&lt;P&gt;
	How to process list of RDDs, foreach is sequential is there an alternative?&lt;/P&gt;&lt;PRE&gt;val param = RDD[(id, testNo, catId, value)] 

val key = param.map(f =&amp;gt; (f.catId, f.testNo)).distinct.collect.toList.par

key.foreach( key =&amp;gt; { 
// kmeans processing 
// get standard deviation 
// computation 
// etc... etc.. 
})
&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Feb 2017 15:20:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-process-list-of-RDDs-List-RDD-foreach-Alternative/m-p/103504#M66421</guid>
      <dc:creator>melvinmendoza</dc:creator>
      <dc:date>2017-02-14T15:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to process list of RDDs (List[RDD]) (foreach Alternative)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-process-list-of-RDDs-List-RDD-foreach-Alternative/m-p/103505#M66422</link>
      <description>&lt;P&gt;I use Futures and Await. Please see &lt;A href="https://stackoverflow.com/questions/38069239/parallelize-avoid-foreach-loop-in-spark/41137978#41137978"&gt;stackoverflow&lt;/A&gt; answer. &lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 15:08:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-process-list-of-RDDs-List-RDD-foreach-Alternative/m-p/103505#M66422</guid>
      <dc:creator>melvinmendoza</dc:creator>
      <dc:date>2017-09-28T15:08:13Z</dc:date>
    </item>
  </channel>
</rss>

