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