You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by shijiaxin <sh...@gmail.com> on 2014/08/01 06:40:39 UTC
Re: configuration needed to run twitter(25GB) dataset
Is it possible to reduce the number of edge partitions and exploit
parallelism fully at the same time?
For example, one partition per node, and the threads in the same node share
the same partition.
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/configuration-needed-to-run-twitter-25GB-dataset-tp11044p11126.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
Re: configuration needed to run twitter(25GB) dataset
Posted by Ankur Dave <an...@gmail.com>.
At 2014-08-01 02:12:08 -0700, shijiaxin <sh...@gmail.com> wrote:
> When I use fewer partitions, (like 6)
> It seems that all the task will be assigned to the same machine, because the
> machine has more than 6 cores.But this will run out of memory.
> How to set fewer partitions number and use all the machine at the same time?
Yes, I've encountered this problem myself. I haven't tried this, but one idea is to reduce the number of cores that Spark is allowed to use on each worker by passing --cores to spark-submit or setting SPARK_WORKER_CORES.
Ankur
Re: configuration needed to run twitter(25GB) dataset
Posted by shijiaxin <sh...@gmail.com>.
When I use fewer partitions, (like 6)
It seems that all the task will be assigned to the same machine, because the
machine has more than 6 cores.But this will run out of memory.
How to set fewer partitions number and use all the machine at the same time?
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/configuration-needed-to-run-twitter-25GB-dataset-tp11044p11150.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
Re: configuration needed to run twitter(25GB) dataset
Posted by Ankur Dave <an...@gmail.com>.
At 2014-07-31 21:40:39 -0700, shijiaxin <sh...@gmail.com> wrote:
> Is it possible to reduce the number of edge partitions and exploit
> parallelism fully at the same time?
> For example, one partition per node, and the threads in the same node share
> the same partition.
It's theoretically possible to parallelize operations within a partition, but I wouldn't worry about exploiting all available parallelism. PageRank is typically communication-bound rather than computation-bound, so it can be a net gain to reduce the amount of communication by using fewer partitions even if that means sacrificing some parallelism.
Ankur