Skip to content

Conversation

@andrewor14
Copy link
Contributor

If we set both spark.driver.extraClassPath and --driver-class-path, then the latter correctly overrides the former. However, the value of the system property spark.driver.extraClassPath still uses the former, which is actually not added to the class path. This may cause some confusion...

Of course, this also affects other options (i.e. java options, library path, memory...).

@andrewor14 andrewor14 changed the title [SPARK-3243] Don't use stale spark-driver.* system properties [SPARK-3243] Don't use stale spark-driver.* system properties Aug 27, 2014
@SparkQA
Copy link

SparkQA commented Aug 27, 2014

QA tests have started for PR 2154 at commit 0140836.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Aug 27, 2014

QA tests have finished for PR 2154 at commit 0140836.

  • This patch fails unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • "$FWDIR"/bin/spark-submit --class $CLASS "$
    • class ExternalSorter(object):
    • "$FWDIR"/bin/spark-submit --class $CLASS "$
    • protected class AttributeEquals(val a: Attribute)

@andrewor14
Copy link
Contributor Author

test this please

@SparkQA
Copy link

SparkQA commented Aug 27, 2014

QA tests have started for PR 2154 at commit 17ec6fc.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Aug 27, 2014

QA tests have finished for PR 2154 at commit 17ec6fc.

  • This patch passes unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin
Copy link
Contributor

vanzin commented Aug 27, 2014

LGTM. Was there any side-effect to this, since it only affects client mode? (I'm guessing maybe reporting in the UI, but that's about it?)

@andrewor14
Copy link
Contributor Author

Reporting in the UI, and if the user looks up sys.props("spark.driver.classpath") to check her class path she will get a value that is not actually used.

@pwendell
Copy link
Contributor

Thanks - pulling this in.

asfgit pushed a commit that referenced this pull request Aug 27, 2014
If we set both `spark.driver.extraClassPath` and `--driver-class-path`, then the latter correctly overrides the former. However, the value of the system property `spark.driver.extraClassPath` still uses the former, which is actually not added to the class path. This may cause some confusion...

Of course, this also affects other options (i.e. java options, library path, memory...).

Author: Andrew Or <andrewor14@gmail.com>

Closes #2154 from andrewor14/driver-submit-configs-fix and squashes the following commits:

17ec6fc [Andrew Or] Fix tests
0140836 [Andrew Or] Don't forget spark.driver.memory
e39d20f [Andrew Or] Also set spark.driver.extra* configs in client mode
(cherry picked from commit 63a053a)

Signed-off-by: Patrick Wendell <pwendell@gmail.com>
@asfgit asfgit closed this in 63a053a Aug 27, 2014
@andrewor14 andrewor14 deleted the driver-submit-configs-fix branch August 27, 2014 22:00
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
If we set both `spark.driver.extraClassPath` and `--driver-class-path`, then the latter correctly overrides the former. However, the value of the system property `spark.driver.extraClassPath` still uses the former, which is actually not added to the class path. This may cause some confusion...

Of course, this also affects other options (i.e. java options, library path, memory...).

Author: Andrew Or <andrewor14@gmail.com>

Closes apache#2154 from andrewor14/driver-submit-configs-fix and squashes the following commits:

17ec6fc [Andrew Or] Fix tests
0140836 [Andrew Or] Don't forget spark.driver.memory
e39d20f [Andrew Or] Also set spark.driver.extra* configs in client mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants