Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

YARN Service Escape Launch_Command

YARN Service Escape Launch_Command

Cloudera Employee

How can I escape special characters in the YARN service "launch_command" field such as , and =?

I am using the following YARN service definition and need to pass input values that contain commas and equals signs. I have tried single quotes, escaped double quotes, and double escapes on the characters themselves (e.g. \\,), but nothing seems to work. The launch_command is always split on commas (e.g. "input1,a\\,b" => "input1", "a\", "b") and is always truncated at the first equals sign (e.g. "input1,'abc=def'" => "input1", "'abc").

  "name": "myapp",
  "version": "1.0.0",
  "description": "myapp",
  "components": [
      "name": "myappcontainers",
      "number_of_containers": 1,
      "artifact": {
        "id": "myapp:1.0-SNAPSHOT",
        "type": "DOCKER"
      "launch_command": "input1,input2",
      "resource": {
        "cpus": 1,
        "memory": "256"
      "configuration": {
        "env": {
Don't have an account?
Coming from Hortonworks? Activate your account here