You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by FreePeter <we...@gmail.com> on 2015/03/29 22:21:42 UTC

Running Spark in Local Mode

Hi,

I am trying to use Spark for my own applications, and I am currently
profiling the performance with local mode, and I have a couple of questions:

1. When I set spark.master local[N], it means the will use up to N worker
*threads* on the single machine. Is this equivalent to say there are N
worker *nodes*  as described in
http://spark.apache.org/docs/latest/cluster-overview.html
(So each worker node/thread are viewed separately and can have its own
executor for each application)

2. Is there anyway to set up the max memory used by each worker thread/node?
I only find we can set the memory for each executor? (spark.executor.mem)

Thank you!





--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Running-Spark-in-Local-Mode-tp22279.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


Re: Running Spark in Local Mode

Posted by mrm <ma...@skimlinks.com>.
Hi, 

Did you resolve this? I have the same questions.



--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Running-Spark-in-Local-Mode-tp22279p23278.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


Re: Running Spark in Local Mode

Posted by Saisai Shao <sa...@gmail.com>.
Hi,

I think for local mode, the number N (N number of thread) basically equals
to N number of available cores in ONE executor(worker), not N workers. You
could image local[N] as have one worker with N cores. I'm not sure you
could set the memory usage for each thread, for Spark the memory is shared
in one executor.

Thanks
Jerry


2015-03-30 4:21 GMT+08:00 FreePeter <we...@gmail.com>:

> Hi,
>
> I am trying to use Spark for my own applications, and I am currently
> profiling the performance with local mode, and I have a couple of
> questions:
>
> 1. When I set spark.master local[N], it means the will use up to N worker
> *threads* on the single machine. Is this equivalent to say there are N
> worker *nodes*  as described in
> http://spark.apache.org/docs/latest/cluster-overview.html
> (So each worker node/thread are viewed separately and can have its own
> executor for each application)
>
> 2. Is there anyway to set up the max memory used by each worker
> thread/node?
> I only find we can set the memory for each executor? (spark.executor.mem)
>
> Thank you!
>
>
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/Running-Spark-in-Local-Mode-tp22279.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
>
>