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

Add spark-master configuration & PySpark1xJob support for --jars #806

Merged
merged 2 commits into from
Mar 3, 2015

Conversation

jthi3rry
Copy link
Contributor

@jthi3rry jthi3rry commented Mar 2, 2015

No description provided.

@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling 423ae79 on jthi3rry:master into d2cc8c4 on spotify:master.

@Tarrasch
Copy link
Contributor

Tarrasch commented Mar 3, 2015

LGTM!

@@ -378,6 +378,9 @@ def run(self):
py_files = self.py_files()
if py_files != []:
options += ['--py-files', ','.join(py_files)]
dependency_jars = self.dependency_jars()
if dependency_jars != []:
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick: I see that xxx != [] is the current convention in this file (see line 379 for example), but I'd prefer if dependency_jars:.

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 agree @berkerpeksag.

There's also room for a bit more refactoring as ATM the run methods in PySpark1xJob and Spark1xJob are mostly duplicated.

I can have a go at it in separate PR?

Tarrasch added a commit that referenced this pull request Mar 3, 2015
Add spark-master configuration & PySpark1xJob support for --jars
@Tarrasch Tarrasch merged commit e1b882b into spotify:master Mar 3, 2015
@Tarrasch
Copy link
Contributor

Tarrasch commented Mar 3, 2015

Thanks @jthi3rry! Can you please also fix @berkerpeksag's comment in a new PR? :)

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.

None yet

4 participants