[ 
https://issues.apache.org/jira/browse/STORM-1532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15138898#comment-15138898
 ] 

Arun Mahadevan commented on STORM-1532:
---------------------------------------

Actually this seems to be an issue only with storm.cmd.

Storm.py does a urlencode on storm.options so its able to parse json arrays 
correctly.

> Fix readCommandLineOpts to parse JSON correctly
> -----------------------------------------------
>
>                 Key: STORM-1532
>                 URL: https://issues.apache.org/jira/browse/STORM-1532
>             Project: Apache Storm
>          Issue Type: Bug
>            Reporter: Arun Mahadevan
>            Assignee: Arun Mahadevan
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to