Skip to content

Conversation

abridgett
Copy link
Contributor

allow the user to override MAVEN_OPTS (2GB wasn't sufficient for me)

@srowen
Copy link
Member

srowen commented Dec 23, 2015

LGTM

@SparkQA
Copy link

SparkQA commented Dec 23, 2015

Test build #2252 has finished for PR 10448 at commit 2f90b4d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):\n * class JavaWordBlacklist\n * class JavaDroppedWordsCounter\n * case class AssertNotNull(\n

asfgit pushed a commit that referenced this pull request Dec 24, 2015
allow the user to override MAVEN_OPTS (2GB wasn't sufficient for me)

Author: Adrian Bridgett <[email protected]>

Closes #10448 from abridgett/feature/do_not_force_maven_opts.

(cherry picked from commit ead6abf)
Signed-off-by: Josh Rosen <[email protected]>
@JoshRosen
Copy link
Contributor

I've merged this into master and branch-1.6. Thanks!

@asfgit asfgit closed this in ead6abf Dec 24, 2015
cd "$SPARK_HOME"

export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m"
export MAVEN_OPTS="${MAVEN_OPTS:--Xmx2g -XX:MaxPermSize=512M -XX:ReservedCodeCacheSize=512m}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For posterity (since this initially confused me): This is the Bash syntax for parameter substitution with a default value.

Reference: http://www.tldp.org/LDP/abs/html/parameter-substitution.html

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. POSIX shell too FYI- so should work with pretty much anything: http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02

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.

5 participants