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

Fix readCommandLineOpts to parse JSON correctly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0, 2.0.0
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: