You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Ethan Li <et...@gmail.com> on 2019/11/01 02:01:50 UTC

Re: Upgrading storm 1.1 to 2.0 Command Line Arguments Issue

Hi Ray,

There is a known bug in 2.0.0 and it’s fixed in 2.1.0. Please try 2.1.0 and see if it works for you. 

Thanks,
Ethan

> On Oct 16, 2019, at 4:10 PM, Zac <ca...@live.com> wrote:
> 
> Hi all,
> 
> While upgrading storm versions, I found that I could not submit command line arguments to my topology because they were being modified before reaching my topology. My commands was like this:
> 
> path-to-storm-bin jar jar-to-run topology-class --foo my_foo --bar my_bar
> 
> In 2.0, I get an error saying unrecognized argument foo my_foo (the -- is missing from foo). The only solution I have been able to use has been to surround all the arguments with quotes so it looks as follows:
> 
> path-to-storm-bin jar jar-to-run topology-class "--foo my_foo --bar my_bar"
> 
> And then to grab all the arguments as a single argument and split them up myself. This doesn't seem like this should be the way to do it. Is there another way you are supposed to use command line args?
> 
> Thanks
> -Ray
>