@@ -31,6 +31,9 @@ private[spark] class SparkSubmitArguments(args: Array[String]) {
3131 var totalExecutorCores : String = null
3232 var propertiesFile : String = null
3333 var driverMemory : String = null
34+ var driverExtraClassPath : String = null
35+ var driverExtraLibraryPath : String = null
36+ var driverExtraJavaOptions : String = null
3437 var driverCores : String = null
3538 var supervise : Boolean = false
3639 var queue : String = null
@@ -63,25 +66,28 @@ private[spark] class SparkSubmitArguments(args: Array[String]) {
6366
6467 override def toString = {
6568 s """ Parsed arguments:
66- | master $master
67- | deployMode $deployMode
68- | executorMemory $executorMemory
69- | executorCores $executorCores
70- | totalExecutorCores $totalExecutorCores
71- | propertiesFile $propertiesFile
72- | driverMemory $driverMemory
73- | driverCores $driverCores
74- | supervise $supervise
75- | queue $queue
76- | numExecutors $numExecutors
77- | files $files
78- | archives $archives
79- | mainClass $mainClass
80- | primaryResource $primaryResource
81- | name $name
82- | childArgs [ ${childArgs.mkString(" " )}]
83- | jars $jars
84- | verbose $verbose
69+ | master $master
70+ | deployMode $deployMode
71+ | executorMemory $executorMemory
72+ | executorCores $executorCores
73+ | totalExecutorCores $totalExecutorCores
74+ | propertiesFile $propertiesFile
75+ | driverMemory $driverMemory
76+ | driverCores $driverCores
77+ | driverExtraClassPath $driverExtraClassPath
78+ | driverExtraLibraryPath $driverExtraLibraryPath
79+ | driverExtraJavaOptions $driverExtraJavaOptions
80+ | supervise $supervise
81+ | queue $queue
82+ | numExecutors $numExecutors
83+ | files $files
84+ | archives $archives
85+ | mainClass $mainClass
86+ | primaryResource $primaryResource
87+ | name $name
88+ | childArgs [ ${childArgs.mkString(" " )}]
89+ | jars $jars
90+ | verbose $verbose
8591 """ .stripMargin
8692 }
8793
@@ -134,6 +140,18 @@ private[spark] class SparkSubmitArguments(args: Array[String]) {
134140 driverCores = value
135141 parseOpts(tail)
136142
143+ case (" --driver-class-path" ) :: value :: tail =>
144+ driverExtraClassPath = value
145+ parseOpts(tail)
146+
147+ case (" --driver-java-opts" ) :: value :: tail =>
148+ driverExtraJavaOptions = value
149+ parseOpts(tail)
150+
151+ case (" --driver-library-path" ) :: value :: tail =>
152+ driverExtraLibraryPath = value
153+ parseOpts(tail)
154+
137155 case (" --properties-file" ) :: value :: tail =>
138156 propertiesFile = value
139157 parseOpts(tail)
@@ -194,11 +212,15 @@ private[spark] class SparkSubmitArguments(args: Array[String]) {
194212 | --class CLASS_NAME Name of your app's main class (required for Java apps).
195213 | --arg ARG Argument to be passed to your application's main class. This
196214 | option can be specified multiple times for multiple args.
197- | --driver-memory MEM Memory for driver (e.g. 1000M, 2G) (Default: 512M).
198215 | --name NAME The name of your application (Default: 'Spark').
199216 | --jars JARS A comma-separated list of local jars to include on the
200217 | driver classpath and that SparkContext.addJar will work
201218 | with. Doesn't work on standalone with 'cluster' deploy mode.
219+ | --driver-memory MEM Memory for driver (e.g. 1000M, 2G) (Default: 512M).
220+ | --driver-java-opts Extra Java options to pass to the driver
221+ | --driver-library-path Extra library path entries to pass to the driver
222+ | --driver-class-path Extra class path entries to pass to the driver
223+ |
202224 |
203225 | Spark standalone with cluster deploy mode only:
204226 | --driver-cores NUM Cores for driver (Default: 1).
0 commit comments