To set the number of spark cores used you must set two parameters in the actual
spark-submit script. You must set num-executors (the number of nodes to have)
and executor-cores (the number of cores per machinel) . Please see the Spark
configuration and tuning pages for more details.
-Original Message-
From: ll [duy.huynh@gmail.com<mailto:duy.huynh@gmail.com>]
Sent: Saturday, November 08, 2014 12:05 AM Eastern Standard Time
To: u...@spark.incubator.apache.org
Subject: Re: Fwd: Why is Spark not using all cores on a single machine?
hi. i did use local[8] as below, but it still ran on only 1 core.
val sc = new SparkContext(new
SparkConf().setMaster("local[8]").setAppName("abc"))
any advice is much appreciated.
--
View this message in context:
http://apache-spark-user-list.1001560.n3.nabble.com/Fwd-Why-is-Spark-not-using-all-cores-on-a-single-machine-tp1638p18397.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org
The information contained in this e-mail is confidential and/or proprietary to
Capital One and/or its affiliates. The information transmitted herewith is
intended only for use by the individual or entity to which it is addressed. If
the reader of this message is not the intended recipient, you are hereby
notified that any review, retransmission, dissemination, distribution, copying
or other use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error, please
contact the sender and delete the material from your computer.