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-17964][SparkR] Enable SparkR with Mesos client mode and cluster mode #15700

Closed
wants to merge 2 commits into from

Conversation

susanxhuynh
Copy link
Contributor

@susanxhuynh susanxhuynh commented Oct 31, 2016

What changes were proposed in this pull request?

Enabled SparkR with Mesos client mode and cluster mode. Just a few changes were required to get this working on Mesos: (1) removed the SparkR on Mesos error checks and (2) do not require "--class" to be specified for R apps. The logic to check spark.mesos.executor.home was already in there.

@sun-rui

How was this patch tested?

  1. SparkSubmitSuite
  2. On local mesos cluster (on laptop): ran SparkR shell, spark-submit client mode, and spark-submit cluster mode, with the "examples/src/main/R/dataframe.R" example application.
  3. On multi-node mesos cluster: ran SparkR shell, spark-submit client mode, and spark-submit cluster mode, with the "examples/src/main/R/dataframe.R" example application. I tested with the following --conf values set: spark.mesos.executor.docker.image and spark.mesos.executor.home

This contribution is my original work and I license the work to the project under the project's open source license.

@@ -84,7 +84,7 @@ private[spark] object RUtils {
}
} else {
// Otherwise, assume the package is local
// TODO: support this for Mesos
// For Mesos, the path is also under SPARK_HOME.
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment seems unnecessary now. Maybe remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed this comment.

@mgummelt
Copy link
Contributor

mgummelt commented Nov 1, 2016

ok to test

@mgummelt
Copy link
Contributor

mgummelt commented Nov 1, 2016

@srowen LGTM

@felixcheung
Copy link
Member

This might not handle packages the best it can on mesos but that could be a follow-up
@sun-rui

@susanxhuynh
Copy link
Contributor Author

@felixcheung There are separate issues for packages that are not included in this PR:

Also, I could not find any documentation about packages. It would be helpful to fill in some information about requirements or testing instructions in the links above.

@SparkQA
Copy link

SparkQA commented Nov 3, 2016

Test build #3407 has finished for PR 15700 at commit 11b6568.

  • This patch fails Spark unit tests.
  • This patch does not merge cleanly.
  • This patch adds no public classes.

@mgummelt
Copy link
Contributor

mgummelt commented Nov 4, 2016

retest this please

@SparkQA
Copy link

SparkQA commented Nov 4, 2016

Test build #3413 has finished for PR 15700 at commit 11b6568.

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

@mgummelt
Copy link
Contributor

mgummelt commented Nov 4, 2016

retest this please

@srowen
Copy link
Member

srowen commented Nov 5, 2016

Jenkins add to whitelist

@srowen
Copy link
Member

srowen commented Nov 5, 2016

Jenkins retest this please

@SparkQA
Copy link

SparkQA commented Nov 5, 2016

Test build #68200 has finished for PR 15700 at commit 11b6568.

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

@SparkQA
Copy link

SparkQA commented Nov 5, 2016

Test build #68202 has finished for PR 15700 at commit 11b6568.

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

@srowen
Copy link
Member

srowen commented Nov 5, 2016

Merged to master/2.1

asfgit pushed a commit that referenced this pull request Nov 5, 2016
…r mode

## What changes were proposed in this pull request?

Enabled SparkR with Mesos client mode and cluster mode. Just a few changes were required to get this working on Mesos: (1) removed the SparkR on Mesos error checks and (2) do not require "--class" to be specified for R apps. The logic to check spark.mesos.executor.home was already in there.

sun-rui

## How was this patch tested?

1. SparkSubmitSuite
2. On local mesos cluster (on laptop): ran SparkR shell, spark-submit client mode, and spark-submit cluster mode, with the "examples/src/main/R/dataframe.R" example application.
3. On multi-node mesos cluster: ran SparkR shell, spark-submit client mode, and spark-submit cluster mode, with the "examples/src/main/R/dataframe.R" example application. I tested with the following --conf values set: spark.mesos.executor.docker.image and spark.mesos.executor.home

This contribution is my original work and I license the work to the project under the project's open source license.

Author: Susan X. Huynh <[email protected]>

Closes #15700 from susanxhuynh/susan-r-branch.

(cherry picked from commit 9a87c31)
Signed-off-by: Sean Owen <[email protected]>
@asfgit asfgit closed this in 9a87c31 Nov 5, 2016
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…r mode

## What changes were proposed in this pull request?

Enabled SparkR with Mesos client mode and cluster mode. Just a few changes were required to get this working on Mesos: (1) removed the SparkR on Mesos error checks and (2) do not require "--class" to be specified for R apps. The logic to check spark.mesos.executor.home was already in there.

sun-rui

## How was this patch tested?

1. SparkSubmitSuite
2. On local mesos cluster (on laptop): ran SparkR shell, spark-submit client mode, and spark-submit cluster mode, with the "examples/src/main/R/dataframe.R" example application.
3. On multi-node mesos cluster: ran SparkR shell, spark-submit client mode, and spark-submit cluster mode, with the "examples/src/main/R/dataframe.R" example application. I tested with the following --conf values set: spark.mesos.executor.docker.image and spark.mesos.executor.home

This contribution is my original work and I license the work to the project under the project's open source license.

Author: Susan X. Huynh <[email protected]>

Closes apache#15700 from susanxhuynh/susan-r-branch.
@susanxhuynh susanxhuynh deleted the susan-r-branch branch July 10, 2017 22:07
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