You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by ji...@wipro.com on 2015/04/02 13:13:58 UTC

RE: Passing command line arguments to storm Error in windows

Hi folks,
Today i came across a weird and annoying error in My Storm Topology Builder.
The problem is When i submit my jar file to storm cluster It always skips the second argument passed to the main method.
public class ZMQTopology {
public static void main(String[] args) throws AlreadyAliveException,
                                                InvalidTopologyException {

                            for(int i=0;i<(args.length);i++)
                            {   System.out.println("I=" +i+ " value="+args[i]);
                            }
This is how i submit my jar
E:\target>storm jar StormZeroMQ.jar com.wipro.bdas.zeromq.ZMQTopology value1 value2 value3 value4 value5
Output
I=0 value=value1
I=1 value=value3
I=2 value=value4
I=3 value=value5
I am using the apache storm pre-built for windows.
EDIT:
After some amount of debugging I could find that it happens only with windows machine . I was able to reproduce the error in 2 windows machine. With both  0.9.3 and 0.9.4 .In Linux machine I could see command line parameters working perfectly. I would request to someone to open a Jira ticket for this issue. If the bug is already reported can anyone give me a link.

Thanks and Regards
Jishnu Menath Prathap

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com

Re: Passing command line arguments to storm Error in windows

Posted by Bobby Evans <ev...@yahoo-inc.com.INVALID>.
You can open the JIRA yourself at http://issues.apache.org/jira under the STORM component.  That way you will be able to track it more clearly.  I'm not really sure what would be happening here.  The command line is preprocessed by python looking for a -c or a --config to pull those out, but I honestly don't know.
 - Bobby
 


     On Thursday, April 2, 2015 6:13 AM, "jishnu.prathap@wipro.com" <ji...@wipro.com> wrote:
   

 
Hi folks,
Today i came across a weird and annoying error in My Storm Topology Builder.
The problem is When i submit my jar file to storm cluster It always skips the second argument passed to the main method.
public class ZMQTopology {
public static void main(String[] args) throws AlreadyAliveException,
                                                InvalidTopologyException {

                            for(int i=0;i<(args.length);i++)
                            {  System.out.println("I=" +i+ " value="+args[i]);
                            }
This is how i submit my jar
E:\target>storm jar StormZeroMQ.jar com.wipro.bdas.zeromq.ZMQTopology value1 value2 value3 value4 value5
Output
I=0 value=value1
I=1 value=value3
I=2 value=value4
I=3 value=value5
I am using the apache storm pre-built for windows.
EDIT:
After some amount of debugging I could find that it happens only with windows machine . I was able to reproduce the error in 2 windows machine. With both  0.9.3 and 0.9.4 .In Linux machine I could see command line parameters working perfectly. I would request to someone to open a Jira ticket for this issue. If the bug is already reported can anyone give me a link.

Thanks and Regards
Jishnu Menath Prathap

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com