You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by efa <je...@gmail.com> on 2016/01/26 14:12:19 UTC

Re: cartesian in the loop, runtime grows

Problem solved:
for i in range(1,6): 
    L=L.cartesian(D) 
    L.unpersist() 
    L=L.reduceByKey(min).coalesce(6).map(lambda (l,n):l).cache() 
L.collect() 
Number of partitions should be constant



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/cartesian-in-the-loop-runtime-grows-tp25303p26069.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org