Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-745

Second Commandline Parameter passed to the main class is skipped when run in windows

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Always the second parameter is getting skipped.

      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

      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]); }

      I am using the apache storm pre-built for windows.

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kabhwan Jungtaek Lim
            jishnu111 jishnu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment