# How to Pass Comma-Separated Arguments in Add Step EMR JobFlow Without Breaking spark-submit?

**URL:** <https://community.sparkflows.ai/t/how-to-pass-comma-separated-arguments-in-add-step-emr-jobflow-without-breaking-spark-submit/312>\
**Category:** Pipelines\
**Tags:** troubleshooting, emr\
**Created:** [March 2, 2026, 7:24am UTC](https://community.sparkflows.ai/t/how-to-pass-comma-separated-arguments-in-add-step-emr-jobflow-without-breaking-spark-submit/312 "2026-03-02T07:24:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@admin](https://community.sparkflows.ai/u/admin)\
**Post date:** [March 2, 2026, 7:24am UTC](https://community.sparkflows.ai/t/how-to-pass-comma-separated-arguments-in-add-step-emr-jobflow-without-breaking-spark-submit/312/1 "2026-03-02T07:24:31Z")

</div>

# Question

I want to know about the Sparkflows **Add Step EMR JobFlow** pipeline node. I am trying to run a `spark-submit` job.

One of my arguments is a comma-delimited list of values. In the example below, it is the value for the `--batch` argument:

> spark-submit,–deploy-mode,client,–class,,,–batch,“2024010100,2024010101,2024010102”

Sparkflows parses the comma-delimited list into separate `spark-submit` arguments, which causes the step to fail.

Is there any way to quote the parameter value or escape the commas so that the value `"2024010100,2024010101,2024010102"` will be treated as a single `spark-submit` argument?

# Answer

AddStepEMRJob uses `command-runner.jar` by default to run commands as a step in EMR.

Here is an example of running the `spark-submit` command in AddStepEMRJobFlow:

> **bash,-c,“spark-submit --master yarn --deploy-mode client --class com.fire.SparkPi s3://sparkflows-release/fire/library-jar/livy-jar/fire-spark-test-1.0-jar-with-dependencies.jar {arg}”**

In the above command:

- **`{arg}`** is parameterized.
- The value is passed during execution time.

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/sparkflows/original/1X/1c39ebb725e24a2b33af5a013641f5b8d1a6193a.png)  
 ![image](https://canada1.discourse-cdn.com/flex007/uploads/sparkflows/original/1X/ebcb0e6e875f40b91ac6e2ba43907393ba377a3d.jpeg)
