Commit 6dd5943
Marcelo Vanzin
Fix propagation of config options to driver / executor.
ClientBase disagreed with itself about how to propagate config
options. Some places used the SparkConf object, others relied
on system properties. This lead to certain properties not being
propagated, mainly in cluster mode.
So standardize on using SparkConf for that. To maintain compatibility
with SPARK_JAVA_OPTS, remove the hack in ClientBase and just call
SparkConf.validateSettings(), which does the right thing and correctly
warns the user to stop using the env variable in the future.1 parent b2e377f commit 6dd5943
File tree
3 files changed
+5
-8
lines changed- yarn
- alpha/src/main/scala/org/apache/spark/deploy/yarn
- common/src/main/scala/org/apache/spark/deploy/yarn
- stable/src/main/scala/org/apache/spark/deploy/yarn
3 files changed
+5
-8
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| |||
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | 354 | | |
361 | 355 | | |
362 | 356 | | |
363 | 357 | | |
364 | 358 | | |
365 | 359 | | |
366 | 360 | | |
367 | | - | |
368 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
369 | 364 | | |
370 | 365 | | |
371 | 366 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
| |||
0 commit comments