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

Fix readCommandLineOpts to parse JSON correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0, 2.0.0
    • None
    • None

    Description

      Utils.readCommandLineOpts does a split on "," so it does not correctly parse values passed as json object or json arrays.

      Tested by passing

      -c drpc.servers=[\"host1\", \"host2\"] in storm jar command and it fails with an exception,

      Exception in thread "main" java.lang.IllegalArgumentException: Field DRPC_SERVERS must be an Iterable but was a class java.lang.String

      Attachments

        Activity

          People

            arunmahadevan Arun Mahadevan
            arunmahadevan Arun Mahadevan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: