Skip to content

Conversation

@vanzin
Copy link
Contributor

@vanzin vanzin commented May 15, 2014

When building the assembly with the maven "hadoop-provided"
profile, the executors were failing to come up because Hadoop classes
were not found in the classpath anymore; so add them explicitly to
the classpath using spark.executor.extraClassPath. This is only
needed for the local-cluster mode, but doesn't affect other tests,
so it's added for all of them to keep the code simpler.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@rxin
Copy link
Contributor

rxin commented May 15, 2014

Jenkins, test this please.

@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/15015/

@vanzin
Copy link
Contributor Author

vanzin commented May 29, 2014

Ping.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure I understand this change. First, we already pass in {{CORES}}. Second, the CoarseGrainedExecutorBackend seems to take in the arguments as listed here:
https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/executor/CoarseGrainedExecutorBackend.scala#L132

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmmm, let me double check that. I'm pretty sure my tests were failing with CoarseGrainedExecutorBackend complaining about a bad command line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Retried without my changes and a clean build and issue seems to be gone for met. :-/ I'll revert this part.

@vanzin vanzin changed the title Fix two issues in ReplSuite. Fix issue in ReplSuite with hadoop-provided profile. Jun 2, 2014
@pwendell
Copy link
Contributor

pwendell commented Jun 4, 2014

Jenkins, retest this please. LGTM pending tests.

@AmplabJenkins
Copy link

Build triggered.

@AmplabJenkins
Copy link

Build started.

@AmplabJenkins
Copy link

Build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15433/

@pwendell
Copy link
Contributor

pwendell commented Jun 4, 2014

@vanzin this isn't merging cleanly - any chance you could bring it up to date?

When building the assembly with the maven "hadoop-provided"
profile, the executors were failing to come up because Hadoop classes
were not found in the classpath anymore; so add them explicitly to
the classpath using spark.executor.extraClassPath. This is only
needed for the local-cluster mode, but doesn't affect other tests,
so it's added for all of them to keep the code simpler.
@pwendell
Copy link
Contributor

pwendell commented Jun 4, 2014

Jenkins, retest this please.

@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/15455/

@pwendell
Copy link
Contributor

pwendell commented Jun 5, 2014

Thanks, looks good. I'm merging this.

@pwendell
Copy link
Contributor

pwendell commented Jun 5, 2014

Merged into master.

@asfgit asfgit closed this in b77c19b Jun 5, 2014
@vanzin vanzin deleted the repl-test-fix branch June 6, 2014 00:11
pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
When building the assembly with the maven "hadoop-provided"
profile, the executors were failing to come up because Hadoop classes
were not found in the classpath anymore; so add them explicitly to
the classpath using spark.executor.extraClassPath. This is only
needed for the local-cluster mode, but doesn't affect other tests,
so it's added for all of them to keep the code simpler.

Author: Marcelo Vanzin <[email protected]>

Closes apache#781 from vanzin/repl-test-fix and squashes the following commits:

4f0a3b0 [Marcelo Vanzin] Fix issue in ReplSuite with hadoop-provided profile.
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
When building the assembly with the maven "hadoop-provided"
profile, the executors were failing to come up because Hadoop classes
were not found in the classpath anymore; so add them explicitly to
the classpath using spark.executor.extraClassPath. This is only
needed for the local-cluster mode, but doesn't affect other tests,
so it's added for all of them to keep the code simpler.

Author: Marcelo Vanzin <[email protected]>

Closes apache#781 from vanzin/repl-test-fix and squashes the following commits:

4f0a3b0 [Marcelo Vanzin] Fix issue in ReplSuite with hadoop-provided profile.
turboFei pushed a commit to turboFei/spark that referenced this pull request Nov 6, 2025
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