[
https://issues.apache.org/jira/browse/STORM-853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14575572#comment-14575572
]
ASF GitHub Bot commented on STORM-853:
--------------------------------------
GitHub user HeartSaVioR opened a pull request:
https://github.com/apache/storm/pull/581
STORM-853 Fix upload API to handle multi-args properly
* flatten arguments so that it can be treated to each arguments
Please refer https://issues.apache.org/jira/browse/STORM-853 for more
details.
Please review and comment. Thanks in advance!
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/HeartSaVioR/storm STORM-853
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/storm/pull/581.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #581
----
commit edd9baba1e9f976c8c3d1a2b591ebf33e418a351
Author: Jungtaek Lim <[email protected]>
Date: 2015-06-06T04:25:11Z
STORM-853 Fix upload API to handle multi-args properly
* flatten arguments so that it can be treated to each arguments
----
> Uploading topology via REST API can't handle multiple main class arguments
> properly
> -----------------------------------------------------------------------------------
>
> Key: STORM-853
> URL: https://issues.apache.org/jira/browse/STORM-853
> Project: Apache Storm
> Issue Type: Bug
> Reporter: Jungtaek Lim
> Assignee: Jungtaek Lim
>
> Storm-starter has sample topology, RollingTopWords.
> It receives two arguments, first one is topology name, and next one is local
> or remote mode.
> But when I upload this topology via REST API to make it run with remote mode,
> I can't find topology via UI, and it's waiting for response.
> {code}
> curl -i -b ~/cookiejar.txt -c ~/cookiejar.txt -X POST -F
> topologyConfig='{"topologyMainClass": "storm.starter.RollingTopWords",
> "topologyMainClassArgs": ["production-topology", "remote"]}' -F
> [email protected]
> http://localhost:8080/api/v1/uploadTopology
> {code}
> Pushed 'ctrl + c' gives response which is error json including whole logs
> topology prints out. Topology is run via local mode.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)