chrislusf / glow

Glow is an easy-to-use distributed computation system written in Go, similar to Hadoop Map Reduce, Spark, Flink, Storm, etc. I am also working on another similar pure Go system, https://github.com/chrislusf/gleam , which is more flexible and more performant.
3.2k stars 248 forks source link

Fixes adjusting arguments passed to executor #40

Closed radike closed 8 years ago

radike commented 8 years ago

It is not guaranteed that the cmd arguments will be correctly parsed when the glow framework adds a new argument to the end of the arguments.

Glow's specific arguments should be always flags and should be before program's arguments, because the program can have both flag arguments and non-flag arguments. That can cause problems because Golang won't parse flags as flag arguments that are after a non-flag arguments.

Example:

-glow.flag1 -glow.flag2 other_argument -glow.flag3

the glow.flag3 is not parsed as a flag argument