Github user pwendell commented on the pull request:
https://github.com/apache/spark/pull/630#issuecomment-42157371
LGTM - I built and tested this locally and it worked well:
```
./bin/spark-submit --class org.apache.spark.examples.SparkPi
examples/target/scala-2.10/spark-examples-1.0.0-SNAPSHOT-hadoop1.0.4.jar
blahbal 100
...
...
Exception in thread "main" org.apache.spark.SparkException: Could not parse
Master URL: 'blahbal'
at
org.apache.spark.SparkContext$.org$apache$spark$SparkContext$$createTaskScheduler(SparkContext.scala:1552)
at org.apache.spark.SparkContext.<init>(SparkContext.scala:302)
at org.apache.spark.SparkContext.<init>(SparkContext.scala:111)
at org.apache.spark.SparkContext.<init>(SparkContext.scala:148)
at org.apache.spark.examples.SparkPi$.main(SparkPi.scala:31)
at org.apache.spark.examples.SparkPi.main(SparkPi.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.spark.deploy.SparkSubmit$.launch(SparkSubmit.scala:258)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:55)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---