[ https://issues.apache.org/jira/browse/SPARK-17814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15553553#comment-15553553 ]
Sean Owen commented on SPARK-17814: ----------------------------------- I think the JIRA formatting is obscuring what you're exactly pasting. Can you try reformatting with code blocks? that's code inside {}, which I don't know how to escape directly here. For example in the second instance you're not quoting the shell argument, but you are in the first. > spark submit arguments are truncated in yarn-cluster mode > --------------------------------------------------------- > > Key: SPARK-17814 > URL: https://issues.apache.org/jira/browse/SPARK-17814 > Project: Spark > Issue Type: Bug > Components: Spark Submit, YARN > Affects Versions: 1.6.1 > Reporter: shreyas subramanya > > One of our customers is trying to pass in json through spark-submit as > follows: > spark-submit --verbose --class SimpleClass --master yarn-cluster ./simple.jar > "{\"mode\":\"wf\", \"arrays\":{\"array\":[1]}}" > When this argument reaches the application, it is truncated in yarn-cluster > mode as follows: > Passed args in yarn-cluster mode: {"mode":"wf", "arrays":{"array":[1] > The spark environment from history server also confirms this: > org.apache.spark.deploy.yarn.ApplicationMaster --class SimpleClass --jar > file:/home/user/simple.jar --arg {"mode":"wf", "arrays":{"array":[1] > --executor-memory 1024m --executor-cores 1 --properties-file > /data/usercache/user/appcache/application_1475790979221_0010/container_1475790979221_0010_02_000001/__spark_conf__/__spark_conf__.properties > If the same application is submitted in yarn-client mode, it works. The > application prints: > Passed args in yarn-client mode: {"mode":"wf", "arrays":{"array":[1]}} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org