Currently I don't see a way
to circumvent the splitting. You will have to use a
different delimiter, I guess a semi-colon could work?
The code is rather optimistic in that it assumes
commas to not occur within a parameter value, and
doesn't support any kind of escaping or quoting. (And
this is a rabbit hole I'd rather avoid)
Ultimately I would love to change this call to send
the parameters as JSON instead (then you wouldn't have
to deal with escaping characters...), but we can't do
that until the API versioning is in place (no ETA).
On 20.04.2018 12:37, Dongwon Kim wrote:
I'm trying to run a program by sending
I've already spawned dispatcher in YARN
and uploaded a jar file to the dispatcher.
I want to execute my application using
the following arguments (--topic and --kafkaParams):
As you can see, there's a comma in the
value of kafkaParams.
When I'm sending my application using
the following command from Bash (%20 is a space and
$2C is a comma),
I get the following response from the
"Expected only one value [--topic gps-topic
--kafkaParams bootstrap.servers=dacoe2:20245, group.id
What I found from the source code is
tries split the value of program-ages using comma as
I think I could modify my program to get
arguments in a different way but it is not going to
be intuitive to use different characters for a
delimiter instead of comma.
How you guys think?
Or there's a way to avoid this behavior
of splitting the value of program-args into multiple