Skip to content

SPARK-5087. [YARN] Merge yarn.Client and yarn.ClientBase #3896

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

Closed
wants to merge 2 commits into from

Conversation

sryza
Copy link
Contributor

@sryza sryza commented Jan 5, 2015

No description provided.

@sryza
Copy link
Contributor Author

sryza commented Jan 5, 2015

@andrewor14 @tgravescs

@SparkQA
Copy link

SparkQA commented Jan 5, 2015

Test build #25048 has started for PR 3896 at commit 930df8a.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 5, 2015

Test build #25048 has finished for PR 3896 at commit 930df8a.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25048/
Test PASSed.

extends ClientBase with Logging {
extends Logging {

import Client._
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this import for?

Copy link
Contributor

Choose a reason for hiding this comment

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

for helper methods defined in object Client I believe

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup. We used to import ClientBase._

@andrewor14
Copy link
Contributor

@sryza looks pretty straightforward to me. I notice there are a couple methods that aren't fully private only because they're exposed for testing. If possible, could we make these private[yarn] at the least? Also, have you had a chance to test this on a YARN cluster?

@sryza
Copy link
Contributor Author

sryza commented Jan 7, 2015

Thanks for taking a look Andrew and Tom. I tested it with both yarn-client and yarn-cluster mode and things look fine. I originally tried making getApplicationReport private[yarn], but discovered that it's needed by YarnClientSchedulerBackend.

Posting a new patch with the suggested changes.

@sryza sryza force-pushed the sandy-spark-5087 branch from 930df8a to 434ad3a Compare January 7, 2015 18:25
@SparkQA
Copy link

SparkQA commented Jan 7, 2015

Test build #25167 has started for PR 3896 at commit 434ad3a.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 7, 2015

Test build #25167 has finished for PR 3896 at commit 434ad3a.

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

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25167/
Test FAILed.

@andrewor14
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Jan 8, 2015

Test build #25185 has started for PR 3896 at commit 434ad3a.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 8, 2015

Test build #25185 has finished for PR 3896 at commit 434ad3a.

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

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25185/
Test FAILed.

@sryza
Copy link
Contributor Author

sryza commented Jan 8, 2015

The failures are legit. Working on an update.

@sryza
Copy link
Contributor Author

sryza commented Jan 8, 2015

It looks like copyFileToRemote was a class method so that it could be mocked for a test (Mockito can't mock static methods). There might be a more elegant way to write the test that doesn't require this, but I think that's probably out of the scope of this change, so I'm going to put it back for now.

@sryza sryza force-pushed the sandy-spark-5087 branch from 434ad3a to 65611d0 Compare January 8, 2015 01:33
@SparkQA
Copy link

SparkQA commented Jan 8, 2015

Test build #25191 has started for PR 3896 at commit 65611d0.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 8, 2015

Test build #25191 has finished for PR 3896 at commit 65611d0.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25191/
Test PASSed.

@andrewor14
Copy link
Contributor

Ok LGTM I'm merging this into master thanks

@asfgit asfgit closed this in 8d45834 Jan 8, 2015
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