Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPARK-1576 (Allow JAVA_OPTS to be passed as a command line parameter to YARN client) #492

Closed
wants to merge 1 commit into from

Conversation

nishkamravi2
Copy link
Contributor

No description provided.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@tgravescs
Copy link
Contributor

see the comment on the jira. Also things should generally flow through the spark-submit script now.

@vanzin
Copy link
Contributor

vanzin commented Apr 30, 2014

I think this is (now) already available as "--driver-java-options" (works both for yarn-client and yarn-cluster modes).

@nishkamravi2
Copy link
Contributor Author

--driver-java-options would only work through the spark-submit script. If the developer invokes yarn.deploy.Client directly (as is common practice thusfar), they would simply pass java options (using -D) and the following code would allow spark options to be accepted:

for ((k, v) <- sys.props.filterKeys(_.startsWith("spark")))
{ JAVA_OPTS += "-D" + k + "=" + "\"" + v + "\"" }

This too was checked in by Patrick fairly recently (last Monday I think).

I would prefer creation of an explicit flag (--spark-java-options or --driver-java-options) for yarn.deploy.Client in order to be consistent with the rest of Spark UI, buthen Patrick has already checked in the code above and I guess he intends on keeping it.

@pwendell
Copy link
Contributor

pwendell commented May 1, 2014

@nishkamravi2 hey, the older yarn client is being deprecated so we probably won't add new features to it. That is, if users want to take advantage of new options they will need to switch over to spark-submit. Since it's basically a drop-in replacement, the switch should be straightforward.

Is what you are trying to do not supported by spark-submit? If so, mind elaborating a bit more (because setting java options for the driver and executors are both supported)?

@vanzin
Copy link
Contributor

vanzin commented May 1, 2014

--driver-java-options would only work through the spark-submit script.

Correct, and as Patrick mentions, it should be the way to submit spark jobs
going forward. I've been using it with Yarn client and cluster modes with
no issues.

Marcelo

@nishkamravi2
Copy link
Contributor Author

Spark-submit looks neat and it does make sense to encourage use of a single primary interface for Spark invocation. Whether or not there is value in cleaning up the secondary interfaces may be subject to debate. However, if we plan on deprecating (and potentially retiring) the secondary interfaces, then I can see your point-of-view.

pwendell added a commit to pwendell/spark that referenced this pull request May 12, 2014
fixed job name and usage information for the JavaSparkPi example
@tgravescs
Copy link
Contributor

@nishkamravi2 have you tried the spark-submit script and can we close this?

@nishkamravi2
Copy link
Contributor Author

@tgravescs Sorry, missed this one somehow. Yes, spark-submit is now fully tested. We could keep this one open for 0.92 potentially.

@tgravescs
Copy link
Contributor

can we close this now? We have a 1.x branch now with spark-submit and will have a 1.1 release relatively soon. If someone really needs this in the 0.9.x line they can reopen.

@nishkamravi2
Copy link
Contributor Author

Ok, closed.

andrewor14 pushed a commit to andrewor14/spark that referenced this pull request Jan 8, 2015
fixed job name and usage information for the JavaSparkPi example
(cherry picked from commit a1238bb)

Signed-off-by: Patrick Wendell <pwendell@gmail.com>
yifeih added a commit to yifeih/spark that referenced this pull request Feb 25, 2019
yifeih added a commit to yifeih/spark that referenced this pull request Feb 25, 2019
bzhaoopenstack pushed a commit to bzhaoopenstack/spark that referenced this pull request Sep 11, 2019
RolatZhang pushed a commit to RolatZhang/spark that referenced this pull request Aug 15, 2022
KE-35596 Update jackson & tomcat version for vulnerability issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants