-
Notifications
You must be signed in to change notification settings - Fork 28.9k
SPARK-1565 (Addendum): Replace run-example with spark-submit.
#704
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
Conversation
Gives a nicely formatted message to the user when `run-examle` is run to tell them to use `spark-submit`.
|
Merged build triggered. |
|
Merged build started. |
|
cc/ @andrewor14 |
|
Merged build finished. All automated tests passed. |
|
All automated tests passed. |
bin/run-example
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about this some more, I think maybe we should just call spark-submit with the supplied master instead of telling the user this stuff. Or we could call spark submit and then print out the user how to run this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I completely agree. We dont want the user to have to type out this more complicated stuff with library path and all. Just
bin/run-example org.apache.examples.spark.SparkPi <example params>
In fact, now that all the examples are inside spark.examples. package, we can try to make it even simpler. To run SparkPi, one should be able to just say
./bin/run-example SparkPi
That would very simple!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well but then you have streaming examples and mllib examples. Do we expect the user to type in millib.MovieLensALS then? I actually think the org.apache.examples.spark.SparkPi is more consistent with the rest (i.e. SparkSubmit). Maybe we should accept both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea so I think if it starts with org.apache.spark.examples we would pass it through. If not, we'll prepend org.apache.spark.examples.
|
Merged build triggered. |
|
Merged build started. |
|
Merged build triggered. |
|
Merged build started. |
README.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: What does the notation [< ... >] mean? I think it's clearer if it's just [params]
|
Merged build finished. |
|
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14838/ |
README.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
N threads
|
@andrewor14 great - thanks for the feedback! |
|
Merged build triggered. |
|
Merged build started. |
|
Merged build finished. All automated tests passed. |
|
All automated tests passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops sorry there's another one
|
Pending one small change this LGTM |
|
Okay cool - I'll pull that change in when I merge it. |
|
Merged build finished. All automated tests passed. |
|
All automated tests passed. |
Gives a nicely formatted message to the user when `run-example` is run to tell them to use `spark-submit`. Author: Patrick Wendell <[email protected]> Closes #704 from pwendell/examples and squashes the following commits: 1996ee8 [Patrick Wendell] Feedback form Andrew 3eb7803 [Patrick Wendell] Suggestions from TD 2474668 [Patrick Wendell] SPARK-1565 (Addendum): Replace `run-example` with `spark-submit`. (cherry picked from commit 06b15ba) Signed-off-by: Patrick Wendell <[email protected]>
Looks like this change was accidentally committed here: apache@06b15ba but the change does not show up in the PR itself (apache#704). Other than not intending to go in with that PR, this also broke the test JavaApiSuite.repartition.
Looks like this change was accidentally committed here: 06b15ba but the change does not show up in the PR itself (#704). Other than not intending to go in with that PR, this also broke the test JavaAPISuite.repartition. Author: Aaron Davidson <[email protected]> Closes #716 from aarondav/shufflerand and squashes the following commits: b1cf70b [Aaron Davidson] SPARK-1770: Revert accidental(?) fix (cherry picked from commit 59577df) Signed-off-by: Aaron Davidson <[email protected]>
Looks like this change was accidentally committed here: 06b15ba but the change does not show up in the PR itself (#704). Other than not intending to go in with that PR, this also broke the test JavaAPISuite.repartition. Author: Aaron Davidson <[email protected]> Closes #716 from aarondav/shufflerand and squashes the following commits: b1cf70b [Aaron Davidson] SPARK-1770: Revert accidental(?) fix
Gives a nicely formatted message to the user when `run-example` is run to tell them to use `spark-submit`. Author: Patrick Wendell <[email protected]> Closes apache#704 from pwendell/examples and squashes the following commits: 1996ee8 [Patrick Wendell] Feedback form Andrew 3eb7803 [Patrick Wendell] Suggestions from TD 2474668 [Patrick Wendell] SPARK-1565 (Addendum): Replace `run-example` with `spark-submit`.
Looks like this change was accidentally committed here: apache@06b15ba but the change does not show up in the PR itself (apache#704). Other than not intending to go in with that PR, this also broke the test JavaAPISuite.repartition. Author: Aaron Davidson <[email protected]> Closes apache#716 from aarondav/shufflerand and squashes the following commits: b1cf70b [Aaron Davidson] SPARK-1770: Revert accidental(?) fix
- update secret and cm names to follow new convention Co-authored-by: Alexandr Navara <[email protected]>
- update secret and cm names to follow new convention Co-authored-by: Alexandr Navara <[email protected]>
- update secret and cm names to follow new convention Co-authored-by: Alexandr Navara <[email protected]>
Gives a nicely formatted message to the user when
run-exampleis run totell them to use
spark-submit.