-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-1979] Added Error Handling if user passes application params with... #930
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
Can one of the admins verify this patch? |
What if the user application legitimately has a flag called --arg? Won't this cause it to break? Also (just wondering) - why do you think users would be setting |
I think right now of the user uses |
I have scheduling framework written for firing jobs to spark. After upgrading to spark 1.0.0 my application was broken and it took me quite a lot time to find out why it was not taking parameters. So any one upgrading from previous version to 1.0.0 will face the same problem and they have to debug to find out whats failing. So an error message would be very useful. |
@pankajarora12 no, those aren't reserved keywords. This was specifically designed not to have reserved keywords. For instance, this is valid:
So just to be clear you were upgrading from |
Perhaps the command line parser should add a case for "--", meaning "stop parsing arguments", at the same time making it more compatible with what people are used to. :-) |
@pwendell If I pass --master twice, earlier --master argument passed gets overridden by the one following it. That means you cannot use --master as an application argument. The command i fired was /opt/spark-1.0.0/bin/spark-submit --master yarn /opt/tms/java/app-1.0-SNAPSHOT-jar-with-dependencies.jar --master yarn1 --deploy-mode cluster --verbose --class com.guavus.scala.MainClass yarn-cluster /data/output /data/collector/1/output/http/2014/05/11/22/50/72/ VS-NN --driver-memory 9099M --executor-memory 9099M --num-executors 1 --executor-cores 1 and master field took the value as yarn1 also --master yarn1 did not get passed to our App. BTW I upgraded from tag v1.0.0-rc2 to v1.0.0. |
Hi @pankajarora12, this issue is outdated since #1801 went in. Would you mind closing this? |
Can one of the admins verify this patch? |
Add mapPartitionsWithIndex (cherry picked from commit c514cd1) Signed-off-by: Reynold Xin <rxin@apache.org>
* [CARMEL-5955] Drop NOT NULL constraint when alter column type * refresh
Added error message to user when used --arg for passing application parameters.