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-1350. Always use JAVA_HOME to run executor container JVMs. #313

Closed
wants to merge 1 commit into from

Conversation

sryza
Copy link
Contributor

@sryza sryza commented Apr 3, 2014

No description provided.

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/13726/

@tgravescs
Copy link
Contributor

Change looks good to me. Will wait to see if anyone else has comments.

@aarondav
Copy link
Contributor

aarondav commented Apr 3, 2014

The running-on-yarn documentation has an example of using SPARK_YARN_USER_ENV="JAVA_HOME=/jdk64,FOO=bar"

I'm guessing this is still valid because it somehow magically gets into Environment.JAVA_HOME, but I just want to make sure the docs are still up-to-date.

@sryza
Copy link
Contributor Author

sryza commented Apr 3, 2014

That's still valid. Environment.JAVA_HOME is just the string literal "$JAVA_HOME". It gets placed inside the container launch script, so an overridden value for JAVA_HOME specified in SPARK_YARN_USER_ENV will still take effect.

@aarondav
Copy link
Contributor

aarondav commented Apr 3, 2014

Great, well, no further comments here. Feel free to merge, Tom.

@tgravescs
Copy link
Contributor

I committed this. Thanks Sandy!

@asfgit asfgit closed this in 7f32fd4 Apr 4, 2014
andrewor14 pushed a commit to andrewor14/spark that referenced this pull request Apr 7, 2014
Refactored the streaming project to separate external libraries like Twitter, Kafka, Flume, etc.

At a high level, these are the following changes.

1. All the external code was put in `SPARK_HOME/external/` as separate SBT projects and Maven modules. Their artifact names are `spark-streaming-twitter`, `spark-streaming-kafka`, etc. Both SparkBuild.scala and pom.xml files have been updated. References to external libraries and repositories have been removed from the settings of root and streaming projects/modules.

2. To avail the external functionality (say, creating a Twitter stream), the developer has to `import org.apache.spark.streaming.twitter._` . For Scala API, the developer has to call `TwitterUtils.createStream(streamingContext, ...)`. For the Java API, the developer has to call `TwitterUtils.createStream(javaStreamingContext, ...)`.

3.  Each external project has its own scala and java unit tests. Note the unit tests of each external library use classes of the streaming unit tests (`TestSuiteBase`, `LocalJavaStreamingContext`, etc.). To enable this code sharing among test classes, `dependsOn(streaming % "compile->compile,test->test")` was used in the SparkBuild.scala . In the streaming/pom.xml, an additional `maven-jar-plugin` was necessary to capture this dependency (see comment inside the pom.xml for more information).

4. Jars of the external projects have been added to examples project but not to the assembly project.

5. In some files, imports have been rearrange to conform to the Spark coding guidelines.
pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
Author: Sandy Ryza <[email protected]>

Closes apache#313 from sryza/sandy-spark-1350 and squashes the following commits:

bb6d187 [Sandy Ryza] SPARK-1350. Always use JAVA_HOME to run executor container JVMs.
gatesn pushed a commit to gatesn/spark that referenced this pull request Mar 14, 2018
bzhaoopenstack pushed a commit to bzhaoopenstack/spark that referenced this pull request Sep 11, 2019
arjunshroff pushed a commit to arjunshroff/spark that referenced this pull request Nov 24, 2020
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