Skip to content

Commit a56b125

Browse files
committed
Responses to Tom's review
1 parent d50c388 commit a56b125

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

.rat-excludes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RELEASE
1111
control
1212
docs
1313
fairscheduler.xml.template
14+
spark-defaults.properties.template
1415
log4j.properties
1516
log4j.properties.template
1617
metrics.properties.template
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Default system properties included when running spark-submit.
2+
# This is useful for setting default environmental settings.
3+
4+
# Example:
5+
# spark.master spark://master:7077
6+
# spark.eventLog.enabled true
7+
# spark.eventLog.dir hdfs://namenode:8021/directory

conf/spark-env.sh.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
# - MESOS_NATIVE_LIBRARY, to point to your libmesos.so if you use Mesos
1818

1919
# Options read in YARN client mode
20-
# - SPARK_YARN_APP_JAR, Path to your application’s JAR file (required)
2120
# - SPARK_EXECUTOR_INSTANCES, Number of workers to start (Default: 2)
2221
# - SPARK_EXECUTOR_CORES, Number of cores for the workers (Default: 1).
2322
# - SPARK_EXECUTOR_MEMORY, Memory per Worker (e.g. 1000M, 2G) (Default: 1G)

core/src/main/scala/org/apache/spark/SparkConf.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class SparkConf(loadDefaults: Boolean) extends Cloneable with Logging {
244244
|This has undefined behavior when running on a cluster and is deprecated in Spark 1.0+.
245245
|
246246
|Please instead use:
247-
| - ./spark-submit with conf/spark-defaults.conf to set properties for an application
247+
| - ./spark-submit with conf/spark-defaults.properties to set defaults for an application
248248
| - ./spark-submit with --driver-java-options to set -X options for a driver
249249
| - spark.executor.extraJavaOptions to set -X options for executors
250250
| - SPARK_DAEMON_OPTS to set java options for standalone daemons (i.e. master, worker)

core/src/main/scala/org/apache/spark/deploy/SparkSubmitArguments.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private[spark] class SparkSubmitArguments(args: Array[String]) {
145145
driverExtraClassPath = value
146146
parseOpts(tail)
147147

148-
case ("--driver-java-opts") :: value :: tail =>
148+
case ("--driver-java-options") :: value :: tail =>
149149
driverExtraJavaOptions = value
150150
parseOpts(tail)
151151

@@ -217,8 +217,11 @@ private[spark] class SparkSubmitArguments(args: Array[String]) {
217217
| --jars JARS A comma-separated list of local jars to include on the
218218
| driver classpath and that SparkContext.addJar will work
219219
| with. Doesn't work on standalone with 'cluster' deploy mode.
220+
| --properties-file FILE Path to a file from which to load extra properties. If not
221+
| specified, this will look for conf/spark-defaults.properties.
222+
|
220223
| --driver-memory MEM Memory for driver (e.g. 1000M, 2G) (Default: 512M).
221-
| --driver-java-opts Extra Java options to pass to the driver
224+
| --driver-java-options Extra Java options to pass to the driver
222225
| --driver-library-path Extra library path entries to pass to the driver
223226
| --driver-class-path Extra class path entries to pass to the driver
224227
|

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ Apart from these, the following properties are also available, and may be useful
659659
A string of extra JVM options to pass to executors. For instance, GC settings or other
660660
logging. Note that it is illegal to set Spark properties or heap size settings with this
661661
option. Spark properties should be set using a SparkConf object or the
662-
spark-defaults.conf file used with the spark-submit script. Heap size settings can be set
662+
spark-defaults.properties file used with the spark-submit script. Heap size settings can be set
663663
with spark.executor.memory.
664664
</td>
665665
</tr>

0 commit comments

Comments
 (0)